Every health MCP demo I have seen assumes one person. You, your Mac, your export folder, one agent. Then somebody else in the house gets an iPhone, or your partner installs the app, and a question shows up that none of the setup guides answer: whose data does the agent read?

The answer comes from the architecture, not from a setting.

A local MCP server holds a folder, not an account

The reference Apple Health MCP server is a zero-dependency Node process over stdio. 194 metrics, 21 tools, 23 prompts. It has no login, no account model and no user table. Everything it can see arrives through one environment variable, HEALTH_DATA_DIR.

That means nothing in the read path can label a row with a person. There is no owner column to filter on and no per-device attribution in the tool signatures. Not one of the 21 tools takes a person, owner or account argument. One server reads one directory, so it answers for one person.

If two people's exports sit in that directory, you do not get two users. You get one directory with two writers, and an agent that will happily average them.

The two-entry config

Two people, one Mac:

{ "mcpServers": { "health-alex": { "command": "npx", "args": ["-y", "health-export-mcp"], "env": { "HEALTH_DATA_DIR": "/Users/Shared/health/alex", "PAIRING_SECRET": "" } }, "health-sam": { "command": "npx", "args": ["-y", "health-export-mcp"], "env": { "HEALTH_DATA_DIR": "/Users/Shared/health/sam", "PAIRING_SECRET": "" } } } } 

Same binary, two processes, two folders. The names are so you and the agent can tell the entries apart in a tool list. The directories are what actually separate the data, because a stdio server only ever reads the directory it was handed.

On the phone side, each person exports to their own destination: iCloud Drive, an On My iPhone folder the Mac syncs onward, a local network receiver, or a webhook you run. Different destination per person, and the separation holds end to end.

The iCloud trap

Two phones signed into the same Apple Account write into the same app container, so both exports land on the same cache file. That is not two data sets. It is one file with a contested writer. Use separate destinations, or a folder inside each person's own Mac account, when you actually need two clean sets.

The pairing secret is a door lock, not a name badge

Pairing is optional. Turn on Agent pairing in the app, set PAIRING_SECRET to the code the app shows, and the server refuses clients that do not present it. Useful on a shared machine, and easy to over-read.

It answers exactly one question: may this client talk to this server at all. It says nothing about whose rows are in the folder. The separation was never going to come from the secret. It comes from the path.

Ask the server which folder it picked

Do not guess from the config. Run:

$ npx -y health-export-mcp --doctor health-export-mcp doctor (1.10.2) data dir: . chosen by: default: current directory (HEALTH_DATA_DIR not set) pairing: not required (no .health-pair.json, no PAIRING_SECRET) 

The data dir line is whose data you are about to read, and chosen by is why. In that output nothing was set, so the directory fell back to the current directory and pairing was off. That is the wrong default for a household, where the entire point is that two people's files live in two places.

Inside an agent, get_mcp_status reports the same source plus metric and workout counts and the latest data date, which is the quickest way to confirm you are pointed at the right person.

What breaks first

  • Both phones exported to one path. The agent reads a single file and answers as one person.
  • The second entry was added but the client was never restarted. MCP clients read their server list at startup, so fully quit and reopen.
  • A stale iCloud copy on the Mac. The freshness tool reports that state instead of pretending the data is current.
  • Pairing enabled on one side only. A trailing space in the secret is enough to fail.

Where the data goes in this setup

Nowhere new. Each phone reads Apple Health read-only and writes JSON to the destination that person chose. The server reads a local directory and makes no network requests. Health data is not sent to us or to a cloud AI, and the only file either server writes is the events file an agent appends to when it calls add_event, which never touches a file the app wrote.

Because there is no account, there is no shared account to leak and no multi-user dashboard to run. Two people, two phones, two folders, and a boundary you can see in Finder.

Wellness information, not medical advice. The arithmetic behind baselines and deviations is published at healthexport.dev/methods/.

Install: claude mcp add health-export -- npx -y health-export-mcp on a Mac, or read the full setup post.