Skip to main content
MCP server CX Codex

polarmcp — Claude Code MCP server: what it does, how to install

MCP server connecting AI agents to Polar AccessLink v4 sleep and workout records. Tokens stay on your machine.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env POLAR_CLIENT_ID=<POLAR_CLIENT_ID> --env POLAR_CLIENT_SECRET=<POLAR_CLIENT_SECRET> --env POLAR_REDIRECT_URI=<POLAR_REDIRECT_URI> --env POLAR_TOKEN_PATH=<POLAR_TOKEN_PATH> --env POLAR_PRIVACY_MODE=<POLAR_PRIVACY_MODE> --transport stdio polarmcp -- npx -y polar-mcp-unofficial
Open on GitHub

What polarmcp does

The connector routes health metrics from Polar AccessLink Dynamic API v4 into agent sessions. It retrieves Nightly Recharge scores and pulse-to-pulse intervals without manual data export. Location coordinates stay redacted by default.

Setup begins by registering an application in Polar AccessLink with redirect URL http://127.0.0.1:3000/callback. Initial configuration runs locally through setup and auth commands in polar-mcp-unofficial. The default transport is stdio. Without valid Polar API credentials the bridge will not start. The API also omits live sensor telemetry.

What it helps with

  • feed Nightly Recharge and sleep records directly to assistant context
  • assess weekly training strain without manually copying Polar Flow logs
  • inspect pulse-to-pulse PPI intervals and continuous pulse readings
  • evaluate recovery status from recorded orthostatic and fitness tests

Example prompts for the agent

  • Check connection with polar_connection_status and summarize today's activity using polar_daily_summary.
  • Run polar_weekly_summary with response_format=json to pinpoint recovery gaps for the past week.
  • Execute prompt polar_training_load_investigation with parameter after=2026-04-01 to review recent exercise sessions.

How to install polarmcp

Platform CLI

claude mcp add --env POLAR_CLIENT_ID=<POLAR_CLIENT_ID> --env POLAR_CLIENT_SECRET=<POLAR_CLIENT_SECRET> --env POLAR_REDIRECT_URI=<POLAR_REDIRECT_URI> --env POLAR_TOKEN_PATH=<POLAR_TOKEN_PATH> --env POLAR_PRIVACY_MODE=<POLAR_PRIVACY_MODE> --transport stdio polarmcp -- npx -y polar-mcp-unofficial

Replace <…> with your own values. 3 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about polarmcp

How do I install polarmcp in Claude Code?

Run claude mcp add polarmcp -e POLAR_CLIENT_SECRET=<POLAR_CLIENT_SECRET> -- npx -y polar-mcp-unofficial in your terminal. You can also pass additional environment variables such as POLAR_CLIENT_ID with individual --env options.

What does polarmcp do?

It provides tools for assistants to query Polar workout history, sleep summaries, heart rate samples, and recovery metrics while keeping access tokens on your local drive.

Does polarmcp stream real-time sensor telemetry?

No, the Polar AccessLink API v4 does not support live data streaming from wearable sensors. The connector works strictly with synced account history.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor