Polar MCP Server

Polar MCP Server

An MCP server for the Polar AccessLink API. Connect your Polar fitness data to Claude AI - access workouts, sleep analysis, recovery metrics, heart rate data, and more.

Category
访问服务器

README

Polar MCP Server

An MCP (Model Context Protocol) server for the Polar AccessLink API. Connect your Polar fitness data to Claude AI - access workouts, sleep analysis, recovery metrics, heart rate data, and more.

Quick Start (Public Instance)

No setup required! Use our hosted instance:

  1. In Claude: Settings → Integrations → Add MCP Server
  2. Enter the URL: https://polar-mcp-server.n-neuhaeusel.workers.dev/mcp
  3. Claude will open an authorization window — log in with your Polar account
  4. Start chatting about your fitness data!

Features

25 Tools Available

Category Tools Description
Exercises get_exercises, get_exercise Training data with HR, speed, zones
Exercise Export get_exercise_fit, get_exercise_tcx, get_exercise_gpx Export in FIT, TCX, GPX formats
Sleep get_sleep, get_sleep_range Sleep stages, score, duration
Recovery get_nightly_recharge, get_nightly_recharge_range ANS charge, HRV, breathing rate
Activity get_daily_activity, get_daily_activity_range, get_activity_samples, get_activity_samples_range Steps, calories, activity zones
Heart Rate get_continuous_heart_rate, get_continuous_heart_rate_range 24/7 heart rate monitoring
Training Load get_cardio_load, get_cardio_load_range, get_cardio_load_history TRIMP, acute/chronic load
SleepWise get_sleepwise_alertness, get_sleepwise_circadian_bedtime Alertness predictions, optimal bedtime
Biosensing get_body_temperature, get_skin_temperature, get_spo2 Temperature, SpO2 data
User get_user_info, get_physical_info Profile, VO2max, resting HR

Supported Devices

  • Polar Pacer / Pacer Pro
  • Polar Vantage V2 / V3
  • Polar Vantage M / M2
  • Polar Grit X / Grit X Pro / Grit X2 Pro
  • Polar Ignite / Ignite 2 / Ignite 3
  • Polar Unite
  • And more...

Example Prompts

Once connected, ask Claude:

  • "Show me my workouts from last week"
  • "How was my sleep last night? Compare it to my weekly average"
  • "Analyze my heart rate variability trends"
  • "What's my current training load status?"
  • "When should I go to bed tonight for optimal recovery?"
  • "Export my last run as a GPX file"
  • "How many steps did I take this month?"

Self-Hosting

Want to run your own instance? Two deployment options available:

Option 1: Cloudflare Workers (Recommended)

Prerequisites

Setup

# Clone and install
git clone https://github.com/NelsonNew/polar-mcp-server.git
cd polar-mcp-server
npm install

# Create KV namespace
npx wrangler kv namespace create OAUTH_KV
# Copy the ID to wrangler.toml

# Set secrets
npx wrangler secret put POLAR_CLIENT_ID
npx wrangler secret put POLAR_CLIENT_SECRET

# Deploy
npm run deploy

After deploying, add the callback URL to your Polar app:

https://YOUR-WORKER.workers.dev/callback

Option 2: Local (Claude Desktop)

# Clone and build
git clone https://github.com/NelsonNew/polar-mcp-server.git
cd polar-mcp-server
npm install && npm run build

# Get access token
export POLAR_CLIENT_ID="your_client_id"
export POLAR_CLIENT_SECRET="your_client_secret"
npm run auth

Add to Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "polar": {
      "command": "node",
      "args": ["/path/to/polar-mcp-server/dist/index.js"],
      "env": {
        "POLAR_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}

API Reference

All tools use the Polar AccessLink API v3.

Tool Endpoint Description
get_user_info /users/{id} User profile
get_physical_info /users/physical-information VO2max, max HR, resting HR
get_exercises /exercises Last 30 days of workouts
get_exercise /exercises/{id} Single workout details
get_exercise_fit/tcx/gpx /exercises/{id}/fit|tcx|gpx Export formats
get_sleep /users/sleep Sleep data
get_nightly_recharge /users/nightly-recharge Recovery metrics
get_daily_activity /users/activities Daily activity
get_continuous_heart_rate /users/continuous-heart-rate 24/7 HR
get_cardio_load /users/cardio-load Training load
get_sleepwise_alertness /users/sleepwise/alertness Alertness predictions
get_body_temperature /users/biosensing/bodytemperature Body temp
get_spo2 /users/biosensing/spo2 Blood oxygen

Troubleshooting

Error Solution
"Polar API error (403)" Re-authorize or check if data sync is complete
"Polar API error (404)" Endpoint not available for your device/subscription
No exercise data Sync your Polar device to Polar Flow app first

Privacy

  • Your Polar credentials are never stored
  • OAuth tokens are managed securely by the Cloudflare Workers OAuth provider
  • Each user gets their own isolated MCP session
  • No fitness data is logged or stored on our servers

Contributing

Contributions welcome! Please open an issue or PR.

License

MIT

Links

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选