polarmcp
MCP server by davidmosiah Community
Polar MCP gives AI assistants access to Polar training, sleep, Nightly Recharge and PPI data through the official Polar AccessLink v4 API. It runs locally and keeps OAuth tokens on the user's machine. It is for people who use MCP-compatible agents to review training load and recovery.
Install polarmcp
Built from the published package, never by AI.
claude mcp add polarmcp -- npx -y polar-mcp-unofficialRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"polarmcp": {
"args": [
"-y",
"polar-mcp-unofficial"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"polarmcp": {
"args": [
"-y",
"polar-mcp-unofficial"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"polarmcp": {
"args": [
"-y",
"polar-mcp-unofficial"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add polarmcp -- npx -y polar-mcp-unofficial{
"mcpServers": {
"polarmcp": {
"args": [
"-y",
"polar-mcp-unofficial"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add polarmcp npx -y polar-mcp-unofficialGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the polarmcp block.
About
Polar MCP is a local-first MCP server that connects AI agents to Polar training, sleep, Nightly Recharge, PPI and continuous-sample data through the official Polar AccessLink Dynamic API v4. It handles the OAuth flow on the user's machine, normalizes responses across v4 endpoints, and redacts GPS coordinates by default. OAuth tokens are stored in a local file with restricted permissions and are never returned by tools.
The server runs over stdio by default, with an optional loopback-only Streamable HTTP mode. It is built for people who use Claude, Cursor, Hermes, OpenClaw or other MCP-compatible agents to think about training load, recovery and endurance. It is an unofficial project, not affiliated with Polar Electro Oy, and it does not give medical advice.
Written from the project's README and checked against it.
Tools it gives your assistant
polar_quickstartWalks through a personalized three-step setup that adapts to what is already configured.polar_connection_statusChecks local setup, scopes and readiness before calling Polar.polar_daily_summaryReturns a sleep, activity, Nightly Recharge and training brief for today.polar_weekly_summaryReturns a weekly scorecard, comparison with the prior week and a next-week plan.polar_wellness_contextReturns Nightly Recharge, sleep and training load in the shared wellness_context shape.polar_heart_seriesReturns bounded heart rate series from continuous samples for date ranges.polar_list_sleepsLists sleep data, hydrating available dates with v4 sleep features by default.polar_list_nightly_rechargeLists Nightly Recharge recovery data from Polar.polar_list_training_sessionsLists training sessions from Polar for a date range.polar_get_routeReturns a route with GPS coordinates redacted unless raw mode is set.
What you need
- A Polar AccessLink client with redirect URI http://127.0.0.1:3000/callback
- A Polar account
- Node.js 20+
| Setting | Needed | What it is |
|---|---|---|
POLAR_Environment variable | Optional | Polar OAuth client ID. Optional when configured with polar-mcp-server setup. |
POLAR_Environment variable, secret | Optional | 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_Environment variable | Optional | Redirect URI configured in the Polar AccessLink admin. Optional when configured with polar-mcp-server setup. |
POLAR_Environment variable | Optional | Optional local path for OAuth tokens. Defaults to ~/.polar-mcp/tokens.json. |
POLAR_Environment variable | Optional | Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Polar AccessLink payloads for supported endpoints. |
POLAR_Environment variable | Optional | Optional SQLite cache toggle. Set to true or sqlite to enable. |
POLAR_Environment variable | Optional | Optional local SQLite cache path. Defaults to ~/.polar-mcp/cache.sqlite. |
POLAR_Environment variable | Optional | 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. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Use polar_connection_status to check setup, then run polar_daily_summary.
- Give me a 5-line training brief for today.
- Walk me through my recent training sessions and Nightly Recharge.
Good to know
- Unofficial project, not affiliated with or endorsed by Polar Electro Oy.
- Not medical advice. It exposes user-authorized data, not diagnosis or training prescriptions.
- Live device telemetry is not exposed by Polar AccessLink.
- Some data types require supported Polar devices.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to polarmcp
All alternatives →Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.
RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.
ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.
Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.
ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.
Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.
Compare with Mirobody, Ruview or tooluniverse
polarmcp: common questions
Where are my Polar tokens stored?
OAuth tokens are stored in ~/.polar-mcp/tokens.json with 0600 permissions. The source says tools never return them and the server never prints them.
Is this an official Polar product?
No. The source describes it as an unofficial project that is not affiliated with, endorsed by or supported by Polar Electro Oy.
Which Polar data can it read?
It uses the official Polar AccessLink Dynamic API v4 for activity, sleep, Nightly Recharge, training sessions, PPI, continuous samples, temperature, tests and more.
How do I install polarmcp?
In Claude Code run claude mcp add polarmcp -- npx -y polar-mcp-unofficial. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is polarmcp the official server?
polarmcp is a community project by davidmosiah, not verified by a company domain.
Is polarmcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is polarmcp safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to polarmcp?
Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.
Does polarmcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
