PluginBench
MCP Server
Active

Polar Health Data (self-hosted) MCP Server

io.github.StuMason/polar-flow-server

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

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

How to install Polar Health Data (self-hosted)

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • 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

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "polar-flow-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stumason/polar-flow-server:1.5.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "BASE_URL": "<YOUR_BASE_URL>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "polar-flow-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stumason/polar-flow-server:1.5.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "BASE_URL": "<YOUR_BASE_URL>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "polar-flow-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stumason/polar-flow-server:1.5.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "BASE_URL": "<YOUR_BASE_URL>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "polar-flow-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/stumason/polar-flow-server:1.5.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "BASE_URL": "<YOUR_BASE_URL>"
      }
    }
  }
}
Claude Code
claude mcp add polar-flow-server --env DATABASE_URL=<YOUR_DATABASE_URL> --env POLAR_CLIENT_ID=<YOUR_POLAR_CLIENT_ID> --env POLAR_CLIENT_SECRET=<YOUR_POLAR_CLIENT_SECRET> --env BASE_URL=<YOUR_BASE_URL> -- docker run -i --rm docker.io/stumason/polar-flow-server:1.5.0

Related MCP servers

42 token-optimized MCP tools to manage, diagnose, and deploy Coolify infrastructure via AI assistants.

467
TypeScript
MIT
View repository →