Your Agent's Health Server Should Not Need a Second Machine
Two ways to give an agent your Apple Health data: a signed Mac helper serving an MCP adapter over a local port, or a plain stdio server that reads the export file your phone wrote. Both work. Only one of them adds a machine to the path.
AI-assisted, human reviewed. How we use AI
Quick answer. Your Apple Health MCP server should be a plain stdio process that your agent already spawns, not a second app you install on a Mac and keep running behind a local port. A stdio server reads an export file the phone wrote and answers from it. A helper-daemon server adds a signed Mac app, a loopback HTTP port, and a phone that has to be reachable for fresh reads. The job is identical; the number of moving parts is not.
Two shapes, one job
The job is always the same: let an agent call tools like get_health_metrics, get_trends or compare_periods against your real Apple Health data, read-only, without pasting a CSV into a chat window. MCP is the interface. What differs is where the server lives and what it has to talk to.
There are two live shapes in 2026. One is a helper daemon: a signed app on your Mac that serves the MCP adapter and forwards to the phone. The other is a stdio server: a small program your agent launches as a child process, which reads a file. They are not variations on a theme. They are different bets about how much you are willing to keep running.
Shape one: the helper daemon
Health.md ships exactly this. Its own documentation describes the chain: your MCP host talks JSON-RPC over stdio to a signed healthmd-mcp helper, which talks to the Health.md Mac app's loopback API on 127.0.0.1:17645, which talks to a connected iPhone for fresh HealthKit reads. The bundled server exposes 21 fixed tools. The helper itself does not read HealthKit, export folders or arbitrary files; it is a bridge to the Mac app, which is the thing that reaches the phone.
The authorization model is stated plainly on their loopback API page: "Loopback reachability is the complete authorization boundary. Any local process can issue requests while Health.md is open." There is no bearer token, no caller registration, no grant database. The port is the boundary.
What this shape buys is real: genuinely fresh reads, because the phone is queried at the moment you ask. What it costs is a second app installed and kept running, a listening port, and a phone that has to be connected and open for a fresh read to succeed.
Shape two: the stdio server that reads a file
MetricBridge takes the other route. The iPhone app reads Apple Health read-only and writes clean JSON or CSV to a destination you pick: iCloud Drive, a local folder, your LAN, or a webhook you run. The MCP server is a zero-dependency npm package, health-export-mcp, that your agent spawns as a child process over stdio. It reads that export file. No port, no daemon, no app to keep open on the Mac.
Install is one line on a Mac:
claude mcp add health-export -- npx -y health-export-mcp
The server exposes 21 tools (19 read-only, plus add_event and remove_event, which write only an events file beside the export). It makes zero outbound network calls. Because it is a child process of the agent, it starts when the agent starts and dies when the agent exits. There is nothing left running between sessions.
The one-minute check: look for the port
You do not have to take either architecture on faith. Run the server and look for a listening socket:
lsof -iTCP -sTCP:LISTEN -P | grep -i node
A stdio server shows nothing, because it talks over stdin and stdout to the agent that spawned it. There is no address for anything else on the machine to reach. A helper-daemon shape shows a port, in Health.md's case 17645. That single command is the whole difference: a stdio server has no address; a daemon does. If you want to check ours, the count of listening sockets before and after you start the agent is the same.
Freshness is the honest tradeoff
A file is only as fresh as the last export. That is the real cost of the stdio shape, and it should be stated, not hidden. A live-phone helper is fresher by construction because it asks the phone at query time. If you need second-by-second reads, the helper wins.
If you need private, offline and no daemon, the file wins, and the fix for freshness is that the agent says how old the data is. MetricBridge exposes a freshness tool for exactly this: the agent can report "this is from six hours ago" instead of implying the number is live. Background auto-export keeps the file current without you thinking about it, and the export works on a plane, when the phone is asleep, and when the Mac app is not installed at all.
Why "no second machine" matters
- Fewer things to break. A daemon plus a port plus a phone that must be open is three failure points. A child process reading a file is one.
- No listening port. Loopback is local, not private: any process on the machine can query it while it is open. A stdio server has no port, so there is nothing to reach.
- Works offline. The agent reads the last export with the Wi-Fi off. A live-phone helper needs the phone reachable.
- Nothing left running. The server is a child of the agent. Close the agent, and it is gone.
Which shape fits your setup
If you run the agent on the same machine that can see the export folder, use stdio. That covers Claude Desktop, Claude Code, Cursor, opencode, OpenClaw and Hermes on a Mac, and it is the setup in the step-by-step connect guide. If you specifically want live reads and you will keep a Mac app open, the helper shape is a legitimate choice; it is simply a different set of things to run.
One note on our own shape: the MCP server is stdio by default, and there is an optional LAN receiver (HEALTH_LISTEN=1) that accepts the app's pushes if you would rather have the phone push to a machine on your network. Even then, it is a receiver you start yourself, not a daemon that ships running.
The short version. A health MCP server has one job: answer an agent's tool call from your data. A stdio server that reads a file does that job with no port, no daemon and nothing left running. A helper daemon trades that simplicity for fresher reads. Pick the tradeoff on purpose, not by accident.
FAQ
Does the MetricBridge MCP server need a Mac app running?
No. It is a zero-dependency stdio server that your agent spawns as a child process. It reads the export file the iPhone wrote to a folder you chose. There is no helper daemon, no listening port, and nothing else to keep open.
What is a loopback MCP helper?
A signed helper app that serves an MCP adapter over a local port on 127.0.0.1 and forwards each request to a phone that is connected and open. The helper itself does not read HealthKit or export folders; it is a bridge to a Mac app that does. Reachability on that port is the whole authorization boundary.
Is a local port private?
It is local, not private. A loopback API is reachable by any process on the same machine while it is open, which is why the helper shape needs the app running and treats the port itself as the boundary. A stdio server has no port at all, so there is no address for another process to reach.
Which shape gives fresher data?
A live-phone helper is fresher by construction, because it asks the phone at query time. A file-backed stdio server is only as fresh as the last export, which is why MetricBridge exposes a freshness tool so the agent can state the age of the data instead of implying it is live.
Give your agent your Apple Health data, no second machine
The app exports; the open-source stdio server answers. Read-only, zero dependencies, nothing to host.
Where it goes: the app reads Apple Health read-only and writes JSON to a folder you pick. 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. 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.
MetricBridge is a wellness tool, not a medical device. It does not diagnose, treat or monitor any condition, and every reading is shown against your own personal baseline, never a clinical threshold. Read the methods.