原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MetricBridge Apple Health

作者:PhilipAD版本 1.11.0i★ 11i在你的电脑上运行官方网站 ↗
注册名称io.github.PhilipAD/health-export-mcp

安装方法

What it does

Ask your agent about your own Apple Health data: 194 metrics, 21 tools, local, 0 deps.

  • Connects 在你的电脑上运行
  • Account or key Needs PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE
  • Category 诊所与健康

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度23/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分35/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 MetricBridge Apple Health。按照 https://mcp.popnx.com/i/philipad-health-export-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 下载开发者的安装文件

    下载作者的 .mcpb 文件

    .mcpb 文件直接来自开发者,我们没有修改

  2. 双击文件,然后在电脑版 Claude 应用中点击 Install

  3. 试一试

    用 MetricBridge Apple Health 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 MetricBridge Apple Health,或回答中出现 MetricBridge Apple Health 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • HEALTH_DATA_DIR 存放 MetricBridge iOS 应用中 .health-cache.json 的文件夹。在 Mac 上未设置时,若 /Library/Mobile Documents/iCloudaihealthexportapp/Documents 存在,服务器将读取该路径
    查看英文原文Folder holding .health-cache.json from the MetricBridge iOS app. Unset on a Mac, the server reads ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents if it exists.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 MetricBridge Apple Health

MetricBridge Apple Health 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 MetricBridge Apple Health 的应用

  • 需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
  • 需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

B · 诊所与健康 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Claude Code 安装 MCP server MetricBridge Apple Health,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user health-export --env PAIRING_SECRET=your-value --env HEALTH_EXPORT_PASSPHRASE=your-value -- npx -y health-export-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MetricBridge Apple Health 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 MetricBridge Apple Health 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 MetricBridge Apple Health 网站 ↗

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add --scope user health-export --env PAIRING_SECRET=your-value --env HEALTH_EXPORT_PASSPHRASE=your-value -- npx -y health-export-mcp

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 MetricBridge Apple Health 在列表中并显示已连接

  6. 试一试

    用 MetricBridge Apple Health 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 MetricBridge Apple Health,或回答中出现 MetricBridge Apple Health 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • HEALTH_DATA_DIR 存放 MetricBridge iOS 应用中 .health-cache.json 的文件夹。在 Mac 上未设置时,若 /Library/Mobile Documents/iCloudaihealthexportapp/Documents 存在,服务器将读取该路径
    查看英文原文Folder holding .health-cache.json from the MetricBridge iOS app. Unset on a Mac, the server reads ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents if it exists.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 Cursor 安装 MCP server MetricBridge Apple Health,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "health-export": { "command": "npx", "args": [ "-y", "health-export-mcp" ], "env": { "PAIRING_SECRET": "your-value", "HEALTH_EXPORT_PASSPHRASE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MetricBridge Apple Health 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 MetricBridge Apple Health 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 MetricBridge Apple Health 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 MetricBridge Apple Health 的设置中,PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 MetricBridge Apple Health 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 MetricBridge Apple Health,或回答中出现 MetricBridge Apple Health 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • HEALTH_DATA_DIR 存放 MetricBridge iOS 应用中 .health-cache.json 的文件夹。在 Mac 上未设置时,若 /Library/Mobile Documents/iCloudaihealthexportapp/Documents 存在,服务器将读取该路径
    查看英文原文Folder holding .health-cache.json from the MetricBridge iOS app. Unset on a Mac, the server reads ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents if it exists.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 MetricBridge Apple Health 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)

让 AI 帮你安装

把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。

请在这台电脑上为 VS Code 安装 MCP server MetricBridge Apple Health,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "health-export": { "type": "stdio", "command": "npx", "args": [ "-y", "health-export-mcp" ], "env": { "PAIRING_SECRET": "your-value", "HEALTH_EXPORT_PASSPHRASE": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 MetricBridge Apple Health 的工具真的出现了。

这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Node.js(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    node -v
    • 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令

    打开 Node.js 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v

    安装一次,所有需要 Node.js 的工具都能用

  2. 注册并创建 MetricBridge Apple Health 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 MetricBridge Apple Health 网站 ↗

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 MetricBridge Apple Health 的设置中,PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 MetricBridge Apple Health 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 MetricBridge Apple Health,或回答中出现 MetricBridge Apple Health 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • HEALTH_DATA_DIR 存放 MetricBridge iOS 应用中 .health-cache.json 的文件夹。在 Mac 上未设置时,若 /Library/Mobile Documents/iCloudaihealthexportapp/Documents 存在,服务器将读取该路径
    查看英文原文Folder holding .health-cache.json from the MetricBridge iOS app. Unset on a Mac, the server reads ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents if it exists.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 MetricBridge Apple Health 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user health-export --env PAIRING_SECRET=your-value --env HEALTH_EXPORT_PASSPHRASE=your-value -- npx -y health-export-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "health-export": {
      "command": "npx",
      "args": [
        "-y",
        "health-export-mcp"
      ],
      "env": {
        "PAIRING_SECRET": "your-value",
        "HEALTH_EXPORT_PASSPHRASE": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "health-export": {
      "command": "npx",
      "args": [
        "-y",
        "health-export-mcp"
      ],
      "env": {
        "PAIRING_SECRET": "your-value",
        "HEALTH_EXPORT_PASSPHRASE": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "health-export": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "health-export-mcp"
      ],
      "env": {
        "PAIRING_SECRET": "your-value",
        "HEALTH_EXPORT_PASSPHRASE": "your-value"
      }
    }
  }
}

需要你填写的值

  • HEALTH_DATA_DIR env
    存放 MetricBridge iOS 应用中 .health-cache.json 的文件夹。在 Mac 上未设置时,若 /Library/Mobile Documents/iCloudaihealthexportapp/Documents 存在,服务器将读取该路径
    查看英文原文Folder holding .health-cache.json from the MetricBridge iOS app. Unset on a Mac, the server reads ~/Library/Mobile Documents/iCloud~ai~healthexport~app/Documents if it exists.
  • PAIRING_SECRET 机密 必填 env
    Only if Agent pairing is on in the iOS app (Settings > Agent pairing).
  • HEALTH_EXPORT_PASSPHRASE 机密 必填 env
    仅当 iOS 应用中已开启 Export encryption 时才生效。
    查看英文原文Only if Export encryption is on in the iOS app.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
642/周
连接方式
在你的电脑上运行
最新版本i
1.11.0
发布到注册中心i
2026年11月13日
代码最后更新i
2026年11月13日
作者
PhilipAD
软件包
npm: health-export-mcp
mcpb: …/health-export.mcpb
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 PhilipAD 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于6天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

OSV.dev 中没有 health-export-mcp@1.11.0 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/philipad-health-export-mcp.svg)](https://mcp.popnx.com/en/servers/philipad-health-export-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“诊所与健康”中的其他服务器比较i

  • 星标数多于此分类中其他 1186 个服务器的 95%
  • 发布到注册中心的时间比此分类中其他 1186 个服务器的 84% 更新
  • 基础检查结果等于或优于此分类中其他 1186 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MetricBridge Apple Health 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:PAIRING_SECRET, HEALTH_EXPORT_PASSPHRASE

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于6天前,最新版本(1.11.0)于6天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, MCPB。

有什么可以替代它?

同一分类中有:Medplum MCP, Mirobody, Codescene MCP Server, WHOOP — MissingMCP, Marrow

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Medplum MCP

Securely access and manage FHIR healthcare data stored in Medplum.

作者:medplum广泛使用★ 28044个月前更新

在云端运行✓ 服务方 · medplum.com

Mirobody

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

作者:thetahealth正在增长↓ 725/周★ 15819天前更新

在你的电脑上运行✓ thetahealth.ai

Marrow

Marrow Health: your Apple Health data over MCP, from the free iOS app. Reads, and writes on demand.

作者:skeletonarmytech起步阶段↓ 62/周★ 428天前更新

在你的电脑上运行✓ skeletonarmy.tech
与相似项目对比
本项
MetricBridge Apple Health
Medplum MCPMirobodyCodescene MCP ServerWHOOP — MissingMCPMarrow
运行位置需要安装在电脑上在云端运行,无需安装需要安装在电脑上需要安装在电脑上在云端运行,无需安装需要安装在电脑上
需要密钥是否否否否否
可在 Claude 中按 + 添加否否否否否否
基础检查3/34/43/32/32/43/3
许可证MITApache-2.0Apache-2.0NOASSERTIONMITMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

health-export-mcp

An MCP server for your own Apple Health data. 194 metrics, 21 tools (19 read-only, plus two that log events to their own file) and 23 prompts over local stdio, with zero dependencies, no account and no server of ours in the path. Your agent gets JSON with units, date ranges and coverage, and answers from your numbers.

Docs and per-client config: [healthexport.dev/mcp](https://www.healthexport.dev/mcp/) · agents can run the setup from [SKILL.md](https://www.healthexport.dev/SKILL.md) · privacy: the server reads a local file and makes no network requests, so your health data never reaches us or a cloud AI through it.

Install: one command

claude mcp add health-export -- npx -y health-export-mcp

On a Mac that is the whole install: since 1.7.3 the server finds the MetricBridge app's iCloud Drive folder by itself. On Windows or Linux, or for an export in another folder, add --env "HEALTH_DATA_DIR=/path/to/folder" before the --. Needs Node.js 18 or later. Claude Desktop: open health-export.mcpb instead (no JSON, no Node on your PATH). Cursor, VS Code, opencode, OpenClaw, Hermes: AGENTS.md.

Then ask *"Use health-export: how did my HRV this week compare with last week?"* The agent calls get_trends and gets numbers that carry their own provenance: unit, exact date ranges, whether each window was complete, and how much history the export holds. This is the real output on 1.7.3 (from the built-in --demo dataset, which is synthetic so it can be published; a real export answers with the same fields and without the watermark):

[SYNTHETIC DEMO DATA] {"metric":"heart_rate_variability","unit":"ms","window":7,"recent":50.859,"prior":51.306,

"change":-0.447,"changePercent":-0.871,"direction":"flat","recentRange":{"from":"2026-08-12","to":"2026-08-18"}, "recentDays":7,"priorDays":7,"windowSatisfied":true,"coverage":{"firstDate":"2025-07-15","lastDate":"2026-08-18","days":400}}

No iPhone yet? claude mcp add health-export-demo -- npx -y health-export-mcp --demo serves that watermarked synthetic dataset, so you can try every tool in 30 seconds before installing anything on a phone.

Use your real data (about 5 minutes the first time, needs an iPhone)

  1. Export. Install MetricBridge on the iPhone, allow Health read access and tap Export now. It writes .health-cache.json to iCloud Drive (or a folder, or your LAN). The app has a 7-day free trial, then one purchase ($24.99), no subscription. This server is MIT and free.
  2. Connect. The one command above (Claude Code), the .mcpb (Claude Desktop), or the block for your client in AGENTS.md.
  3. Check it arrived. npx -y health-export-mcp --doctor prints the folder it chose and why, each file's age, and freshness. iCloud can take a few minutes to bring a new export to the Mac.

What is health-export-mcp?

It's an MCP server that turns your Apple Health export into tools your AI agent can query in natural language: HRV, sleep, resting heart rate, steps, workouts, VO₂ max and 180+ more.

  • Who it's for: anyone who wants their AI to reason over their *real* health data instead of a stale CSV.
  • What it isn't: a cloud service. There's no developer server in the path, your data goes only where *you* point it.
  • Setup: point the server at your exported data and add it to your AI client.
  • Where the data comes from: the MetricBridge iOS app (formerly Health Export AI), available on the App Store, writes the export this server reads. The server still reports itself as health-export-ai in serverInfo, and the npm package and repository names are unchanged.

Just exported and the Mac has not seen it yet? iCloud can take a few minutes to sync the

file across, so a check 60 seconds after tapping Run in the app can still show the old

timestamp. get_mcp_status reports lastDataDate and the intraday lastWrite, which is the

quickest way to tell "still syncing" from "never arrived".

Try it with no iPhone needed: npx -y health-export-mcp --demo (or node server.mjs --demo in a clone) serves a deterministic synthetic dataset (400 days, workouts, events, sleep sessions) with every answer watermarked as synthetic. Or run npm test to write a sample cache and exercise every tool.


Connect Apple Health to your AI agent: quickstart

1. Get your Apple Health data flowing

The companion iOS app [MetricBridge](https://www.healthexport.dev) exports your Apple Health data, read-only, automatic, private. For this MCP server, export to a destination it can read:

DestinationNotes
iCloud Drive (default)Your Mac reads the synced folder automatically
Local folderAny folder that syncs to your Mac (Dropbox, Google Drive, OneDrive, …)
LAN (HTTP / WebSocket)Direct push to the server, great over Tailscale. Carries the daily summary and, when you switch on Settings > Local network > Strength log, the strength log (written to health-strength.json)

Using a non-MCP tool (ChatGPT, n8n, Home Assistant)? The app can also POST to a webhook those tools read directly, see Works with.

2. Add the server to your agent

Fastest, one command (Claude Code):

claude mcp add health-export -- npx -y health-export-mcp

Windows, Linux, or an export outside iCloud Drive:

claude mcp add health-export --env "HEALTH_DATA_DIR=/path/to/folder" -- npx -y health-export-mcp

Everything before -- is an option for claude mcp add, everything after it is the command that starts the server. On a Mac the server reads the app's iCloud Drive folder when HEALTH_DATA_DIR is unset (1.7.3+); if you set it to that folder by hand, double-quote it (the folder name contains a space) and use $HOME, because a quoted ~ is not expanded by the shell. Add --scope user to make the server available in every project (the default scope is the current project only). Check it with claude mcp list.

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json), and any client that takes an mcpServers block:

{

"mcpServers": { "health-export": { "command": "npx", "args": ["-y", "health-export-mcp"] } } }

Off a Mac, or for another folder, add "env": { "HEALTH_DATA_DIR": "/path/to/folder" } to the entry (a leading ~ is expanded by the server). npx -y fetches the published package at run time without an install prompt (npm verifies package integrity), so it runs anywhere with no clone or absolute path. The server expands a leading ~ in HEALTH_DATA_DIR itself, so the JSON form can keep it. Prefer to pin a vetted local checkout instead? Use "command": "node", "args": ["REPLACE_WITH_ABSOLUTE_PATH/server.mjs"], get the path with node -e "console.log(process.cwd()+'/server.mjs')" inside the repo.

Or skip JSON entirely, drag `health-export.mcpb` into Claude Desktop → Settings → Extensions.

Auto-configure from a clone:

git clone https://github.com/PhilipAD/health-export-mcp.git

cd health-export-mcp node apply-mcp-config.mjs # detects installed clients and writes the config for you

Cursor / VS Code: node gen-deeplinks.mjs prints one-click install links. opencode / OpenClaw / Hermes: see [AGENTS.md](AGENTS.md) for the exact block, same shape, one per client.

3. Ask your agent

Restart the client and try:

*"Use health-export: what's my average HRV this week vs last week?"*


Works with Claude, Cursor, ChatGPT, OpenClaw, Hermes

Client / AgentIntegrationHow
Claude CodeNative MCPclaude mcp add ... -- npx -y health-export-mcp
Claude DesktopNative MCP.mcpb bundle, or mcpServers block
CursorNative MCPOne-click deeplink, or ~/.cursor/mcp.json
opencodeNative MCPopencode.json mcp block
OpenClawNative MCPAdd the server block to your MCP config
Hermes AgentNative MCPmcp_servers entry in ~/.hermes/config.yaml
VS Code (Copilot / Continue)Native MCPOne-click deeplink
ChatGPT · Gemini · GrokWebhook*Consume the app's webhook export
n8n · Home AssistantWebhook*Trigger automations on the exported JSON

*MCP clients query this server directly over stdio. ChatGPT / Gemini / Grok / n8n / Home Assistant don't speak MCP, they consume the same Apple Health data via the iOS app's token-authenticated webhook export.


The 21 MCP tools

Full reference with request/response examples: [healthexport.dev/mcp](https://www.healthexport.dev/mcp/#tools).

ToolWhat it does
get_mcp_statusHealth check: source, metric/workout counts, which context files exist, latest data date, and a freshness summary. Call first.
get_freshnessHow current the export is: stale judged on the core files (daily cache, sleep sessions) against a stated threshold (26 h by default, HEALTH_STALE_AFTER_HOURS, or maxAgeHours), age_hours, as_of, last_data_date, per-file write times. state: "stale_copy" (with a stale_copy list) when the phone's .health-manifest.json or iCloud says this Mac holds an older copy of a core file than the phone wrote. Same rule as the status --max-age cron gate.
list_metricsEvery available metric with unit, day count, and date range.
get_health_metricsDaily values for a metric (or all) over a date range + an aggregate (avg/sum/min/max/latest). Supports filterDays (restrict to days covered by logged events, with negate). Blood pressure at day granularity also lists the individual readings (health-readings.json).
get_trendsRecent N-day window vs the prior N days: change, % change, direction. Supports excludeTravelDays.
compare_periodsA metric across two arbitrary date periods (A vs B), or around a logged event via anchor: {eventId, days} (the event day excluded from both sides).
get_structured_exportClean JSON for chosen metrics/range, paginated with a cursor.

只显示了开头部分;其余内容请在仓库中阅读