Marrow
EN
App StoreGoogle Play

Connects / AI / Automation

Apple Health to n8n: a scheduled webhook or a live MCP node

Local MCPServer MCPAutomated

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.

  1. In Marrow, open Connects, then Exports, and tap n8n. Turn Automated on.
  2. In n8n, add a Webhook node set to POST.
  3. Copy its Production URL.
  4. 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.

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.

  1. In Marrow, open Connects, then MCP, and tap n8n. Pick Local MCP.
  2. Turn Local MCP on and add n8n to Your AIs. Marrow shows the address and a token made for this connection.
  3. In n8n, add an MCP Client Tool node.
  4. Server Transport: HTTP Streamable. Authentication: Bearer.
  5. 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.

  1. Run Marrow's server on a computer you keep on and pair it with the app (how).
  2. 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.
  3. In n8n, add an MCP Client Tool node.
  4. Server Transport: HTTP Streamable. Authentication: Bearer.
  5. 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

Try asking

If it does not work

In n8n

Local MCP checks

Server MCP checks

Automated checks

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.

Related: Apple Health to a webhook · Automations: every payload · Apple Health MCP server

More help

More Automation