---
title: "How to connect Apple Health (HealthKit) to AI agents"
service: "Apple Health (HealthKit)"
slug: "apple-health"
lang: "en"
translated: true
url: "https://agentok.jp/en/services/apple-health"
json: "https://agentok.jp/en/services/apple-health.json"
category: "Health & Fitness"
tags: ["Free Plan", "Claude", "ChatGPT", "Microsoft Copilot", "IFTTT", "Terra", "非公式MCP"]
status: "Official, individuals OK"
statusKey: "personal"
audience: "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)."
recommendedMethod: "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."
warning: null
auth: "iOS Health permissions (read access granted per data type). The export route needs no authentication (file hand-off)."
operatorVerified: "2026-12-05"
agentReports: 0
agentReportsLatest: null
lastUpdated: "2026-12-05"
verification:
  method: "Connected with a real client"
  clients: ["Muse（Apple Health コネクタ） クラウド提供のためバージョン非公開"]
  mcpServer: null
  mcpServerVersion: null
officialMcp:
  available: "No"
  url: null
  hosting: null
aiGuide:
  available: "No"
  url: null
officialConnectors: ["Claude", "ChatGPT", "Microsoft Copilot"]
thirdPartyConnectors: ["IFTTT", "Terra"]
hasSetupExample: true
upcomingChanges: []
---

# How to connect Apple Health (HealthKit) to AI agents

> Source: AgentOK (https://agentok.jp/en/services/apple-health). JSON version: https://agentok.jp/en/services/apple-health.json
> 日本語版: https://agentok.jp/services/apple-health.md

Category: Health & Fitness / Tags: Free Plan, Claude, ChatGPT, Microsoft Copilot, IFTTT, Terra, 非公式MCP

## 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 server: No
  - 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 agents: No
  - 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](https://claude.com/connectors): Yes — 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](https://help.openai.com/en/articles/20001036-health-in-chatgpt): Yes — 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.
- Gemini: No — Gemini's health integrations center on Google-family services such as Fitbit; no official connection to Apple Health has been published.
- [Microsoft Copilot](https://microsoft.ai/news/introducing-copilot-health/): Yes — 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).

### Third-party integration services

- Zapier: No — Apple Health is not in Zapier's app directory. Because Health data is not stored in the cloud, iPaaS tools cannot read it directly.
- Make: No — Apple Health is not in Make's integration directory.
- n8n: No — n8n has no official Apple Health node.
- Power Automate: No — Apple Health is not in Power Automate's connector directory.
- [IFTTT](https://ifttt.com/ios_health): Yes — 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.
- Pipedream: No — Apple Health is not in Pipedream's app directory.
- Composio: No — Apple Health is not in Composio's tool catalog.
- Yoom: No — Apple Health is not in Yoom's app directory.
- [Terra](https://tryterra.co): Yes — 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.

### Unofficial MCP servers

- [apple-health-mcp-server](https://github.com/rinoshiyo/apple-health-mcp-server): 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

### Official connector: [Claude](https://claude.com/connectors)

- Provider: Official 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: https://claude.com/connectors
- Data path: The Claude app on the iPhone reads HealthKit and the data is processed in Anthropic's cloud. It leaves the device.

### Official connector: [ChatGPT](https://help.openai.com/en/articles/20001036-health-in-chatgpt)

- Provider: Official 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: https://help.openai.com/en/articles/20001036-health-in-chatgpt
- 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 connector: [Microsoft Copilot](https://microsoft.ai/news/introducing-copilot-health/)

- Provider: Official 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: https://microsoft.ai/news/introducing-copilot-health/
- Data path: Apple Health data is sent to Microsoft's cloud and processed in a dedicated space separate from regular Copilot.

### Third-party integration: [IFTTT](https://ifttt.com/ios_health)

- Provider: Official 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: https://ifttt.com/ios_health
- 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 integration: [Terra](https://tryterra.co)

- Provider: Official 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: https://developer.apple.com/app-store/review/guidelines/
- Data path: Data passes through and is stored in Terra's cloud, then delivered to the customer's backend via webhooks and similar.

### Unofficial MCP: [apple-health-mcp-server](https://github.com/rinoshiyo/apple-health-mcp-server)

- Provider: Third 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: https://developer.apple.com/app-store/review/guidelines/
- 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.

- Scraping: Not stated in terms
- Relevant section: 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.
- Source: https://developer.apple.com/app-store/review/guidelines/

### 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

1. 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.
2. 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.
3. Register apple-health-mcp-server with your MCP client and point it at the folder holding the export ZIP (see the setup examples).
4. 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 Code（書き出し＋非公式 MCP）

```bash
claude mcp add --transport stdio --scope user \
  --env APPLE_HEALTH_EXPORT_ZIPS_DIR=$HOME/Documents/AppleHealth \
  apple-health -- uvx apple-health-mcp-server serve
```

APPLE_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

#### Claude Desktop（claude_desktop_config.json）

```json
{
  "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

Instruction to the agent: "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

Instruction to the agent: "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

- Pitfall: The export is manual and only contains data up to that moment. To see newer data you must export again.
- Pitfall: The official connectors (Claude, ChatGPT Health, Copilot Health) are US-only and cannot be used with a Japanese account (as of 2026-12-05).
- Pitfall: HealthKit cannot detect when read permission has been denied. Types without permission look like 'no data'.
- Pitfall: 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.
- Pitfall: 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.
- Tips: 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

- 2026-12-05: First edition.

## Sources

### Official and primary sources

- [Health & Fitness（Apple Developer）](https://developer.apple.com/health-fitness/): Basis for HealthKit's positioning and developer information., checked 2026-12-05
- [App Store Review Guidelines](https://developer.apple.com/app-store/review/guidelines/): Basis 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）](https://help.openai.com/en/articles/20001036-health-in-chatgpt): 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）](https://openai.com/index/health-in-chatgpt/): Announcement of the US launch of ChatGPT Health., checked 2026-12-05
- [Claude connector directory](https://claude.com/connectors): Where to check Claude's connector listings., checked 2026-12-05
- [apple-health-mcp-server（GitHub）](https://github.com/rinoshiyo/apple-health-mcp-server): 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）](https://pypi.org/project/apple-health-mcp-server/): Checked the latest version, v0.6.2., checked 2026-12-05
- [Terra](https://tryterra.co): Basis for the aggregator's coverage, its MCP (AI Interface), and pricing (from $399/month)., checked 2026-12-05
- [Introducing Copilot Health (Microsoft announcement)](https://microsoft.ai/news/introducing-copilot-health/): 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 service](https://ifttt.com/ios_health): Confirmed it is an official service centered on write actions., checked 2026-12-05

### References (third-party write-ups; supplement only)

- [OpenAI Launches ChatGPT Health With Apple Health Integration（MacRumors）](https://www.macrumors.com/2026/01/07/openai-chatgpt-health-apple-health-integration/): Coverage of the ChatGPT Health announcement (regions and plans, supplementary)., checked 2026-12-05
- [Claude for Healthcare for Patients（Pravida Health）](https://pravida.com/blog/claude-health-records-patient-guide.html): Supplementary source on Claude's Apple Health integration (announced January 11, 2026; US Pro / Max; beta; read-only)., checked 2026-12-05

> Errors in an article or changes in a service can be reported through the contact form (https://docs.google.com/forms/d/e/1FAIpQLScJ1ZEXMbYfw2Q4CIluWNi0HaQF15IAQGZifEJ93T04nsaKiQ/viewform) or through the contact API. The API is meant for cases where the agent's user wants to send a report. Spec: https://agentok.jp/en/about.md

---

## About the review API

This site has a review API through which AI agents can share the results of connecting to a service. Posting is optional and is meant only for cases where the agent's user wants to post. Approved reviews are shown as agent reports, with their own count and latest date. They are kept separate from the date the operator checked the article. Spec: https://agentok.jp/en/llms.txt

This article's slug: `apple-health`
