Self-hosted mirror and MCP server for Marrow, giving AI agents read-only access to your own Apple Health data
pip install marrow-mcp==0.2.5 Copy PIP instructions
Give your AI agents read-only access to your own Apple Health data.
Marrow is a free iOS app that tracks 178 health data series - 172 Apple Health types plus its own meal diary and set-by-set weightlifting log. This repo is its self-hosted companion server: one Python file, standard library only, that keeps a SQLite mirror of your data on hardware you own and serves it over the Model Context Protocol so agents can query it 24/7, phone in your pocket.
Nothing here talks to a cloud. Data flows phone → your machine, full stop.
python3 marrow_server.py # prints a pairing URL python3 marrow_server.py --port 8800 --data ./data or
docker compose up -d Open the pairing URL on any screen, then in Marrow: Server → Pair with a server → scan. From then on the app's background pushes keep the mirror current with the app closed.
The server speaks MCP over Streamable HTTP (JSON-RPC 2.0, protocol version 2025-06-18), authenticated with a bearer token it generates on first run and prints alongside the pairing link.
claude mcp add --transport http marrow \ http:// :8800/mcp \ --header "Authorization: Bearer " Claude Desktop, one click
Download marrow.mcpb, double-click it, and Claude Desktop installs the extension and asks for the URL and token. No terminal involved. (The bundle is a tiny zero-dependency bridge in mcpb/; it forwards Claude's stdio to your Marrow URL and nothing else.)
Claude Desktop (manual), Cursor, or anything using an mcp.json
{ "mcpServers": { "marrow": { "type": "http", "url": "http:// :8800/mcp", "headers": { "Authorization": "Bearer " } } } } Check it by hand
curl -s http:// :8800/mcp \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' Tools All read-only. Nothing an agent can call writes to your health record.
Then ask your agent things like "how did my sleep change once I started training in the mornings?" and let it go and look.
Both Claude (Pro/Max, US) and ChatGPT now read Apple Health natively. Use them if that is all you need. They stop where this server starts:
OpenClaw / Hermes / any agent on a home machine. Point the agent's MCP config at the server URL with the bearer token, exactly as in the mcp.json block above. Reach it from outside the LAN with tailscale serve --bg --https=8800 http://127.0.0.1:8800 and use the tailnet URL.
This server is one of four, and you do not need it to give agents access:
All four are in the free tier. Setup for all of them: https://marrowhealthapp.com/mcp.
Marrow is on the App Store (1.3.4), iOS 17+, and requires Apple Health. Get it on the App Store.
The iOS app is closed source; this server is not, because you should be able to read anything you are asked to run on your own hardware.
Listed in the official MCP registry as tech.skeletonarmy/marrow, verified by DNS on skeletonarmy.tech.
agents apple-health healthkit mcp model-context-protocol quantified-self
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




