android-health-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
android-health-mcp
Let Claude (or any MCP client) query your phone's health data live: Galaxy Watch / Samsung Health, Google Fit, Fitbit, and anything else that writes to Health Connect.
Galaxy Watch ─► Samsung Health ─┐
Google Fit / Fitbit / … ────────┴─► Health Connect (on the phone)
▲ live queries + de-duplicating aggregates
│
apps/android (foreground service)
│ outbound WebSocket, Bearer DEVICE_TOKEN
▼
Claude ──MCP + OAuth 2.1──► services/mcp-relay (Moleculer + Express, stores no health data)Phone: does all the querying and processing. It sends its tool list when it connects, so tools are defined only in Kotlin.
Relay: only a communication layer. It handles MCP and OAuth for Claude and forwards each tool call to the phone over the WebSocket. If the phone is offline, tools return a clear "phone offline" error.
Why a relay at all: Health Connect has no cloud API, and phones can't accept inbound connections. A small public relay solves both.
Google Fit: its APIs are deprecated. Its data reaches this app through Fit's own Health Connect sync.
Layout
Path | What |
| Kotlin/Compose app: Health Connect permissions, the relay foreground service, and the health tools. See its README. |
| The reusable transport: the protocol schemas, |
| The self-hosted, single-user relay built on relay-core. Moleculer services: |
| The WebSocket contract between the phone and the relay. Change both sides together. |
Related MCP server: Health Hub MCP Server
Run the relay
pnpm install
cd services/mcp-relay
cp .env.example .env # set DEVICE_TOKEN (openssl rand -hex 32), ADMIN_PASSWORD, PUBLIC_URL
set -a; source .env; set +a
pnpm dev # or: pnpm build && pnpm start
pnpm testDocker
docker build -f services/mcp-relay/Dockerfile -t mcp-relay . # from the repo root
docker run -d --name mcp-relay -p 3000:3000 \
-e PUBLIC_URL=https://health.example.com \
-e DEVICE_TOKEN=... -e ADMIN_PASSWORD=... \
-v mcp-relay-data:/data mcp-relayThe image runs as a non-root user, keeps its state in the /data volume, and has a health check on /healthz.
Deploy it somewhere both the phone and your AI client can reach over HTTPS, such as a small VPS behind Caddy, Fly.io, or tailscale funnel. Set PUBLIC_URL to that origin, and TRUST_PROXY=1 when behind a reverse proxy. DATA_DIR holds only these files: the cached tool list, the OAuth clients and refresh tokens, and the JWT signing key.
Connect an AI client
The relay is an OAuth 2.1 authorization server. It supports protected-resource metadata, dynamic client registration and PKCE, which is what Claude and other MCP clients expect. You only need the URL:
claude.ai / Claude Desktop: Settings → Connectors → Add custom connector →
https://<your-host>/mcp.Claude Code:
claude mcp add --transport http android-health https://<your-host>/mcp, then run/mcpto sign in.
A consent page opens and shows the exact address it will send access to. Enter ADMIN_PASSWORD, then click Allow. Access tokens last 1 hour. Refresh tokens last 60 days and are rotated on every use.
Other ways to sign in:
Other clients: registration only accepts redirects to
OAUTH_REDIRECT_HOSTS(defaultclaude.ai,claude.com) and loopback addresses. Add hosts such aschatgpt.com, or custom schemes throughOAUTH_REDIRECT_SCHEMES, to allow other clients.Scripts: set
MCP_TOKENand sendAuthorization: Bearer $MCP_TOKEN.
To sign every client out, change ADMIN_PASSWORD and restart.
Tools
The phone defines the tools, and tools/list passes them through. The relay adds get_phone_status (connected, last seen, device, timezone).
The phone provides overview, daily summaries, sleep, exercise, heart rate and HRV, vitals, body measurements, nutrition, and raw records. All dates are local calendar dates on the phone. Totals use Health Connect's aggregate API, which removes duplicates between apps (for example Samsung Health and Google Fit both counting steps) according to your app priority.
License
Part | License |
| |
Everything else ( |
Apache-2.0 for the protocol and transport: anyone can build a compatible phone app or relay.
AGPL for the app and self-hosted server: anyone can run, audit and modify them. Anyone who offers a modified version as a network service must publish their changes.
Copyright © 2026 Stalin Pereira.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Apple Health MCP for Claude and ChatGPT, works outside the US. iPhone app, no local server.
Read Android Health Connect users, daily summaries and records synced to your backend.
Connect your synced Apple Health data to compatible AI assistants through OAuth MCP. Ask about sleep, workouts, activity, heart rate and other Health metrics; explore summaries or selected samples, and check when your iPhone last synced. Send product feedback from your assistant through the MCP. Try: “How did I sleep this week?” “Summarize my recent workouts.” “When did my health data last sync?” Requires A Good Sign for iPhone, your chosen Health permissions, a completed sync and an active subscription for health-data answers. AI-client support and setup vary. Setup: https://agoodsign.app/setup MCP endpoint: https://api.healthgateway.app/mcp Privacy: https://api.healthgateway.app/privacy
Hosted Apple Health MCP: daily brief, records, sleep, HRV in ChatGPT, Claude, Grok. Free, no export.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenancePrivate, read-only health data bridge that reads from Android Health Connect and exposes heart rate, steps, sleep, and other health metrics to ChatGPT via MCP tools.-
- AlicenseNot gradedqualityDmaintenanceAggregates Android Health Connect data into daily summaries, time-series metrics, sleep details, and sync status, exposing them to LLM clients via MCP with caveats to prevent data fabrication.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables ChatGPT and Claude to access Android Health Connect records through nine read-only MCP tools for overviews, daily summaries, sleep, workouts, intraday series, trends, correlation, search, and fetch.MIT
- AlicenseNot gradedqualityCmaintenanceA remote MCP server that gives MCP clients read-only, OAuth-authenticated access to Google Health API data such as activity, sleep, heart, body, nutrition and ECG records. It exposes tools for profiles, paired devices, data points, daily summaries and time-window rollups, and is deployed on Cloudflare Workers.1MIT