PluginBench
MCP Server
Active
MIT

io.github.davidmosiah/polarmcp MCP Server

io.github.davidmosiah/polarmcp

What is the io.github.davidmosiah/polarmcp MCP server?

Privacy-first unofficial Polar AccessLink v4 MCP server for AI health, sleep and training agents.

How to install io.github.davidmosiah/polarmcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • POLAR_CLIENT_ID

    Polar OAuth client ID. Optional when configured with polar-mcp-server setup.

  • POLAR_CLIENT_SECRET
    secret

    Polar OAuth client secret. Prefer polar-mcp-server setup so this secret is stored in ~/.polar-mcp/config.json instead of MCP client config.

  • POLAR_REDIRECT_URI

    Redirect URI configured in the Polar AccessLink admin. Optional when configured with polar-mcp-server setup.

  • POLAR_TOKEN_PATH

    Optional local path for OAuth tokens. Defaults to ~/.polar-mcp/tokens.json.

  • POLAR_PRIVACY_MODE

    Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Polar AccessLink payloads for supported endpoints.

  • POLAR_CACHE

    Optional SQLite cache toggle. Set to true or sqlite to enable.

  • POLAR_CACHE_PATH

    Optional local SQLite cache path. Defaults to ~/.polar-mcp/cache.sqlite.

  • POLAR_NO_CACHE

    Set to true to bypass the in-memory HTTP response cache (60s TTL for GET only). POST/PUT/DELETE and 4xx/5xx responses are never cached regardless.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "polarmcp": {
      "command": "npx",
      "args": [
        "-y",
        "polar-mcp-unofficial"
      ],
      "env": {
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "POLAR_REDIRECT_URI": "<YOUR_POLAR_REDIRECT_URI>",
        "POLAR_TOKEN_PATH": "<YOUR_POLAR_TOKEN_PATH>",
        "POLAR_PRIVACY_MODE": "<YOUR_POLAR_PRIVACY_MODE>",
        "POLAR_CACHE": "<YOUR_POLAR_CACHE>",
        "POLAR_CACHE_PATH": "<YOUR_POLAR_CACHE_PATH>",
        "POLAR_NO_CACHE": "<YOUR_POLAR_NO_CACHE>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "polarmcp": {
      "command": "npx",
      "args": [
        "-y",
        "polar-mcp-unofficial"
      ],
      "env": {
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "POLAR_REDIRECT_URI": "<YOUR_POLAR_REDIRECT_URI>",
        "POLAR_TOKEN_PATH": "<YOUR_POLAR_TOKEN_PATH>",
        "POLAR_PRIVACY_MODE": "<YOUR_POLAR_PRIVACY_MODE>",
        "POLAR_CACHE": "<YOUR_POLAR_CACHE>",
        "POLAR_CACHE_PATH": "<YOUR_POLAR_CACHE_PATH>",
        "POLAR_NO_CACHE": "<YOUR_POLAR_NO_CACHE>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "polarmcp": {
      "command": "npx",
      "args": [
        "-y",
        "polar-mcp-unofficial"
      ],
      "env": {
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "POLAR_REDIRECT_URI": "<YOUR_POLAR_REDIRECT_URI>",
        "POLAR_TOKEN_PATH": "<YOUR_POLAR_TOKEN_PATH>",
        "POLAR_PRIVACY_MODE": "<YOUR_POLAR_PRIVACY_MODE>",
        "POLAR_CACHE": "<YOUR_POLAR_CACHE>",
        "POLAR_CACHE_PATH": "<YOUR_POLAR_CACHE_PATH>",
        "POLAR_NO_CACHE": "<YOUR_POLAR_NO_CACHE>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "polarmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polar-mcp-unofficial"
      ],
      "env": {
        "POLAR_CLIENT_ID": "<YOUR_POLAR_CLIENT_ID>",
        "POLAR_CLIENT_SECRET": "<YOUR_POLAR_CLIENT_SECRET>",
        "POLAR_REDIRECT_URI": "<YOUR_POLAR_REDIRECT_URI>",
        "POLAR_TOKEN_PATH": "<YOUR_POLAR_TOKEN_PATH>",
        "POLAR_PRIVACY_MODE": "<YOUR_POLAR_PRIVACY_MODE>",
        "POLAR_CACHE": "<YOUR_POLAR_CACHE>",
        "POLAR_CACHE_PATH": "<YOUR_POLAR_CACHE_PATH>",
        "POLAR_NO_CACHE": "<YOUR_POLAR_NO_CACHE>"
      }
    }
  }
}
Claude Code
claude mcp add polarmcp --env POLAR_CLIENT_ID=<YOUR_POLAR_CLIENT_ID> --env POLAR_CLIENT_SECRET=<YOUR_POLAR_CLIENT_SECRET> --env POLAR_REDIRECT_URI=<YOUR_POLAR_REDIRECT_URI> --env POLAR_TOKEN_PATH=<YOUR_POLAR_TOKEN_PATH> --env POLAR_PRIVACY_MODE=<YOUR_POLAR_PRIVACY_MODE> --env POLAR_CACHE=<YOUR_POLAR_CACHE> --env POLAR_CACHE_PATH=<YOUR_POLAR_CACHE_PATH> --env POLAR_NO_CACHE=<YOUR_POLAR_NO_CACHE> -- npx -y polar-mcp-unofficial

Related MCP servers

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

18
TypeScript
MIT
View repository →

Local-first nutrition MCP for AI agents: food, barcode, photo, intake, hydration, goals.

7
TypeScript
MIT
View repository →

Privacy-first, unofficial WHOOP MCP server for AI health, sleep, recovery, and performance agents.

5
TypeScript
MIT
View repository →

Privacy-first unofficial Garmin Connect MCP for AI health, sleep, activity & recovery agents.

4
TypeScript
MIT
View repository →

Unofficial Eight Sleep MCP server: read sleep trends, temperature, alarms; gated pod control.

3
TypeScript
MIT
View repository →

Unofficial local-first MCP server for Samsung Health personal-data CSV/ZIP exports.

3
TypeScript
MIT
View repository →