Apple Health MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Apple Health MCPHow many steps did I take yesterday and what was my sleep like?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
apple-health-mcp
An MCP server for Apple Health data. Reads daily health metrics and workouts exported by the Health Auto Export iOS app.
Features
MCP Server: 3 tools for querying Apple Health data from Claude Code or any MCP client
No API keys needed: Reads local CSV files exported by Health Auto Export to iCloud Drive
Comprehensive: Steps, HR, HRV, SpO2, sleep stages, body composition, workouts
Related MCP server: Apple Health MCP
MCP Tools
Tool | Description |
| Daily summary: steps, energy, HR, HRV, sleep stages, body comp, workouts |
| Workout sessions for a date (type, duration, HR, calories, distance) |
| Multi-day trends for steps, HR, HRV, sleep, weight |
Setup
1. Set up Health Auto Export on iPhone
This MCP server reads CSV files produced by Health Auto Export, a third-party iOS app that automatically exports Apple Health data to iCloud Drive. The app runs in the background and syncs new data throughout the day.
Install Health Auto Export from the App Store
Open the app and grant it access to Apple Health data when prompted
Go to Automations and create two automations:
Daily Metrics: Select the health metrics you want (steps, heart rate, sleep, etc.), set format to CSV, frequency to Daily, and destination to iCloud Drive
Workouts: Select workout data, set format to CSV, frequency to Daily, and destination to iCloud Drive
The app will export CSV files to iCloud Drive, which syncs automatically to your Mac at:
~/Library/Mobile Documents/iCloud~com~ifunography~HealthExport/Documents/Verify the files are syncing by checking that the directory contains
Daily Export/andWorkouts/folders with dated CSV files
2. Install
git clone https://github.com/daveremy/apple-health-mcp.git
cd apple-health-mcp
npm install
npm run build3. Use as MCP Server
Add to your Claude Code project's .mcp.json:
{
"mcpServers": {
"apple-health": {
"type": "stdio",
"command": "node",
"args": ["/path/to/apple-health-mcp/dist/mcp.js"]
}
}
}Or register with the Claude CLI:
claude mcp add apple-health --scope project -- node /path/to/apple-health-mcp/dist/mcp.jsCustom Export Directory
If your Health Auto Export saves to a different location, set the environment variable:
{
"env": {
"APPLE_HEALTH_EXPORT_DIR": "/path/to/your/export/directory"
}
}Data Format
The server expects the CSV file structure produced by Health Auto Export:
Documents/
Daily Export/
HealthMetrics-YYYY-MM-DD.csv
Workouts/
Workouts-YYYY-MM-DD.csvRequirements
Node.js 18+
macOS (for iCloud Drive access)
Health Auto Export iOS app
License
MIT
Available Tools
3 toolsapple_health_dailyDaily SummaryB
Get Apple Health daily summary: steps, energy, HR, HRV, sleep stages, body comp, workouts
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, defaults to today |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full disclosure burden. It enumerates the data categories returned, which helps understand scope. However, it lacks behavioral details such as error handling for future dates, privacy/auth requirements, data availability when Health permissions are denied, or whether values are summed/averaged.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single efficient sentence front-loaded with the action. The colon-separated list of metrics is compact and readable. No extraneous text, though slightly dense.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Without output schema, the description adequately compensates by listing the seven metric categories returned. However, for a health data tool with no annotations, it should clarify behavior regarding missing data (null values vs zeros) and permission requirements to be fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema has 100% coverage (date field fully documented with format and default), establishing baseline 3. Description does not add semantic context about the date parameter (e.g., timezone handling, how 'today' is determined), but none is required given complete schema documentation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Uses specific verb 'Get' and resource 'Apple Health daily summary'. Lists specific metric categories (steps, energy, HR, HRV, sleep stages, body comp, workouts) clarifying scope. However, it does not explicitly differentiate from sibling 'apple_health_workouts' despite mentioning workouts in its data list, nor contrast with 'apple_health_trends'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides no guidance on when to use this tool versus the sibling 'trends' or 'workouts' tools. The inclusion of 'workouts' in the daily summary list without qualification creates potential ambiguity about whether this returns summary workout statistics or detailed records.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
apple_health_trendsMulti-day TrendsB
Get daily health metrics for a date range (steps, HR, HRV, sleep, weight)
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look back (default 7) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses what metrics are returned (steps, HR, HRV, sleep, weight) which is valuable behavioral context. However, it lacks information on data availability (what happens if no data exists?), whether this is read-only (implied but not stated), or rate limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description consists of a single efficient sentence with no wasted words. The parenthetical list of metrics is compact and informative. It could benefit from a second sentence addressing sibling differentiation, but as written it is appropriately sized.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the low complexity (one optional parameter, no nested objects) and lack of output schema, the description adequately compensates by enumerating the specific health metrics returned. However, for a data-retrieval tool with no annotations, it should confirm the read-only nature and mention any data availability constraints.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the single 'days' parameter, establishing a baseline of 3. The description adds minimal meaning beyond the schema for the parameter itself, though the phrase 'date range' contextualizes the 'days' parameter appropriately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Get') and resource ('daily health metrics'), and scopes the output with specific examples (steps, HR, HRV, sleep, weight). It implicitly distinguishes from sibling 'apple_health_daily' by specifying 'date range' versus implied single-day scope, though it doesn't explicitly name siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the tool name ('trends'), the parameter ('days' to look back), and the phrase 'date range,' suggesting multi-day analysis. However, there is no explicit guidance on when to select trends versus daily snapshots or workout-specific data.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
apple_health_workoutsWorkoutsC
Get workout sessions for a date
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, defaults to today |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full disclosure burden. 'Get' implies read-only safety, but description omits what data structure returns (list of workouts, duration, types, calories), behavior when no workouts exist, or whether this includes all activity types. No output schema compounds this gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Extremely concise (6 words) and front-loaded with verb-first structure. No redundant phrases. However, brevity arguably underserves tool's behavioral complexity given lack of annotations and output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Acceptable for a single-parameter tool with 100% schema coverage, but gaps remain. Missing: return value description (critical without output schema), explicit sibling differentiation, and confirmation of read-only behavior. Minimum viable but not exemplary.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% (date parameter fully documented with format and default). Description references 'a date' acknowledging the parameter exists, but adds no semantic detail beyond schema's 'YYYY-MM-DD, defaults to today'. Baseline score appropriate given schema completeness.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clear verb 'Get' and resource 'workout sessions'. Scope 'for a date' implies filtering by specific date. Implicitly distinguishes from siblings by focusing on individual sessions vs aggregates (daily/trends), though explicit differentiation would strengthen this.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this versus apple_health_daily or apple_health_trends. Agent must infer that 'workouts' retrieves individual exercise sessions while siblings handle aggregated metrics. No mention of prerequisites or date range limitations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v0.1.0- First observed
apple_health_daily - First observed
apple_health_trends - First observed
apple_health_workouts
TDQS
Scored across 3 tools
The three tools have distinct primary purposes: daily summary, trends over a range, and workouts. However, apple_health_daily and apple_health_trends overlap significantly in metrics (steps, HR, HRV, sleep), which could cause confusion about when to use each. The descriptions help clarify, but some ambiguity remains.
All tool names follow a consistent apple_health_* pattern with clear, descriptive suffixes (daily, trends, workouts). This predictable naming makes it easy for agents to understand the tool set and infer purposes without confusion.
With only 3 tools, the server feels thin for the Apple Health domain, which typically includes more operations like adding data, querying specific metrics, or managing permissions. While it covers basic retrieval, the scope seems limited compared to the potential complexity of health data.
The tool set is severely incomplete for an Apple Health server, focusing only on retrieval of daily summaries, trends, and workouts. There are no tools for creating, updating, or deleting health data, nor for accessing detailed metrics or settings, which are common in health APIs. This will likely cause agent failures in broader health management tasks.
Maintenance
Related MCP Connectors
- SomviaOAuthapp.somvia
Apple Health training load, recovery, HRV and workout detail for Claude, ChatGPT and any MCP client.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Read wearables and lab health data — sleep, activity, workouts, timeseries, lab tests and orders.
Private health and fitness analytics through a secure remote MCP connection.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying health data from the Health Auto Export app on iPhone/iPad via MCP, allowing LLMs like Claude to access and analyze personal health metrics.9 npm65MIT
- AlicenseAqualityAmaintenanceLocal-first MCP server that reads Apple Health export files (export.xml/zip) and exposes activity, sleep, HRV, and workout data to AI agents, keeping all data on your machine.18169 npm2MIT
- FlicenseBqualityDmaintenanceEnables Claude to answer natural language questions about your Apple Health data by analyzing local CSV exports, supporting metrics like steps, heart rate, sleep, and more.62-
- AlicenseAqualityAmaintenanceAn MCP server that enables AI agents to query Apple Health data (190+ metrics) in natural language, including trends, comparisons, and structured exports.14119 npm4MIT