P

Polar Health Data (self-hosted)

MCP server · by StuMason

Health & Medical Docker v1.6.2

Self-hosted Polar health analytics with a built-in MCP server: sleep, HRV, workouts, baselines.

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

unavailable — the image reference already carries a tag

Docker
docker run -i --rm docker.io/stumason/polar-flow-server:1.6.2

Setup by client

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 ↗.

Environment variables

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/polar
  • POLAR_CLIENT_ID required — Polar AccessLink OAuth client id (register at admin.polaraccesslink.com)
  • POLAR_CLIENT_SECRET required secret — Polar AccessLink OAuth client secret
  • BASE_URL — Public HTTPS base URL of this deployment; enables OAuth sign-in for MCP connectors

GitHub

⭐ 23 stars · 最近更新于 17 天前

About this server

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.

Frequently asked questions

What does the Polar Health Data (self-hosted) MCP server do?

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

How do I install Polar Health Data (self-hosted)?

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.

Is Polar Health Data (self-hosted) free to use?

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.

Which clients support Polar Health Data (self-hosted)?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/polar-flow-server.svg)](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>