Atlas / MCP servers / neiltron / apple-health-mcp

apple-health-mcpSAFE

mcp/neiltron/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.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
8 6r · 2w · 0d
Transport
stdio
License
MIT
Stars
568
01

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

Simple Health Export CSV

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

  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

Read from source at commit 5da7af51fe0dOBSERVED · 2026-09-20
02

Connect

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-code (npm)
claude mcp add apple-health-mcp -- npx -y @neiltron/[email protected]
03

Exposed tools (8)

6 read · 2 write · 0 destructive.

ToolRiskDescription
daysreadNumber of days to analyze (default 14)
health_querywriteRun one analytical query on Apple Health data.
health_reportreadGenerate structured health reports for a specific period
health_schemareadGet information about available health data tables, their structure, and sample data to help write SQL queries
sleep_analysisreadAnalyze sleep duration, stages, and consistency over a recent period
start_datewriteWeek start date (YYYY-MM-DD). Defaults to the most recent full week.
weekly_summaryreadSummarize the most recent week of health data: activity, heart rate, sleep, and workouts
workout_progressreadReview workout frequency, duration, and trends over a recent period
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

LOWFilesystem / path · fs.system_paths · CWE-22, CWE-59
src/db/database.test.ts:194
await expect(quotedDb.execute(`SELECT * FROM read_text('/etc/hosts')`)).rejects.toThrow();
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/importers/simple-csv/conformance.test.ts:1
import { runFormatConformance, type ConformanceExpectations } from '../../test-helpers/conformance';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/importers/simple-csv/conformance.test.ts:9
} from '../../test-helpers/csv-fixtures';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/importers/simple-csv/importer.test.ts:6
import { writeCsv, QUANTITY_HEADER, WORKOUT_HEADER } from '../../test-helpers/csv-fixtures';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/importers/simple-csv/importer.ts:3
import type { HealthDataDB } from '../../db/database';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/importers/simple-csv/importer.ts:4
import { escapeSqlLiteral } from '../../utils';
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, @types/bun, @types/node, typescript
Why it matters. 4 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-20 · audit v0.4.1 · source sha 5da7af51fe0dfull audit observations/trust-audit/mcp-server/neiltron__apple-health-mcp.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-205da7af51fe0dSAFEB89first audit
06

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.

Advertisement