SuperAPIAI Directory

health-export-mcp

github.com · AI coding

Read-only, local-first queries of Apple Health metrics.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsiOS · API

About this tool

Purpose: health-export-mcp is an open-source Model Context Protocol (MCP) server that reads Apple Health / HealthKit export files on the local machine, letting AI agents query their own health data in natural language and return clean JSON. It covers 190 metrics (activity, heart rate, HRV, sleep, resting heart rate, steps, workouts, VO₂ max, etc.), 16 tools, and 22 prompts.

Main capabilities: read-only, local-first, zero dependencies, no account, no developer server involvement. Data answers include coverage notes, and single-metric answers list the recorded events within the window as segmentBoundaries. Supports optional context files (health-events.json, health-profile.json, health-sessions.json, health-cycles.json, health-days.json); missing files are reported as available:false rather than "no data". The 22 prompts cover daily briefings, weekly reviews, appointment preparation, sleep quality, HRV trends, training and race weeks, before and after medication, GLP-1 dose comparisons, withdrawal milestones, cycle-aware trends, caregiver check-ins, blood glucose daily summaries, data coverage audits, etc., all emphasizing coverage honesty and not making diagnoses.

How to use: requires Node.js ≥18, a folder containing a MetricBridge export .health-cache.json, and an MCP-compatible client (Claude Desktop, Cursor, opencode, OpenClaw, Hermes, VS Code). Add it in Claude Code with one command: claude mcp add health-export -- npx -y health-export-mcp --data-dir "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Health Export" (paths containing spaces require double quotes). If you have no export data, you can first try synthetic data: npx -y health-export-mcp --demo, or after cloning, node server.mjs --demo; you can also run npm test to generate a sample cache. Clients such as Claude Desktop use the mcpServers configuration block, or drag in health-export.mcpb. After cloning, you can use node gen-deeplinks.mjs to generate one-click install links for Cursor / VS Code.

Use cases: AI health coaching, training load analysis, sleep correlation analysis, quantified self dashboards, personal n-of-1 experiments, etc.

Limitations: the server only reads export data, does not touch HealthKit, and does not write back; no telemetry, no network requests. Optional PAIRING_SECRET pairing and HEALTH_EXPORT_PASSPHRASE decryption of encrypted exports. Encryption protects exports at rest and LAN pushes, but does not protect an unlocked phone, the local machine, metadata, whole-file rollback replay, or weak passwords. ChatGPT, Gemini, Grok, n8n, and Home Assistant do not support MCP and need to consume the same data via webhook exports from the iOS app.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools