One Agent, Two People: Whose Apple Health Data a Shared MCP Server Holds

Two phones, one Mac, one agent. A local health MCP server does not hold an account, it holds a folder. Here is what that means for a household, and the two-entry config that keeps two people's data apart.

By MetricBridge · Published 29 November 2026 · ~7 min read

AI-assisted, human reviewed. How we use AI

You installed the server for yourself. It works. Then the obvious question lands: my partner has Apple Health data too, and we share this Mac. Can the same server answer for both of us?

The short answer is no, not as two people, and the reason is architectural. A local stdio MCP server has no account, no login and no user table. It reads one directory, and whose numbers you get back depends entirely on which folder that directory points at.

Quick answer. A local Apple Health MCP server holds whatever its data directory holds. One server means one directory, and not one of the 21 tools it exposes takes a person, owner or account argument. For a household, the fix is not a permission toggle, it is a second entry: two server names and two HEALTH_DATA_DIR values.

What the answers look like when they are computed, not guessed

Before the config, the thing that makes any of this worth setting up: the number comes with its working. In the app, an answer renders as a provenance card holding the headline figure, an inline chart and a strip underneath naming the metric, the date range and the sample count.

Same shape over MCP: the tools return samples, ranges and aggregates, not a sentence you have to trust. The card above is the app's own, showing demo data. Wellness information, not medical advice, and the arithmetic behind baselines and deviations is published at /methods/.

A local server holds a directory, not an account

The reference server is zero-dependency Node over stdio: 194 metrics, 21 tools of which 19 are read-only, and 23 prompts, with no account and no developer server in the path. Everything it can see arrives through one environment variable.

The consequence: nothing in the read path can label a row with a person. No owner column, no per-device attribution in the tool signatures, nothing to switch. One person's export in the folder means one person's answers.

Two people, one Mac: the config

Say Alex and Sam both use the app and both export to a folder on this Mac. Register two entries, not one:

{
  "mcpServers": {
    "health-alex": {
      "command": "npx",
      "args": ["-y", "health-export-mcp"],
      "env": {
        "HEALTH_DATA_DIR": "/Users/Shared/health/alex",
        "PAIRING_SECRET": "<the code Alex's app shows>"
      }
    },
    "health-sam": {
      "command": "npx",
      "args": ["-y", "health-export-mcp"],
      "env": {
        "HEALTH_DATA_DIR": "/Users/Shared/health/sam",
        "PAIRING_SECRET": "<the code Sam's app shows>"
      }
    }
  }
}

Two things do the work there. The names tell you and the agent which entry is which in a tool list. The directories are what actually separate the data: same binary, two processes, two folders, and neither can see into the other because a stdio server only reads the directory it was handed.

On the phone side, each person points their export at their own destination: iCloud Drive, an On My iPhone folder your Mac syncs onward, your local network, or a webhook you run. Pick a different destination per person and the separation holds end to end. The one-person walkthrough is in Connect Apple Health to Claude via MCP.

The iCloud trap. Two phones signed into the same Apple Account write into the same app container, so both exports land on the same .health-cache.json. 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.

The pairing secret is a gate, not an identity

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

It answers one question: may this client talk to this server at all. It does not answer whose rows are in the folder. Treat it as a door lock, not a name badge, because the separation was never going to come from the secret. It comes from the path.

The doctor line that answers the question first

If you are unsure which folder a running server actually picked, do not guess from the config. Ask the server:

$ 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)

Read that output as the answer to this whole post. The data dir line is whose data you are about to read, and the chosen by line is why. Note the third line: with nothing set, pairing is off and the directory fell back to the current directory. That is the wrong default for a household, where the whole point is that two people's files sit in two places.

get_mcp_status reports the same source from inside an agent, plus metric and workout counts and the latest data date: the fastest 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. Run the two-entry config instead.
  • The second entry was added but never restarted. MCP clients read their server list at startup. Fully quit the client, then reopen it, or the new entry will not appear.
  • A stale iCloud copy on the Mac. The export may be newer on the phone than the copy this Mac holds. The freshness tool reports that state rather than pretending the data is current.
  • Pairing enabled on one side only. If the app is showing a code, the config needs the matching secret. A trailing space 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. Your health data never reaches us or a cloud AI, and the only file either server writes is the events file an agent logs to when it calls add_event, which never touches a file the app wrote.

That is the part worth keeping straight in a household: because there is no account, there is no shared account to leak and no multi-user dashboard we could run. Two people, two phones, two folders. The boundary is a path you can see in Finder.

Questions people ask about this

Can one MCP server hold two people's Apple Health data?

Not as two people. It reads one data directory, and none of the 21 tools takes a person, owner or account argument. One server, one folder, one person's answers.

How do I run Apple Health for two people on one Mac?

Two export destinations and two server entries with different names and different HEALTH_DATA_DIR values. Then point the agent at the entry you want it to use.

Does the pairing secret separate two people?

No. PAIRING_SECRET is a gate that decides whether a client may talk to the server. It says nothing about whose data the folder holds, so it cannot be the thing that separates two exports.

What if both people share one iCloud Drive account?

Then both phones write into the same app container and the same .health-cache.json path. Move one to a separate destination when you need two clean data sets.

One phone, one folder, one honest answer

Install the app, point your agent at the export folder, and every answer comes with the samples and the range behind it.

Where it goes: each phone reads Apple Health read-only and writes JSON to a destination that person picks. Nothing reaches us or a cloud AI. What you get: all 194 metrics, 21 tools (19 read-only) and 23 prompts. Setup: about two minutes per person. Price: $24.99 one time after a 7-day free trial, not a subscription. Your phone: works on any iPhone the app runs on; Apple Intelligence is not needed for the export or MCP.

Early access: your AI, reading your own Apple Health. The agentic upgrade opens to a small group first. Join the early-access list, one email when it opens.