Polar Health Data (self-hosted)
local MCP serverPolar Health Data (self-hosted) is a local MCP server: Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines. Install it from oci as docker.io/stumason/polar-flow-server:1.5.1.
Installation
Terminal
claude mcp add polar-flow-server -e DATABASE_URL=... -e POLAR_CLIENT_ID=... -e POLAR_CLIENT_SECRET=... -e BASE_URL=... -- docker run -i --rm docker.io/stumason/polar-flow-server:1.5.1
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.5.1"
],
"env": {
"DATABASE_URL": "...",
"POLAR_CLIENT_ID": "...",
"POLAR_CLIENT_SECRET": "...",
"BASE_URL": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Docker.
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
DATABASE_URL,POLAR_CLIENT_ID,POLAR_CLIENT_SECRET,BASE_URL
Summary
Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.
Polar Health Data (self-hosted) vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| Polar Health Data (self-hosted) | 23 | Local | Yes | oci |
| Apple Health | 569 | Local | Yes | npm |
| whoop | 158 | Local | Yes | npm |
| google-health-mcp | 63 | Local | Yes | npm |
| HomeLab Monitor | 208 | Local | Yes | oci |
Questions
It reads 4 environment variables: DATABASE_URL, POLAR_CLIENT_ID, POLAR_CLIENT_SECRET, BASE_URL. Set them in your MCP config before starting the server.
Docker, plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
Polar Health Data (self-hosted) is a local MCP server distributed as the oci package docker.io/stumason/polar-flow-server:1.5.1.
Run: claude mcp add polar-flow-server -e DATABASE_URL=... -e POLAR_CLIENT_ID=... -e POLAR_CLIENT_SECRET=... -e BASE_URL=... -- docker run -i --rm docker.io/stumason/polar-flow-server:1.5.1
Run: codex mcp add polar-flow-server --env DATABASE_URL=... --env POLAR_CLIENT_ID=... --env POLAR_CLIENT_SECRET=... --env BASE_URL=... -- docker run -i --rm docker.io/stumason/polar-flow-server:1.5.1
Similar MCP servers
NameStars
- Apple Healthio.github.neiltron/apple-health-mcp569
- whoopio.github.shashankswe2020-ux/whoop158
- google-health-mcpio.github.davidmosiah/google-health-mcp63
- HomeLab Monitorio.github.SikamikanikoBG/homelab-monitor208
- Withings Health Dataio.github.akutishevsky/withings42
- whoop-mcpio.github.davidmosiah/whoop-mcp13
- PostHog MCP Serverio.github.PostHog/mcp40K
- DBHubio.github.bytebase/dbhub3,574