Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.
Connect Runs on your machine
claude mcp add polar-flow-server -e DATABASE_URL=<DATABASE_URL> -e POLAR_CLIENT_ID=<POLAR_CLIENT_ID> -e POLAR_CLIENT_SECRET=<POLAR_CLIENT_SECRET> -e BASE_URL=<BASE_URL> -- docker run -i --rm docker.io/stumason/polar-flow-server:1.6.3
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.3"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"POLAR_CLIENT_ID": "<POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<POLAR_CLIENT_SECRET>",
"BASE_URL": "<BASE_URL>"
}
}
}
}
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.3"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"POLAR_CLIENT_ID": "<POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<POLAR_CLIENT_SECRET>",
"BASE_URL": "<BASE_URL>"
}
}
}
}
{
"servers": {
"polar-flow-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.3"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"POLAR_CLIENT_ID": "<POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<POLAR_CLIENT_SECRET>",
"BASE_URL": "<BASE_URL>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DATABASE_URLRequired, secret | PostgreSQL connection string, e.g. postgresql+asyncpg://user:pass@host:5432/polar |
POLAR_CLIENT_IDRequired | Polar AccessLink OAuth client id (register at admin.polaraccesslink.com) |
POLAR_CLIENT_SECRETRequired, secret | Polar AccessLink OAuth client secret |
BASE_URLOptional | Public HTTPS base URL of this deployment; enables OAuth sign-in for MCP connectors |
Details
| Package | docker.io/stumason/polar-flow-server:1.6.3 (OCI, streamable-http) |
| First published | 12 Nov 2026 |
| Last updated | 12 Nov 2026 |
| Registry name | io.github.StuMason/polar-flow-server |
More data and analytics servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
