How do I ask my own AI about my Health Connect or Apple Health data over MCP?

Send your data with the Life Dashboard app, from an Android phone or an iPhone, to the Life Dashboard stack, start the stack's built-in MCP server, and connect a model that can use MCP tools. A local model through Ollama keeps everything on your own hardware, and Claude Desktop or another cloud client can use the same server. If your data goes to Home Assistant instead, ha-mcp reads its history; if it goes to a Postgres of your own, DBHub does. It works for Health Connect data from Samsung Health, Fitbit, Garmin and other apps, for Apple Health data from an iPhone and an Apple Watch, and in Europe, where the health connectors of Claude and ChatGPT aren't available.

The app itself contains no AI and never talks to a model, and neither does the stack. The MCP server only answers a client you connect, and the model reads what your receiver already stores, through a connection that can't change anything.

PhoneThe stack, Home Assistant or your PostgresRead-only MCP serverYour model

By Owen Vogelaar, who maintains Life Dashboard 14 min read

Get it on Google PlayDownload on the App Store

€4.99 on Google Play, €6.99 on the App Store. Once, no subscription.

The stack's MCP server

How it fits together

MCP is the standard way for a model to call tools, and a read-only MCP server on the receiver gives the model tools to look up your history. The iPhone app sends the Android app's payload to the same stack and the same integration, so every route works for Apple Health data too, and one stack or one Home Assistant can hold an Android phone and an iPhone side by side. With an iPhone below lists what differs.

Use route 1 if you run the Life Dashboard stack: its MCP server is part of it. Use route 2 if you send to the Life Dashboard integration in Home Assistant, and route 3 if n8n or a receiver of your own already writes to a Postgres you run.

In Europe, where the official health connectors aren't available

As of October 2026, the health connectors that Claude and ChatGPT offer themselves are for users in the US only:

  • Claude reads Apple Health and Health Connect in its iPhone and Android apps. It's in beta on Pro and Max plans and "currently limited to users in the US", according to Anthropic's help pages for Android and iPhone. On Android it needs Android 14 or later.
  • Health in ChatGPT is for logged-in users in the US aged 18 or older, on the web and iOS. It connects Apple Health on an iPhone, and the help page doesn't mention Health Connect or Android (OpenAI's help page). For the early access in January 2026, OpenAI left out the European Economic Area, Switzerland and the United Kingdom (OpenAI's announcement).

So outside the US, the EEA, the UK and Switzerland included, neither assistant reads your Health Connect or Apple Health data by itself. The route on this page doesn't depend on where you live:

  1. Your data sits in your own stack, Home Assistant or Postgres, sent there by the app.
  2. A read-only MCP server runs on top of it: the stack's own, ha-mcp or DBHub.
  3. Any model that can use MCP tools reads it. That can be a local model, or Claude: Claude Desktop runs MCP servers on your own computer, and a custom connector in Claude connects from Anthropic's cloud, so that server must be reachable from the internet (Anthropic's help page).

You run the server and decide which model may read it. With a cloud model, your questions and the tool results go to its provider.

What you need

  • A model with tool support. For a local one, Ollama runs a model such as qwen3 (8B or 14B) or gpt-oss:20b. Pick one without a -cloud tag: those run on Ollama's servers. An 8B model wants 16 GB of memory; 20 to 30B wants a 24 GB graphics card or a Mac with 32 GB or more.
  • A chat client that speaks MCP, such as Open WebUI, LM Studio or Claude Desktop, unless you use Home Assistant's own assistant. Ollama runs the model; the chat client makes the MCP connection.
  • History to ask about. Send history under What to send, on Android and on an iPhone, sends up to all your history, and Home Assistant and the stack take in every day of it.

Set it up

Route 1: the stack's own MCP server

The stack has an optional MCP server as a fourth image, next to the receiver, Postgres and Grafana. It reads the stack's dash views, which already turn records into days, nights and workouts in your time zone, so a model never has to write SQL against nested JSON.

  1. In the stack's .env, set MCP_TOKEN to a long random string, different from API_TOKEN. The server refuses to start without one:
    echo "MCP_TOKEN=$(openssl rand -hex 32)" >> .env
  2. Start it with its profile. A plain docker compose up leaves it out, so add COMPOSE_PROFILES=mcp to .env if upgrades should include it:
    docker compose --profile mcp up -d
  3. Connect a client over Streamable HTTP, at http://<address of this machine>:8090/mcp with the header Authorization: Bearer <MCP_TOKEN>. In Open WebUI, add it under Admin settings > Integrations > External tool servers as the type MCP (Streamable HTTP), with the token as bearer authentication, then switch the tools on in a chat with your Ollama model. In LM Studio, add the URL and the header to mcp.json.
  4. Or use Claude Desktop on the same machine, over stdio, without the port or the token. Under Settings > Developer > Edit Config, add the stack, with the folder of your docker-compose.yml as the path, and restart Claude Desktop:
    {
      "mcpServers": {
        "life-dashboard": {
          "command": "docker",
          "args": ["compose", "--project-directory", "/path/to/life-dashboard",
                   "--profile", "mcp", "run", "--rm", "--no-deps", "-T",
                   "mcp", "python", "server.py", "--stdio"]
        }
      }
    }
    Fetch the image once first with docker compose --profile mcp pull mcp.
  5. Ask a direct question with a period: “Use trend for sleep_h over 28 days, then workouts for the same period, and tell me whether I slept longer on days I worked out.”

The eight tools:

ToolWhat it returns
list_phonesThe phones with their platform, Android or iPhone, their last sync and the first and last day with data, plus the time zone and today's date. The model should call it first.
data_catalogWhat each phone has stored, with the apps that wrote each type, and what the other tools can answer from it, so a model asks only for what's there.
sync_statusWhen each phone last sent a payload, and per type and writing app when the newest record arrived and whether it went quiet, such as a watch that stopped writing heart rate.
daily_summaryOne row per phone and day: steps, distance, calories, sleep, workouts, screen time, resting heart rate and weight. Up to 92 days.
sleep_nightsOne night per phone: bedtime, wake time, hours asleep and in bed, deep, light, REM and awake, and the overnight low heart rate.
workoutsEvery workout with its activity, start, end and minutes.
trendOne metric, such as steps, sleep or resting heart rate, over the last 7 to 365 days against the same number of days before.
screen_timeScreen time on one day, with the top 10 apps. Android only.

Every tool reads as dash_ro, a database user that can only read the dash views, in read-only sessions that stop after 15 seconds. There's no tool that writes and none that takes SQL, so a model can't change or delete anything, and it can't read the raw records. Eight tools with fixed parameters are also far easier for a small model than SQL. On Kubernetes, the stack's Helm chart runs the same server with mcp.enabled; the MCP documentation has every client and parameter.

For a script rather than a model, the stack's receiver serves the same queries as a read-only JSON API under /api/, once you set API_TOKEN: days, nights, workouts, screen time, one metric as a series, and a trend. The API documentation lists every endpoint.

Route 2: Home Assistant with ha-mcp

The integration keeps your history in long-term statistics, with IDs like life_dashboard:<entry>_steps. With its Assist API, Home Assistant's built-in MCP server only offers current states, so it can answer “how many steps today” but not how this month compares with the last. ha-mcp, a community project, has a history tool that reads long-term statistics.

  1. In the Marketplace (HACS before Home Assistant 2026.11), add homeassistant-ai/ha-mcp-integration as a custom repository and install it. In the Marketplace that's Add from link, which asks for a GitHub connection. It needs Home Assistant 2026.8 or later. Restart if Home Assistant asks, then add HA-MCP Custom Component under Add integration and choose HA-MCP Server.
  2. In the HA-MCP panel in the sidebar, switch on Read Only Mode.
  3. Under Configure, turn off Remote access via webhook and set Network access to 127.0.0.1, unless a client on another machine needs it.
  4. Connect a model. Inside Home Assistant, add the Ollama integration, create a conversation agent with a tool-capable model and choose HA-MCP Server (tool search) under Control Home Assistant. Or add ha-mcp's URL in Open WebUI or LM Studio, and switch on its tool search in the HA-MCP panel. Treat that URL as an administrator password.
  5. Give the model the statistic ID, which Developer tools > Statistics lists, and ask for monthly averages with ha_get_history from its statistics.

Route 3: your own Postgres with DBHub

If n8n or a receiver of your own already stores the payloads in a Postgres you run, a generic database MCP server such as DBHub can give a model read-only access to it.

  1. Store records keyed on uuid as text, daily_totals as one row per date, and apply deleted_records, so a model can't count a walk twice or read a record you deleted. Store it in Postgres has the details.
  2. Create a role that can only read those tables:
    CREATE ROLE llm_ro LOGIN PASSWORD 'change-me';
    ALTER ROLE llm_ro SET default_transaction_read_only = on;
    ALTER ROLE llm_ro SET statement_timeout = '30s';
    GRANT CONNECT ON DATABASE health TO llm_ro;
    GRANT USAGE ON SCHEMA public TO llm_ro;
    GRANT SELECT ON records, daily_totals TO llm_ro;
    Use your own table and database names, and grant SELECT on every view you add later.
  3. Run DBHub in read-only mode, connected as that role, and add its URL in Open WebUI or LM Studio. The recipe for this route has a docker-compose.yml and a dbhub.toml.
  4. Add views with one row per day and per night. A model answers far better from those than from sleep sessions as JSON. The stack's views.sql is a template: adapt its table and column names to yours.

On Kubernetes, the stack's Helm chart can also use a Postgres 18 you already run, with a database of its own (its external mode), and then route 1 works there. With Docker Compose, running the stack against your own database isn't covered by its documentation.

With an iPhone

Many Apple Health MCP servers read an export you make by hand in the Health app, so their answers stop at the day of that export. Here the iPhone app keeps sending new data to the stack on your own server, and the same tools read an Android phone next to it.

Pair Life Dashboard for iPhone with the stack or the integration by its QR code, switch on the Apple Health types you want under What to send, and run Send history there with 1 year to give the model a year to read. What an Apple Watch records, such as heart rate, HRV, sleep stages and workouts, comes along through Apple Health; Apple Watch in Home Assistant lists it. A few things differ from Android:

  • HRV. Apple Health stores SDNN and Health Connect stores RMSSD. The stack keeps them apart as two trend metrics, hrv_sdnn for an iPhone and hrv_rmssd for Android, and never averages them together. Ask for the one your phone sends.
  • Sleep. An iPhone night mixes the watch's stages with the iPhone's time in bed. The stack's sleep_nights counts only the stages from the night's own source, so the watch's deep, light (Apple's Core), REM and awake.
  • No screen time. iOS doesn't let an app send it anywhere, so screen_time and the screen time in daily_summary only come from Android phones.
  • Late days. iOS decides when the app runs in the background and can't read Apple Health while the iPhone is locked, so the last day can be missing until the next sync. sync_status tells the model when the iPhone last sent data.
  • Your own Postgres. For route 3, an iPhone sends one active energy sample under both active_calories and total_calories, and a sleep deletion names one stage. Apple Health to n8n has an upsert and the deletion queries for both.

What you get

  • Answers about your own history, such as monthly step averages or your sleep in weeks you trained more, from a model you choose, on your own hardware if you like.
  • Read-only access. With the stack's tools, a read-only role or Read Only Mode, the model can't change a setting, delete a record or switch a device.

Limits

  • With a cloud model, Claude Desktop included, your questions, every tool result it asks for and its answers go to the provider, under its retention and training settings. Claude Desktop runs the stack's server on your computer, but the conversation goes to Anthropic.
  • The stack's tools answer per day, per night and per workout, for up to 92 days per call, and a trend over up to 365. They don't hand out single readings or raw records.
  • Docker publishes the stack's MCP port on every network interface of the machine, and over plain HTTP the token and every answer cross your network readable. Set MCP_PORT=127.0.0.1:8090 to keep it to the machine, and use TLS or a VPN beyond your own network. A custom connector in a web app calls from the provider's cloud and would need the server on the internet; the stack's documentation doesn't cover that.
  • The stack's .env starts with default passwords for Grafana and the two read-only users. Change them before you add another way in.
  • ha-mcp works with an administrator's access. Everyone who can talk to its conversation agent can ask about your health data, so give it its own agent, outside shared voice pipelines. A question asked by voice also goes through your speech engine, which with Home Assistant Cloud isn't local.
  • Types you didn't switch on, or days the phone didn't sync, aren't there to read. Screen time history only comes from Android phones. The stack keeps series sent per time window apart, and only its heart rate views read them, so leave Data resolution on Every record, the default.
  • Types your watch's app doesn't share with Health Connect aren't there either, and they decide which questions a model can answer. Samsung Health keeps HRV, resting heart rate and respiratory rate to itself, and Garmin Connect writes no HRV to Health Connect at all and keeps resting heart rate to itself.
  • On an iPhone, the app reads 38 Apple Health types. What's in them depends on what your watch, iPhone and other apps write to Apple Health, and anything outside those types, such as an ECG, stays on the iPhone.
  • A model isn't a doctor. It can sum your steps correctly and still draw a wrong conclusion.

Life Dashboard

Start with the data: the stack or the integration, and a backfill of all your history from the app.

Get it on Google Play

€4.99 once on Google Play: the easy way, with automatic updates, and it supports development.

Other ways to install the same app, with the same signing key: APK on GitHub · Obtainium · F‑Droid

Download on the App Store

€6.99 once on the App Store, no subscription.

Build with Xcode

The stack's MCP server The Home Assistant route

The open-source apps this guide uses, for Android and iPhone. No account and no cloud. More about Android and iPhone.

Common questions

Does the Life Dashboard app send my data to an AI?

No. The app contains no AI and never talks to a model, and the stack sends nothing to any AI by itself. The app sends only to the destinations you set up; a model reads from your receiver once you connect one.

Can I use a cloud model such as Claude instead?

Yes. Claude Desktop can start the stack's MCP server on your own computer over stdio, and any client that speaks Streamable HTTP can use it with the token. Then your questions, every tool result and the answers go to the provider. A custom connector in Claude, or a connector in another web app, connects from the provider's cloud and needs your server reachable from the internet.

Can I connect Health Connect to Claude or ChatGPT in Europe?

Not with their own health connectors. As of October 2026, Claude's Apple Health and Health Connect integration and Health in ChatGPT are only for users in the US, and ChatGPT's help page names Apple Health, not Health Connect. Your own MCP server works anywhere: the model reads the history you keep in the stack, Home Assistant or Postgres.

Is there a Health Connect MCP server?

Not on the phone: Health Connect has no web API, so a server can't read it directly. The Life Dashboard app sends the data to a server of your own, and the Life Dashboard stack has an MCP server built in, with eight read-only tools for days, nights, workouts, trends, screen time and what each phone has sent. In Home Assistant, ha-mcp reads the integration's history, and on a Postgres of your own, DBHub in read-only mode does. That works for Samsung Health, Fitbit, Garmin and any other app that writes to Health Connect, for the types each app shares there.

Is there an Apple Health MCP server?

Not on the iPhone: Apple Health has no web API, so a server can't read it directly. Life Dashboard for iPhone sends Apple Health data, Apple Watch data included, to the Life Dashboard stack, whose MCP server gives a model the same eight read-only tools as for Android. In Home Assistant, ha-mcp reads the integration's history, and on a Postgres of your own, DBHub in read-only mode does.

Why not Home Assistant's built-in MCP server?

With the Assist API, it gives a model the current state of the entities you exposed to Assist, with no tool for history or statistics. It can answer questions about today, not about last month.