polarmcp

v0.3.6
io.github.davidmosiah/polarmcp Checked 51 minutes ago Published 4 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

polar_data_inventory Polar Data Inventory

Inventory supported Polar data domains, auth scope requirements, privacy boundary and recommended first calls. Does not call Polar APIs or expose user data.

ParameterTypeDescription
response_formatstring

polar_agent_manifest Polar Agent Manifest

Machine-readable install, runtime and client guidance for AI agents. Does not call Polar or expose secrets.

ParameterTypeDescription
clientstring
response_formatstring

polar_capabilities Polar MCP Capabilities

Explain supported Polar data, privacy boundaries, recommended agent workflow and project links.

ParameterTypeDescription
response_formatstring

polar_quickstart Polar Quickstart

Personalized 3-step setup walkthrough for the human user. Adapts to current state (env vars set? token present? what's next?). Call this first when the user asks 'how do I connect Polar?'

ParameterTypeDescription
response_formatstring

polar_demo Polar Demo

Returns realistic example payloads of polar_daily_summary, polar_wellness_context, and polar_list_nightly_recharge so agents see the contract before calling real Polar APIs.

ParameterTypeDescription
response_formatstring

polar_get_auth_url Get Polar OAuth URL

Generate a Polar OAuth authorization URL. Use this first when no local token exists.

ParameterTypeDescription
response_formatstring
scopesarrayOptional scope override. Defaults to read-only Polar scopes used by this server.
statestringOptional OAuth state value generated by the caller.

polar_exchange_code Exchange Polar OAuth Code

Exchange a Polar OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned.

ParameterTypeDescription
code *stringOAuth authorization code, or a full redirect URL containing ?code=...
response_formatstring

polar_get_account_data Polar Account Data

Read Polar user account fields exposed by AccessLink. Requires profile:read.

ParameterTypeDescription
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_activity Polar Daily Activity

List Polar daily activity records. Requires activity:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_calendar Polar Calendar

List Polar calendar entries in a date range. Requires calendar:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_continuous_samples Polar Continuous Samples

List continuous sample records for a date range. Requires continuous_samples:read. Not medical advice.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_nightly_recharge Polar Nightly Recharge

List Nightly Recharge results in a date range. Requires nightly_recharge:read. Not medical advice.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_ppi_samples Polar PPI Samples

List pulse-to-pulse interval samples in a date range. Requires ppi_data:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_skin_contacts Polar Skin Contacts

List skin contact periods in a date range. Requires skin_contact:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_sleeps Polar Sleeps

List Polar sleep records in a date range. Requires sleep:read. Not medical advice.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_sleep_wake_vectors Polar Sleep Wake Vectors

List sleep/wake vector records in a date range. Requires sleep:read. Not medical advice.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_sports Polar Sports

List sports available in the Polar ecosystem. Requires sports:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_sport_profile_catalog Polar Sport Profile Catalog

Load Polar sport profile catalog. Requires sports:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_sport_profiles Polar Sport Profiles

List the user's Polar sport profiles. Requires sports:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_subscriptions Polar Subscriptions

List user subscriptions and entitlements. Requires user_subscription:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_temperature_measurements Polar Temperature Measurements

List temperature measurements in a date range. Requires temperature_measurement:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_tests Polar Test Results

List Polar fitness/orthostatic/running test results in a date range. Requires tests:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_training_sessions Polar Training Sessions

List Polar training sessions in a date range. Requires training_sessions:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_training_targets Polar Training Targets

List calendar training targets in a date range. Requires training_targets:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_training_target_favorites Polar Training Target Favorites

List user training target favorites. Requires training_targets:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_list_user_devices Polar User Devices

List devices registered to the Polar user. Requires devices:read.

ParameterTypeDescription
afterstringOnly return Polar records after this time. Converted to Polar's inclusive from query parameter.
all_pagesbooleanFetch multiple pages up to max_pages.
beforestringOnly return Polar records before this time. Converted to Polar's exclusive to query parameter.
limitintegerLocal page-size hint used for pagination safety.
max_pagesintegerMaximum pages to fetch when all_pages is true.
pageintegerPolar page number.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_get_route Polar Route

Load a Polar route by route id. Routes are GPS-sensitive; default privacy modes redact coordinates. Requires routes:read.

ParameterTypeDescription
route_id *stringPolar route id returned by a calendar or training-session record.
privacy_modestringOptional per-call privacy override. Defaults to POLAR_PRIVACY_MODE or structured. raw returns upstream Polar JSON. summary minimizes sensitive health and profile details.
response_formatstring

polar_connection_status Polar Connection Status

Check local Polar config, token file, Node version, privacy mode, cache readiness and optional MCP client readiness without calling Polar or exposing secrets.

ParameterTypeDescription
clientstring
response_formatstring

polar_cache_status Polar Cache Status

Show optional local SQLite cache status. Enable with POLAR_CACHE=sqlite or POLAR_CACHE=true.

ParameterTypeDescription
response_formatstring

polar_privacy_audit Polar Privacy Audit

Return local privacy, cache, token-path and env-presence posture without revealing secret values.

ParameterTypeDescription
response_formatstring

polar_revoke_access Revoke Polar OAuth Access

Delete the local Polar token file. Use only when the user explicitly wants to disconnect this MCP; revoke the remote grant from Polar if needed.

ParameterTypeDescription
response_formatstring

polar_daily_summary Polar Daily Training Summary

Build a practical daily summary from Polar sleep, activity, Nightly Recharge and training data when available. Read-only and non-medical.

ParameterTypeDescription
daysintegerLookback window for recent training context.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

polar_weekly_summary Polar Weekly Training Review

Build a weekly Polar scorecard with sleep, activity, Nightly Recharge, training load context, bottlenecks and actions. Read-only and non-medical.

ParameterTypeDescription
compare_daysintegerPrior comparison window in days. Use 0 to disable comparison.
daysintegerRecent analysis window in days.
response_formatstring
timezonestringIANA timezone used only for display, e.g. America/New_York.

polar_wellness_context Polar Wellness Context

Normalize Polar Nightly Recharge, sleep and training load into the shared wellness_context shape for recommendation engines.

ParameterTypeDescription
daysintegerLookback window for normalized Polar wellness context.
injury_flagsarray
notesstring
response_formatstring
sorenessarray
timezonestringIANA timezone used only for display, e.g. America/New_York.

polar_profile_get Get Shared Wellness Profile

Read the canonical Delx Wellness profile shared with the other wellness MCP connectors (Nourish, Cycle Coach, CGM, etc.). Read-only. Profile stores only what the user typed during onboarding — never OAuth tokens, API keys, or biomarkers.

ParameterTypeDescription
response_formatstring

polar_profile_update Update Shared Wellness Profile

Persist a partial patch to the canonical Delx Wellness profile. Requires explicit_user_intent=true after the user confirms they want to save. Rejects secret-like fields (oauth, token, api_key, password, cookie, refresh, session).

ParameterTypeDescription
patch *objectPartial WellnessProfileDocument patch. Top-level keys: profile, goals, devices, training, nutrition, preferences, safety, notes.
explicit_user_intentbooleanSet to true ONLY after the user has explicitly confirmed they want to save this. Otherwise the tool refuses to write.
response_formatstring

polar_onboarding Wellness Onboarding Flow

Read-only. Return the 11-question Delx Wellness onboarding flow (en or pt-BR), the current shared profile, missing critical fields, and a cross-connector hint. Use this when the user starts a fresh wellness session and you need to fill out preferred_name, goals, devices, training context, nutrition, preferences, and safety.

ParameterTypeDescription
localestringOnboarding locale. Defaults to en.
response_formatstring