Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Apple Health (HealthKit) to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/apple-health.md
Health & Fitness

How to connect Apple Health (HealthKit) to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itIn 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).
MethodOfficial connector
PricingThe 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).
RiskThe '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.

AuthenticationiOS Health permissions (read access granted per data type). The export route needs no authentication (file hand-off).
Checked by the operator2026.12.05
How the operator checkedConnected with a real client

For AI agents: Markdown ・ JSON

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

    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

    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.

  • Microsoft Copilot

    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

  • IFTTT

    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.

  • Terra

    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.

  • 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

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 requiredRead only

Read access is granted per data type in the iOS Health permissions. Writing is not possible.

Terms of serviceNo 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 pathThe 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 requiredRead 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 serviceNo 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 pathSynced 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 requiredRead only

You choose which wearables and record types to connect.

Terms of serviceNo 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 pathApple 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 requiredRead 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 serviceNo 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 pathThe 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 requiredRead only

The customer's app obtains HealthKit permissions and reads via Terra. The MCP (AI Interface) is read-only.

Terms of serviceNo 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 pathData 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 requiredRead 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 serviceConditional

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 pathFully 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.

Source: relevant section of the terms of service

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)
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)
{
  "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

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 checkedConnected with a real client
Clients triedMuse(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.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect Health Connect to AI agents

Official, individuals OK

How to connect Spotify to AI agents

Official, individuals OK

How to connect Hevy to AI agents

Official, individuals OK

How to connect YouTube to AI agents

Official, individuals OK