
Health Hub MCP
io.github.naymEvg由 GitHub 帳號 naymEvg 發布v0.1.0更新於 Oct 24, 2026
Self-hosted MCP server for Android Health Connect — 34 metrics, daily rollups, dedup, 5 LLM tools.
概覽
自架設的 MCP 伺服器,接收 Android Health Connect 資料,並透過五個工具向大模型用戶端提供彙總後的健康指標。
- 可以做什麼
- 讀取每日健康彙總,例如步數、距離、卡路里、睡眠、心率與體重
- 依日或依週分桶查詢任一指標的時間序列
- 檢視含深睡、REM、淺睡與清醒階段的詳細睡眠紀錄
- 檢查各類型的同步狀態、涵蓋範圍、缺口與錯誤
- 查看原始酬載中繼資料與 App 診斷資訊,以排查資料匯入問題
- 適用情境
- 適合已經自行架設 Health Hub 執行個體、並以 Android 隨附應用程式上傳資料的人,讓助理根據自己的步數、睡眠、心率等 Health Connect 指標回答問題。
- 執行需求
- 需要在具備 Docker 與 Docker Compose 的主機上自行部署,並擁有含 TLS 的網域,以及執行隨附應用程式或 HC Webhook 用戶端的 Android 14+ 裝置。MCP 端點透過 streamable HTTP 存取,須在 Authorization 標頭帶上 Bearer 權杖;伺服器端還需設定 DEVICE_TOKEN 與 MCP_TOKEN。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Health Hub MCP,將其新增到工作區。
- 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Health Hub MCP Server
Personal MCP server that ingests Health Connect data from an Android companion app and exposes aggregated health metrics to LLM clients over the Model Context Protocol.
The companion app reads raw records from Health Connect and pushes them to this server. The server normalizes, deduplicates, and rolls them up into daily aggregates, then exposes them to LLM clients (Claude, Perplexity, OpenCode) through five MCP tools. Raw events are never handed to the model by default — only rolled-up summaries with explicit caveats so the model cannot silently fabricate missing data.
Requirements
- Android 14+ with life-dashboard-companion-app v1.4.0+
- Any host with Docker and Docker Compose
- Domain with TLS (Caddy handles certificates automatically)
Quick Start
Companion Apps
The server accepts health data from two Android apps via separate endpoints. Both write to the same database and use content-hash deduplication — sending the same data from both apps will not double-count.
Both endpoints require:
The HC Webhook endpoint also accepts 5 additional Health Connect types not present in the companion app: skin_temperature, basal_metabolic_rate, vo2_max, intermenstrual_bleeding, body_water_mass. Unknown type keys are silently tolerated — only types in the server's registry are processed.
Connect Your Phone
See docs/ANDROID.md for step-by-step instructions.
Connect an LLM
Add to Claude Desktop config (claude_desktop_config.json):
For Perplexity, OpenCode, or other MCP clients, use the same URL and token. The Authorization header must include the Bearer prefix — the server rejects requests without it.
MCP Tools
Each tool returns an object (never a bare array) with a caveats: string[] field that warns the model about missing days, overlapping records, or aggregation changes. Responses are capped at 400 objects.
Known Limitations
- No record IDs from Health Connect — deduplication is content-hash based
- Multiple data sources (phone + watch) can cause double-counting for cumulative metrics. The server suppresses overlapping intervals, but this is a heuristic. Check the comparison panel on
/debug. - App sync cursor only moves forward — records added to Health Connect retroactively may not arrive
- Health Connect does not provide data older than 30 days without re-authorization — the server IS your archive. Back up
data/.
License
MIT — see LICENSE.
Companion App
life-dashboard-companion-app v1.4.0
來源:README.md,提交 fec00ab
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 60%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分