Skip to content
Grok

Polar Health Data (self-hosted) for Grok

io.github.stumason/polar-flow-server

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

client:Grok transport:stdio runtime:oci

Install Polar Health Data (self-hosted) in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "polar-flow-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stumason/polar-flow-server:1.5.1"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "POLAR_CLIENT_ID": "<POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<POLAR_CLIENT_SECRET>",
        "BASE_URL": "<BASE_URL>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Polar Health Data (self-hosted) in other clients