How to connect Apple Health (HealthKit) to AI agents
checked by the operator
TL;DR
| Verdict | Official, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review |
|---|---|
| Who can use it | In the US, ChatGPT users (including the free plan), Claude Pro / Max subscribers, and personal Microsoft 365 subscribers (Copilot Health) can connect through official connectors. In Japan no official connector is offered yet, so the export plus an unofficial MCP server is the practical route. Developers embedding this in an app use HealthKit (paid developer program and App Review required). |
| Method | Official connector |
| Pricing | The Health app itself is free. The official connectors work even on ChatGPT's free plan (US only). Distributing an app that uses HealthKit requires the Apple Developer Program ($99/year). |
| Risk | The 'Export All Health Data' file is your entire health record for all time. Handing it to a cloud agent or external service takes highly sensitive health information off your device. |
Apple offers no cloud API; the data stays in HealthKit on the iPhone. In the US, ChatGPT Health, Claude (iOS app) and Copilot Health can connect officially for read access. In Japan no official connector is available, so combining the official export feature with a locally running unofficial MCP server is the practical option.
| Authentication | iOS Health permissions (read access granted per data type). The export route needs no authentication (file hand-off). |
|---|---|
| Checked by the operator | 2026.12.05 |
| How the operator checked | Connected with a real client |
Official MCP and AI guides
- Official MCP serverNo
Apple does not provide an MCP server. The B2B aggregator Terra offers a read-only MCP (AI Interface) to its own customers.
- Official guide for AI agentsNo
Apple publishes no llms.txt or AI/agent guide for HealthKit. Developer material is the standard documentation only.
Connectors
Official connectors from AI services
Claude's iOS app can connect to Apple Health (announced by Anthropic on January 11, 2026; beta). It is for US Pro / Max subscribers and is read-only (Claude cannot write to Health). Not available on the web or desktop apps.
ChatGPT Health (announced January 2026; generally available in the US from July 23, 2026) can connect to Apple Health. It covers US users aged 18+ on personal plans (Free / Go / Plus / Pro) on web and iOS; the Apple Health connection is set up on an iPhone. Business plans (Business / Enterprise, etc.) are excluded. Connected medical records, Apple Health data and conversations using them are stated not to be used to train foundation models or for ads. Not available outside the US, including Japan.
Copilot Health (announced by Microsoft in March 2026; in preview from May 29, 2026 for US users aged 18+ with Microsoft 365 Personal / Family / Premium) can connect to Apple Health. It is a dedicated health space, and connected data is kept separate from regular Copilot and is stated not to be used for training. Not available in Japan. Note: Microsoft's support page says it is temporarily paused during the move to the unified Copilot app (as of October 2026).
Not supported: Gemini
Third-party integration services
An official iOS Health service exists, with actions that write weight, sleep, workouts, calories consumed and more into the Health app. However there are no read triggers, so it cannot be used for an agent to look up health data.
A B2B health-data aggregator. It ingests Apple Health through its mobile SDK (via an iOS app) and delivers it through a unified API and webhooks. It also offers a read-only MCP (AI Interface) for agents. Pricing starts at $399/month billed annually; it is not for individuals.
Not supported: Zapier, Make, n8n, Power Automate, Pipedream, Composio, Yoom
Unofficial MCP servers
Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.
An unofficial, individually developed MCP server that imports the official Health export (export.zip / export.xml, ECG CSVs, workout GPX routes) into a local DuckDB and exposes it through 21 tools (read-oriented). v0.6.2 (checked 2026-12-05). DuckDB starts with external access disabled, designed so data never leaves the device.
Security assessment
For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.
- Official connectorClaudeOfficial from the integration service
Permissions required Read only Read access is granted per data type in the iOS Health permissions. Writing is not possible.
Terms of service No issues An official Anthropic integration that reads within the Health permissions. Anthropic states that data from health integrations is not used to train models.
Source: relevant section of the terms
Data path The Claude app on the iPhone reads HealthKit and the data is processed in Anthropic's cloud. It leaves the device. - Official connectorChatGPTOfficial from the integration service
Permissions required Read only You choose which categories to share at connection time. By default it asks each time; it can be changed to always allow.
Terms of service No issues An official OpenAI integration. OpenAI states explicitly that connected information is not used for model training or ad targeting.
Source: relevant section of the terms
Data path Synced from the iPhone to OpenAI's cloud. OpenAI states the data is deleted from its systems within 30 days after disconnecting. - Official connectorMicrosoft CopilotOfficial from the integration service
Permissions required Read only You choose which wearables and record types to connect.
Terms of service No issues An official Microsoft integration. Work/school accounts are excluded; it is a preview for personal Microsoft 365 subscribers.
Source: relevant section of the terms
Data path Apple Health data is sent to Microsoft's cloud and processed in a dedicated space separate from regular Copilot. - Third-party integrationIFTTTOfficial from the integration service
Permissions required Read and write Effectively write-only. Only data types you allowed to write in the iOS Health permissions are covered; no read triggers are offered.
Terms of service No issues An official IFTTT service. It only writes into Health and cannot be used for agent read access.
Source: relevant section of the terms
Data path The IFTTT iOS app writes into the on-device Health store. Written values also flow through IFTTT's cloud to connected services. - Third-party integrationTerraOfficial from the integration service
Permissions required Read only The customer's app obtains HealthKit permissions and reads via Terra. The MCP (AI Interface) is read-only.
Terms of service No issues A legitimate embedding route that reads within HealthKit permissions. The embedding app must comply with App Store Review Guideline 5.1.3 (no advertising / data-mining use, etc.).
Source: relevant section of the terms
Data path Data passes through and is stored in Terra's cloud, then delivered to the customer's backend via webhooks and similar. - Unofficial MCPapple-health-mcp-serverThird party (unofficial)
Permissions required Read only Uses no credentials. It only reads the file the user exported with the official feature. There is no way to restrict tools, so everything in the export is in scope.
Terms of service Conditional No terms provision prohibits analyzing your own export locally. App Store Review Guideline 5.1.3 (no advertising/data-mining use, no storing personal health information in iCloud, etc.) is a rule for developers distributing apps on the App Store and does not directly apply to an individual handling their own export. However, the export file contains your health information in full, so keeping it in cloud storage widens the exposure. Mind where you store it, and that results are sent to cloud-based clients when you use one.
Source: relevant section of the terms
Data path Fully local (stdio). However, with a cloud-based MCP client, retrieved results are sent to that AI service.
Data you can fetch within the terms of service
All data gathered in the Health app (steps, heart rate, sleep, workouts, body composition, nutrition, etc.). An export covers all time and all types. HealthKit separates read and write permissions per type.
- ScrapingNot stated in terms
App Store Review Guideline 5.1.3 governs health data such as HealthKit data. (i) No use or third-party provision for advertising, marketing or data mining (health-management improvement and health research allowed with permission), and the health data obtained must be disclosed. (ii) No writing false or inaccurate data, and personal health information must not be stored in iCloud. (iii)(iv) Health research requires consent and ethics review. These are rules for app distribution; reading your own export locally is out of scope.
- Fetching with the agent's own browser
There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.
Apple Health has no web interface, so there is nothing for a browser agent to operate. The official connectors are the alternative.
Usage
How to connect
- In the US with ChatGPT, open Health from the ChatGPT sidebar and connect Apple Health (choose the categories to share in the iOS app). With Claude, connect from the health integration in the iOS app. Neither is available in Japan.
- In Japan, to let an agent read the data, open your profile in the iPhone Health app, use 'Export All Health Data' to create export.zip, and move it to your PC.
- Register apple-health-mcp-server with your MCP client and point it at the folder holding the export ZIP (see the setup examples).
- Use the server's import feature to load the ZIP into the local database, then query steps, sleep, workouts and more.
Setup examples
Paste these as they are. Replace the API key, domain and similar values with your own.
claude mcp add --transport stdio --scope user \
--env APPLE_HEALTH_EXPORT_ZIPS_DIR=$HOME/Documents/AppleHealth \
apple-health -- uvx apple-health-mcp-server serveAPPLE_HEALTH_EXPORT_ZIPS_DIR is the folder where you put export.zip. uv (uvx) is required. As documented in the README for Claude Code.
Official page checked: https://github.com/rinoshiyo/apple-health-mcp-server
{
"mcpServers": {
"apple-health": {
"command": "uvx",
"args": ["apple-health-mcp-server", "serve"],
"env": {
"APPLE_HEALTH_EXPORT_ZIPS_DIR": "/Users/<you>/Documents/AppleHealth"
}
}
}
}Replace the APPLE_HEALTH_EXPORT_ZIPS_DIR path with your own folder. There is also an install method that drag-and-drops the MCPB bundle from GitHub Releases.
Official page checked: https://github.com/rinoshiyo/apple-health-mcp-server
See sleep trends
Tell me my average sleep time last week and the share of deep sleep.
Using apple-health-mcp-server's query_records / get_record_statistics, you can aggregate the sleep-stage records contained in the export.
Aggregate workouts
Give me this month's workout count and total time by type.
Using list_workouts and get_workout_details, you can retrieve type, duration, heart rate and more. Route data (GPX) can also be referenced if included in the export.
Pitfalls and tips
Pitfalls
- The export is manual and only contains data up to that moment. To see newer data you must export again.
- The official connectors (Claude, ChatGPT Health, Copilot Health) are US-only and cannot be used with a Japanese account (as of 2026-12-05).
- HealthKit cannot detect when read permission has been denied. Types without permission look like 'no data'.
- On the official-connector side you can narrow read access per data type in the iOS Health permissions. apple-health-mcp-server, on the other hand, has no way to restrict tools or data types: everything in the export is in scope.
- HealthKit has no server-callable API. To embed it in your own service, an iOS app must read on the device and send the data to your server.
Tips
- In the US with ChatGPT or Claude, the official connectors are the easiest route (read-only, and ChatGPT works on the free plan). In Japan, export plus an unofficial MCP server is the practical option; combined with a local MCP client, your health data never has to leave the device.
- To build it into a product, HealthKit is the legitimate route (developer program and review required). To handle health data from multiple services together, there are also B2B aggregators such as Terra (paid).
Test environment and change history
| How it was checked | Connected with a real client |
|---|---|
| Clients tried | Muse(Apple Health コネクタ) クラウド提供のためバージョン非公開 |
In the operator's environment, reading iPhone health data through Muse's Apple Health connector was confirmed. The synced categories were daily metrics, sleep and workouts; 79 metric types were observed in daily metrics, and daily aggregates for the most recent 7 days could be retrieved. Session counts within the synced range were 68 sleep sessions and 19 workouts. No concrete health values are published in this article. The unofficial MCP server (apple-health-mcp-server v0.6.2) was checked for its tool set and setup examples via its README and PyPI; it was not run on a real device.
Change history
- First edition.
Sources
Official and primary sources
Pages published by the service provider, the integration provider or the MCP author about their own product.
- Health & Fitness(Apple Developer)Basis for HealthKit's positioning and developer information., checked 2026.12.05
- App Store Review GuidelinesBasis for 5.1.3 (prohibition of advertising / data-mining use of health data, prohibition of iCloud storage, etc.)., checked 2026.12.05
- Health in ChatGPT(OpenAI Help Center)Basis for the Apple Health connection in ChatGPT Health, eligible plans, and the no-training policy., checked 2026.12.05
- Launching Health in ChatGPT(OpenAI)Announcement of the US launch of ChatGPT Health., checked 2026.12.05
- Claude connector directoryWhere to check Claude's connector listings., checked 2026.12.05
- apple-health-mcp-server(GitHub)Basis for the unofficial MCP server's tool set, setup examples, and its design that keeps data local (author's page)., checked 2026.12.05
- apple-health-mcp-server(PyPI)Checked the latest version, v0.6.2., checked 2026.12.05
- TerraBasis for the aggregator's coverage, its MCP (AI Interface), and pricing (from $399/month)., checked 2026.12.05
- Introducing Copilot Health (Microsoft announcement)Confirmed that Copilot Health can connect to Apple Health and 50+ wearables, and that it is a dedicated space for individuals., checked 2026.12.05
- IFTTT iOS Health serviceConfirmed it is an official service centered on write actions., checked 2026.12.05
References (third-party write-ups)
Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.
- OpenAI Launches ChatGPT Health With Apple Health Integration(MacRumors)Coverage of the ChatGPT Health announcement (regions and plans, supplementary)., checked 2026.12.05
- Claude for Healthcare for Patients(Pravida Health)Supplementary source on Claude's Apple Health integration (announced January 11, 2026; US Pro / Max; beta; read-only)., checked 2026.12.05
