Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.
unavailable — the image reference already carries a tag
Docker
docker run -i --rm docker.io/stumason/polar-flow-server:1.6.2
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.2"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env DATABASE_URL=<YOUR_DATABASE_URL> --env POLAR_CLIENT_ID=<YOUR_POLAR_CLIENT_ID> --env POLAR_CLIENT_SECRET=<YOUR_POLAR_CLIENT_SECRET> polar-flow-server -- docker run -i --rm docker.io/stumason/polar-flow-server:1.6.2
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.2"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.2"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"polar-flow-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/stumason/polar-flow-server:1.6.2"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>",
"POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
"POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
DATABASE_URL required secret — PostgreSQL connection string, e.g. postgresql+asyncpg://user:pass@host:5432/polarPOLAR_CLIENT_ID required — Polar AccessLink OAuth client id (register at admin.polaraccesslink.com)POLAR_CLIENT_SECRET required secret — Polar AccessLink OAuth client secretBASE_URL — Public HTTPS base URL of this deployment; enables OAuth sign-in for MCP connectors⭐ 23 stars · 最近更新于 17 天前
polar flow server Self hosted health analytics for Polar devices — own your data, analyze it against your own baselines, and let your AI assistant read it. Full Documentation · MCP Server · Integration Guide · API Reference What This Does Your watch knows more about you than you do — and Polar's API…
Summary from the project README — github.com/StuMason/polar-flow-server
Distributed as Docker, listed under Health & Medical. Review our MCP security guide before granting access to real data.
polar flow server Self hosted health analytics for Polar devices — own your data, analyze it against your own baselines, and let your AI assistant read it. Full Documentation · MCP Server · Integration Guide · API Reference What This Does Your watch knows more about you than you do — and Polar's API
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/StuMason/polar-flow-server. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/polar-flow-server/)
HTML
<a href="https://mcpnav.net/server/polar-flow-server/"><img src="https://mcpnav.net/badge/polar-flow-server.svg" alt="Listed on MCPNav" height="20"></a>