Polar MCP
Polar MCP
이 저장소는 ADR 0001에 정의된 경계를 구현합니다: 재사용 가능한 Python Polar 코어와 로컬 MCP 및 Claude Agent SDK용 경량 읽기 전용 어댑터로 구성됩니다.
이 구현은 의도적으로 v4 우선입니다. 제공하는 기능은 다음과 같습니다:
자동 AccessLink v4 토큰 갱신;
분리된 v4 및 보완 v3 클라이언트;
제한된, 종료일 미포함 날짜 범위 및 자동 v4 요청 청킹;
API 출처와 단위를 포함한 정규화된 응답 봉투;
재귀적 자격 증명, 사용자/기기 식별자 및 정밀 위치 정보 삭제;
제한된 중첩 시계열 및 최상위 결과;
건강 데이터를 절대 영구 저장하지 않는 인메모리 TTL 캐시;
비식별화된 데이터만 읽을 수 있는 MCP 및 Agent SDK 도구;
소유자 전용 로컬 토큰 파일을 사용하는 별도의 인증 CLI.
설치
Python 3.11 이상이 필요합니다.
python -m venv .venv
source .venv/bin/activate
pip install -e '.[mcp]'Polar AccessLink에 애플리케이션을 등록한 다음 서버 측 자격 증명을 설정하세요. 모델이 읽을 수 있는 MCP 구성 파일에 이러한 값을 넣지 마세요.
export POLAR_CLIENT_ID='...'
export POLAR_CLIENT_SECRET='...'콜백이 검증하는 state 값으로 인증 URL을 생성하세요:
polar-auth authorization-url \
--redirect-uri 'http://127.0.0.1:8787/callback' \
--state "$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"액세스를 승인한 후 반환된 코드를 교환하세요. --code를 생략하면 코드를 에코하거나 셸 기록에 남기지 않고 읽습니다.
polar-auth exchange --redirect-uri 'http://127.0.0.1:8787/callback'
polar-auth status토큰은 기본적으로 플랫폼 구성 디렉터리를 사용하며, 해당 파일을 소유자 외의 다른 사람이 읽을 수 있으면 거부됩니다. 위치는 POLAR_TOKEN_FILE로 재정의할 수 있습니다.
Related MCP server: health-mcp
로컬 MCP 실행
polar-mcp서버는 stdio를 사용하며 네트워크 리스너를 열지 않습니다. 다음만 노출합니다:
polar_get_activitypolar_get_sleeppolar_get_recoverypolar_get_training_sessionspolar_get_heart_rate
모든 end_date 값은 배타적입니다. 도구 스키마에는 의도적으로 원시 데이터 또는 위치 플래그가 없습니다. 에이전트 외부의 코드는 명시적 DisclosureGrant와 함께 PolarService.query를 사용할 수 있지만, 해당 승인은 별도로 기록된 사용자 확인을 요구하며 응답은 크기 제한이 유지됩니다.
테스트
테스트는 표준 라이브러리 테스트 러너와 모의 HTTP 전송만 사용합니다:
PYTHONPATH=src python -m unittest discover -s tests -v어떤 테스트도 Polar 자격 증명을 요구하지 않으며 네트워크를 통해 건강 데이터를 전송하지 않습니다.
현재 검증 상태
이 코드는 견고한 아키텍처를 구현하지만, ADR 0001을 수락하는 데 필요한 실기기 개념 증명을 주장하지 않습니다. 문서화된 라이브 Polar Pacer 검사가 완료될 때까지 ADR은 Proposed 상태로 유지됩니다.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn 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.253
- AlicenseNot gradedqualityCmaintenanceExposes personal Garmin wellness data through MCP tools for accessing summary, sleep, HRV, heart rate, stress, body battery, and historical data.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Garmin Connect that enables users to access and manage their personal health and fitness data, including daily summaries, heart rate, sleep, HRV, stress, body composition, activities, and training readiness, with secure per-user authentication.Apache 2.0
- FlicenseAqualityCmaintenanceProvides read-only access to your Garmin Connect health data, including sleep, HRV, body battery, stress, training readiness, and activities, through an MCP server.14
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SuperShinyEyes/polar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server