1. Conduid
  2. Data
  3. Apple Health MCP
MCP server · Data

Apple Health MCP

Local-first Apple Health MCP server. Lets AI assistants answer questions about your sleep, workouts, activity and heart data from a local export.

Unclaimed MIT data
70Good

Scored 7 days ago · breakdown

About Apple Health MCP

Apple Health MCP is an MCP server published by neiltron in the Data category: local-first Apple Health MCP server. Lets AI assistants answer questions about your sleep, workouts, activity and heart data from a local export.

The repository has 574 stars and 24 forks, with the last commit 16 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/neiltron/apple-health-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (3)

health_queryRun a read-only `SELECT` query with JSON, CSV, or summary output

Parameters not published.

health_reportGenerate a weekly, monthly, or custom health summary

Parameters not published.

health_schemaDiscover table names, columns, units, and sample rows

Parameters not published.

Ask AI

✦

Ask AI about Apple Health MCP

Powered by Claude · Grounded in docs

I know everything about Apple Health MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.4.5v1.4.5 · 20 Sep 2026Fixes Return CSV directly instead of wrapping it in a JSON string. Format CSV dates as ISO strings to match JSON output, independent of the server timezone. Keep query checks while simplifying their implementation. Validation 183 tests…
v1.4.3v1.4.3 · 19 Sep 2026What's Changed Fold query table loading into TableLoader, drop QueryOptimizer by @neiltron in https://github.com/neiltron/apple-health-mcp/pull/25 refactor: extract format importers behind a FormatImporter interface by @neiltron in…
v1.4.1v1.4.1 · 17 Aug 2026Fix silent row loss in the CSV loader. Column types are now inferred from the whole file, not a sample. (#23)
v1.4.0v1.4.0 · 16 Aug 2026Add prompt templates: weekly_summary, sleep_analysis, and workout_progress. Add resources: health://schema and health://tables. Start the server when the data directory is missing or empty. Write a warning to stderr. Add the MIT license…
v1.3.0v1.3.0 · 15 Aug 2026Changes The server loads the full history of each CSV file. The 90-day window is removed. A two-year export is fully queryable. The loader reads each CSV in one pass. This lowers peak memory. A 6,000,000-row export loads in about 2…

README

Apple Health MCP Server

npm version

Query Apple Health data from an MCP client using SQL and DuckDB. The server runs locally, reads CSV exports on demand, and provides tools for schema discovery, analytical queries, and health summaries.

Requirements

The native Apple Health export.xml format is not currently supported.

Configure an MCP client

For Claude Desktop, add the following to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "apple-health": {
      "command": "npx",
      "args": ["-y", "@neiltron/apple-health-mcp"],
      "env": {
        "HEALTH_DATA_DIR": "/path/to/your/unzipped/health-export"
      }
    }
  }
}

Restart the client after changing its configuration. Other MCP clients can use the same command, arguments, environment, and stdio transport.

Environment variables

Variable Required Default Purpose
HEALTH_DATA_DIR Yes — Directory containing the exported CSV files
MAX_MEMORY_MB No 2048 DuckDB memory limit in megabytes
CACHE_SIZE No 100 Maximum number of cached query results

Export health data

  1. Install and open Simple Health Export CSV on your iPhone.
  2. Select All and choose the time range to export.
  3. Transfer the archive to the computer running your MCP client.
  4. Unzip it and set HEALTH_DATA_DIR to the resulting directory.

The server reads the files in place. It does not upload the export or make network requests, although query results returned to your MCP client may be sent to that client's configured model provider.

Tools

Tool Purpose
health_schema Discover table names, columns, units, and sample rows
health_query Run one DuckDB SELECT-family analytical statement with JSON, CSV, or summary output
health_report Generate a weekly, monthly, or custom health summary

Start with health_schema; table names depend on the files in your export. See Querying Apple Health data for the data model and working examples.

health_query accepts one DuckDB analytical statement. See Query safeguards for supported statements and restricted operations.

Query safeguards

The server limits DuckDB file access to HEALTH_DATA_DIR. It also disables network access and temporary disk storage, and it locks the database settings. The data directory stays readable and writable so the importer can read CSV files.

These controls reduce accidental side effects from generated SQL. They do not isolate the process. Run the server through a local stdio MCP client. Do not expose it to an untrusted network client. Use process or OS isolation if the server must accept untrusted SQL.

History and memory

The first request that needs a table loads that table's full CSV history. There is no date window, so a query can reach as far back as the export goes.

Because every tool can reach the whole configured history, only start this server from an MCP client you trust with that data.

Loaded tables are held in memory, and DuckDB is given the MAX_MEMORY_MB limit described above. Roughly 1 GiB covers a two-year multi-table export, so the 2048MB default leaves headroom; raise MAX_MEMORY_MB for a larger export. The server never spills health rows to a temporary directory on disk, so an export that does not fit in the limit fails with an explicit error instead.

Other current limitations:

  • Only the Simple Health Export CSV layout is supported.
  • The DuckDB database is in memory and is rebuilt for each server process, so each launch reloads from the CSV files. Persistent incremental import is planned future work, not current behavior.
  • Device overlap can produce duplicate-looking measurements; queries should account for sourceName where appropriate.
  • Health reports summarize recorded data and are not medical advice.

Development

git clone https://github.com/neiltron/apple-health-mcp.git
cd apple-health-mcp
bun install

npm test
npm run typecheck
npm run build

See Architecture for the code layout, data lifecycle, and implementation constraints. See Release procedure for publishing and recovery steps.

License

MIT

README fetched from the repository yesterday. The original is authoritative.

Questions

About Apple Health MCP

How do I install Apple Health MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Apple Health MCP safe to use with an AI agent?

Its trust score is 70 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Apple Health MCP still maintained?

Yes — the latest release is v1.4.5 (20 Sep 2026), and the last commit was 16 days ago. The repository has 574 stars and 3 open issues.