apple-health-mcpSAFE
Local-first Apple Health MCP server. Lets AI assistants answer questions about your sleep, workouts, activity and heart data from a local export.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://www.npmjs.com/package/@neiltron/apple-health-mcp) [](https://opensource.org/licenses/MIT)
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
- Node.js 22 or newer
- An Apple Health CSV export created with
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
Export health data
- Install and open Simple Health Export CSV on your iPhone.
- Select All and choose the time range to export.
- Transfer the archive to the computer running your MCP client.
- Unzip it and set
HEALTH_DATA_DIRto 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
5da7af51fe0dOBSERVED · 2026-09-20Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add apple-health-mcp -- npx -y @neiltron/[email protected]
Exposed tools (8)
6 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
days | read | Number of days to analyze (default 14) |
health_query | write | Run one analytical query on Apple Health data. |
health_report | read | Generate structured health reports for a specific period |
health_schema | read | Get information about available health data tables, their structure, and sample data to help write SQL queries |
sleep_analysis | read | Analyze sleep duration, stages, and consistency over a recent period |
start_date | write | Week start date (YYYY-MM-DD). Defaults to the most recent full week. |
weekly_summary | read | Summarize the most recent week of health data: activity, heart rate, sleep, and workouts |
workout_progress | read | Review workout frequency, duration, and trends over a recent period |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (7)
await expect(quotedDb.execute(`SELECT * FROM read_text('/etc/hosts')`)).rejects.toThrow();import { runFormatConformance, type ConformanceExpectations } from '../../test-helpers/conformance';} from '../../test-helpers/csv-fixtures';
import { writeCsv, QUANTITY_HEADER, WORKOUT_HEADER } from '../../test-helpers/csv-fixtures';import type { HealthDataDB } from '../../db/database';import { escapeSqlLiteral } from '../../utils';@modelcontextprotocol/sdk, @types/bun, @types/node, typescript
Gates applied: no_behavioural_pass.
5da7af51fe0dfull audit observations/trust-audit/mcp-server/neiltron__apple-health-mcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-20 | 5da7af51fe0d | SAFE | B | 89 | first audit |
Questions
What is the apple-health-mcp MCP server?
Local-first Apple Health MCP server. Lets AI assistants answer questions about your sleep, workouts, activity and heart data from a local export.
What tools does apple-health-mcp expose?
8 in total: 6 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is apple-health-mcp safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does apple-health-mcp need?
No credential environment variables were found in its source, so it appears to need none.
How does apple-health-mcp run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @neiltron/apple-health-mcp at 1.4.5.
How current is this page?
The grade is for one exact copy of the source (5da7af51fe0d), read on 2026-09-20. The repository is watched and re-audited when it changes.