Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

Apple Health MCP

Lets your AI agent answer questions about your sleep, workouts, activity and heart data from a local Apple Health export.

575 stars on GitHubby neiltronLicense MITUpdated 2 months ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add apple-health -e HEALTH_DATA_DIR="<your value>" -- npx -y @neiltron/apple-health-mcp

What to fill in

NameWhat it isRequired
HEALTH_DATA_DIRPath to the Apple Health CSV export directoryYes
MAX_MEMORY_MBMaximum memory usage in megabytesNo
CACHE_SIZEMaximum number of cached query resultsNo

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show me my average sleep per night this month.
Give me a weekly health report for last week.

What it is

This server reads your Apple Health CSV export on your own computer and lets you query it with SQL through DuckDB. It offers schema discovery, analytical queries and weekly or monthly health summaries. It does not upload the export or make network requests.

What it can do

  • health_schema: discover tables, columns and units
  • health_query: run one DuckDB SELECT analytical statement
  • health_report: weekly, monthly or custom health summary

When to use

  • β€ΊWhen you want to see how your sleep changed over the last months
  • β€ΊWhen you want a monthly summary of your workouts and activity
  • β€ΊWhen you want to compare your resting heart rate over time

What you need

Node.js 22 or newer and an Apple Health CSV export made with the Simple Health Export CSV iPhone app. Set HEALTH_DATA_DIR to the unzipped folder.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. It uses the MIT license.

Does my health data leave my computer?

The server does not upload it, but results returned to your MCP client may go to that client's model provider.

Which export format works?

Only the Simple Health Export CSV layout. The native export.xml is not supported.

How much memory does it use?

About 1 GiB covers a two-year export. The default limit is 2048 MB and can be raised with MAX_MEMORY_MB.

Is it medical advice?

No. The readme says reports summarize recorded data and are not medical advice.

Is it safe to expose on a network?

No. Run it through a local stdio MCP client only.

If it does not work

  • β€ΊCheck that HEALTH_DATA_DIR points to the unzipped export folder with the CSV files.
  • β€ΊStart with health_schema because table names depend on your export.
  • β€ΊIf a large export fails with a memory error, raise MAX_MEMORY_MB.

5 new skills a week. 1 minute to read.