Apple Health to n8n: a scheduled webhook or a live MCP node
To get Apple Health data into n8n, an iPhone app has to post it to a Webhook node, because Apple Health has no API n8n can call. Marrow does that for free on a schedule, as flat JSON rows that n8n's field picker reads in one click, and an n8n AI agent can also read your data live through the MCP Client Tool node.
Open in Marrow works on an iPhone with Marrow 1.7.1 or later.
Which way?
- Local MCP if the computer running it shares your phone's Wi-Fi or tailnet. Free, and it answers while Marrow is open.
- Server MCP if you keep a small server running. Free, and it answers any time.
Automated: Webhook node Local MCP Server MCP
Automated (Webhook node) Free
Marrow posts CSV or JSON to a URL on a schedule, with the app closed. You need: An n8n you run or host.
- In Marrow, open Connects, then Exports, and tap n8n. Turn Automated on.
- In n8n, add a Webhook node set to POST.
- Copy its Production URL.
- In Marrow: New Automation. Its page asks for:
- Address: The Webhook node's Production URL. The Test URL only answers while the editor is listening. It looks like
https://n8n.example.com/webhook/…. - Headers: If the node uses Header Auth, add the same Authorization header here.
- Data and Cadence: the kind of data, JSON or CSV, and how often it runs.
- Run: Publish the workflow in n8n first (Activate in older versions), so the Production URL answers. Then tap Run now.
- Address: The Webhook node's Production URL. The Test URL only answers while the editor is listening. It looks like
Local MCP (MCP Client Tool node) Free
A server on your phone. It answers while Marrow is open, to apps on the same Wi-Fi or tailnet. Nothing leaves your network. You need: Self-hosted n8n on your network reads this phone. n8n Cloud needs your own server.
- In Marrow, open Connects, then MCP, and tap n8n. Pick Local MCP.
- Turn Local MCP on and add n8n to Your AIs. Marrow shows the address and a token made for this connection.
- In n8n, add an MCP Client Tool node.
- Server Transport: HTTP Streamable. Authentication: Bearer.
- Enter the address and token below.
http://<phone-ip>:21212/mcp Token: <token>
Placeholders shown: Marrow fills in your phone's address and the token.
Server MCP (MCP Client Tool node) Free
Marrow's open-source server on a computer you keep on (a Pi, a NAS, an old laptop). The phone keeps it current and it answers any time. You need: Self-hosted n8n on your network reads this phone. n8n Cloud needs your own server.
- Run Marrow's server on a computer you keep on and pair it with the app (how).
- In Marrow, open Connects, then MCP, tap n8n and pick Server MCP. Add it to Your AIs. Marrow shows the server's address. The token is the mcp token your server printed when it started.
- In n8n, add an MCP Client Tool node.
- Server Transport: HTTP Streamable. Authentication: Bearer.
- Enter the address and token below.
http://<server-ip>:8800/mcp Token: <token>
Placeholders shown: Marrow fills in your server's address. The token is the one your server printed.
What arrives in n8n
An automation made from the n8n page in Marrow sends the Rows shape: one flat record per value. One automation sends one kind of data (health metrics, workouts, strength log, nutrition diary, or symptoms and mood), and you can run up to ten. A health metrics payload with sample values:
{"source": "marrow", "kind": "metrics", "sent_at": "2026-11-06T14:00:00Z",
"rows": [
{"metric": "step_count", "units": "count", "date": "2026-11-05", "value": 8746},
{"metric": "heart_rate", "units": "bpm", "date": "2026-11-05", "value": 71, "min": 52, "max": 148},
{"metric": "sleep_analysis", "units": "h", "date": "2026-11-05", "value": 7.4, "deep": 1.1, "rem": 1.6, "core": 4.7}
]}
In n8n the POST body is under body. Add a Split Out node on body.rows and every row becomes its own item, with metric, date and value ready to map into a sheet, a database or a message. Today's steps in an expression: {{ $json.body.rows.find(r => r.metric === 'step_count').value }}.
Nutrition rows carry day, meal, name, grams, kcal, protein_g, carbs_g and fat_g. Workouts, lifting sets and the nested shape that matches Health Auto Export's layout are on the automations reference. Since last run sends the last two days again on purpose, so key what you store by metric and date and let the latest win.
What it can do
- Read. A daily brief scored against your own normal, your baselines, what changed this week, any metric day by day, workouts, lifts set by set, sleep stages and your food diary.
- Log. Your AI logs meals, water, weight, workouts, sleep, symptoms and mood when you ask, after you turn on Allow AI write for that way in Marrow. Every entry can be undone.
Try asking
- How am I doing today?
- What changed in my sleep this week compared with my normal?
- Which of my lifts went up this month?
- Log a turkey sandwich and an apple for lunch.
If it does not work
In n8n
- The requested webhook is not registered. n8n's 404 when nothing listens at that address. The Production URL answers only while the workflow is published (newer n8n says Publish where older versions say Activate). The Test URL answers only after Listen for test event, for 120 seconds and one call.
- Test URL or Production URL. Paste the Production URL into Marrow, the one with
/webhook/, not/webhook-test/. Production runs show in the workflow's Executions tab, not on the canvas. - Server answered 403. With Header Auth on the Webhook node, a missing or wrong header gets 403. Add the same Authorization header in Marrow, with the same value.
- The URL n8n shows starts with localhost. Behind a reverse proxy, set
N8N_WEBHOOK_URL(WEBHOOK_URLon older versions) to your public address so n8n shows the right one. - The MCP Client Tool node cannot reach the phone. n8n Cloud runs on n8n's servers, so it cannot reach Local MCP. Self-hosted n8n on your Wi-Fi or tailnet can. From n8n Cloud, use Server MCP on a public HTTPS address.
- A long range fails. The webhook takes up to 16 MB by default (
N8N_PAYLOAD_SIZE_MAX). Pick a shorter range or fewer metrics.
Local MCP checks
- Keep Marrow open. The phone's server answers only while Marrow is open in front. When you switch apps or lock the phone, iOS soon pauses it. Open Marrow again and it answers again.
- Same Wi-Fi or tailnet. The computer must be on the phone's Wi-Fi or tailnet, never cellular. Guest Wi-Fi often stops devices reaching each other. Over Tailscale, use the phone's tailnet address (it starts with 100.) in place of its Wi-Fi address, and check the Wi-Fi address again if your router hands out a new one.
- 401 Unauthorized. The token is wrong, or this connection is off in Marrow. Each connection has its own token, and turning one off locks that app out. Switch it on in Your AIs, or copy the token again.
- Test from the computer. The curl line in the Local MCP guide shows whether the phone answers, and with which error.
Server MCP checks
- Reach the server first. From the computer running your AI, open
http://<server-ip>:8800/health. It answers without a token. If it does not, the server is not running or the address is wrong. Then try the curl test on the Server MCP page. - 401 from the server. Agents use the mcp token the server printed when it started. It is also in the
.mcp-tokenfile in the server's data folder. The phone's pairing token does not work for agents. - Old data, or Not delivering in Marrow. The phone cannot reach the server to push. Check the server is running and that its address in Marrow still works from the phone. For a server on your home network, Marrow needs Local Network access: Settings, Privacy and Security, Local Network.
- It reads but cannot log. Turn on Allow AI write for this server in Connects, Your AIs. Entries wait on the server and land when Marrow next opens or wakes.
Automated checks
- Test with Run now. The line under Run now says what happened. Any 2xx answer counts as delivered. Anything else shows as Server answered and the status code, or the network error.
- Check the Activity log. In the automation, More options, Activity log lists its last 30 runs with the result of each.
- Runs come late. iOS picks the moment for background runs, and a phone that stays locked sends when it is next unlocked. Since last run catches up on the next run that succeeds.
- A receiver on your home network. Marrow needs Local Network access to reach it (Settings, Privacy and Security, Local Network). Tap Run now once with Marrow open, so iOS can ask: in the background it refuses without asking.
- It will not switch on. Each automation that is on counts as a connection. Free keeps 3 connections on at a time. Marrow Pro keeps up to 20: AIs, servers and automations together. Sources never count.
More fixes in the guides: Local MCP, Server MCP, Automated.
Questions
Does it work with n8n Cloud?
The webhook does: n8n Cloud gives the Webhook node a public Production URL. The MCP Client Tool node needs an address n8n can reach, so n8n Cloud needs Marrow's server on a public address, not the phone.
How do I protect the webhook?
Set the Webhook node's Authentication to Header Auth and add the same header to the automation in Marrow. Use the https address.
How often does it run?
As often as you set, in minutes, hours or days, at the moments iOS allows background work. Expect several runs a day. When automations run explains what to expect.
Webhook or MCP: which one?
The webhook pushes data into a workflow on a schedule. The MCP Client Tool node lets an n8n AI agent ask for what it needs while it runs. Many workflows use both.
Is it free?
Yes on Marrow's side: automations and the MCP server are on the free plan, three connections on at a time.
Other ways to do it, and when to pick them
We make Marrow, so here are the alternatives as fairly as we can put them.
- Health Auto Export. Its REST API automation posts JSON to the same Webhook node, on its Premium tier. Pick it if you already use it for other destinations. Marrow's nested shape follows its layout, so a workflow built for one reads the other. See healthyapps.dev.
- Apple Shortcuts. Free and already on the iPhone. A personal automation can read a few Health samples and post them with Get Contents of URL. Pick it for one or two numbers a day when you do not mind building and maintaining each one, and remember it reads Health only while the phone is unlocked.
- A file you import. For a one-time load, make a CSV in Marrow under Manual, or convert Apple's export.zip with our converter, and read it with n8n's file nodes. Pick it when you need history once, not a feed.
Related: Apple Health to a webhook · Automations: every payload · Apple Health MCP server