streamable-httpupdated 28d ago
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.
What can you do with Health Hub MCP?
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.
Android 14+ ββPOST /ingest/healthβββββββΆ ββββββββββββββββββββ
(companion app) β β
Android 14+ ββPOST /ingest/hc-webhookβββΆ β Health Hub βββMCPβββΆ LLM
(HC Webhook client) β SQLite β
browser ββGET /debugβββΆ ββββββββββββββββββββ
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
cp .env.example .env
# Edit .env: set DEVICE_TOKEN and MCP_TOKEN (run: openssl rand -hex 32)
docker compose up -d --build
curl -s http://localhost:8000/health
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.
| App | Endpoint | Format | Best for |
|---|---|---|---|
| life-dashboard-companion-app v1.4.0 | POST /ingest/health |
source: "health_connect" required |
Incremental sync, 200 records per type |
| HC Webhook | POST /ingest/hc-webhook |
source optional, rmssd_millis HRV, extra types |
Full sync, all types in one POST |
Both endpoints require:
Authorization: Bearer <DEVICE_TOKEN>
Content-Type: application/json; charset=utf-8
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):
{
"mcpServers": {
"health-hub": {
"url": "https://your-domain.example.com/mcp",
"headers": {"Authorization": "Bearer <YOUR_MCP_TOKEN>"}
}
}
}
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
| Tool | Description |
|---|---|
daily_summary |
Daily health rollups: steps, distance, calories, sleep, HR, weight |
metric_series |
Time series for any metric with day/week bucketing |
sleep_detail |
Detailed sleep sessions with stages (deep, REM, light, awake) |
get_sync_health |
Per-type sync status: last event, coverage, gaps, errors |
inspect_last_payload |
Raw payload metadata and app diagnostics |
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
Install
Add Health Hub MCP to your client. Pick the one you use.
claude mcp add --transport http health-hub-mcp https://{host}/mcp-healthcodex mcp add health-hub-mcp --url https://{host}/mcp-health{
"mcpServers": {
"health-hub-mcp": {
"url": "https://{host}/mcp-health"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"health-hub-mcp": {
"type": "http",
"url": "https://{host}/mcp-health"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"health-hub-mcp": {
"url": "https://{host}/mcp-health"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"health-hub-mcp": {
"serverUrl": "https://{host}/mcp-health"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance19/25
- Trust6/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 21 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.1.0Latest | Aug 11, 2026 |