Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Polar Health Data (self-hosted)

local MCP server

Polar 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

ServerStarsTypeAPI keyRuntime
Polar Health Data (self-hosted)23LocalYesoci
Apple Health569LocalYesnpm
whoop158LocalYesnpm
google-health-mcp63LocalYesnpm
HomeLab Monitor208LocalYesoci

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
  1. Apple Healthio.github.neiltron/apple-health-mcp569
  2. whoopio.github.shashankswe2020-ux/whoop158
  3. google-health-mcpio.github.davidmosiah/google-health-mcp63
  4. HomeLab Monitorio.github.SikamikanikoBG/homelab-monitor208
  5. Withings Health Dataio.github.akutishevsky/withings42
  6. whoop-mcpio.github.davidmosiah/whoop-mcp13
  7. PostHog MCP Serverio.github.PostHog/mcp40K
  8. DBHubio.github.bytebase/dbhub3,574