mcp-server-garmin
Allows interaction with Garmin Connect, providing tools for retrieving daily summaries, heart rates, sleep, HRV, stress, body composition, activities, training readiness, and logging weight.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-server-garmin
MCP server for Garmin Connect (personal health/fitness data) with per-user login and encrypted, per-user token storage.
This is an independent, unofficial project. It is not developed, endorsed or supported by Garmin.
Unofficial API. Garmin has no obtainable official API for individual developers, so this uses
python-garminconnectagainst Garmin's private endpoints. This may violate Garmin's Terms of Service and can break when Garmin changes their auth. Login is rate-limited per account (24–48h blocks) — the server logs in once per user and rides the token.
Isolation
Behind an authenticating gateway that forwards the signed-in user as X-MCP-User, every tool is bound to that user. Tokens are AES-256-GCM encrypted per user; a user only ever reaches their own data, and the server fails closed without a verified identity. Passwords are never stored — only the resulting OAuth tokens. Users enroll via garmin_connect, which returns a single-use browser form where they enter their Garmin credentials (kept out of Claude entirely).
Related MCP server: garth-mcp-server
Security configuration
MCP_HTTP_TOKEN— shared bearer the gateway must send on/mcp(Authorization: Bearer <token>), compared in constant time. It is required whenGARMIN_TRUST_FORWARDED_USER=true: the server refuses to start without it, because otherwise anyone who can reach the port could claim anyX-MCP-User. Keep/mcpreachable only from the gateway.The server refuses to start on a non-loopback bind (the default is
MCP_HTTP_HOST=0.0.0.0) withoutMCP_HTTP_TOKEN, unlessMCP_HTTP_ALLOW_UNAUTHENTICATED=true(never together withGARMIN_TRUST_FORWARDED_USER=true). The token must be at least 32 printable ASCII characters (e.g.openssl rand -hex 32).Failed
/mcpauthentications are limited per client address: afterMCP_AUTH_FAILURE_LIMIT(default 20,0disables) failures withinMCP_AUTH_FAILURE_WINDOW_MS(default 60000) further failures get 429 withRetry-After. A valid token is never throttled. 401 responses carryWWW-Authenticate: Bearer.PORTand the limits above are validated at startup; invalid values stop the server with a clear message./garmin/enrolland/healthzneed no bearer.The enrollment page shows which gateway identity the link is bound to and requires an explicit confirmation, bound to the confirming browser (HttpOnly cookie), before it accepts Garmin credentials. Links are single-use and expire after 10 minutes.
Security model
Each user links their own Garmin account; tools only use the tokens stored for the identity in
X-MCP-User. That header is only trusted withGARMIN_TRUST_FORWARDED_USER=true, and only behindMCP_HTTP_TOKEN; without it every tool refuses.User authentication and authorization belong in an identity-aware gateway in front of this server: it signs the user in, sets
X-MCP-Userand holds the bearer token. This server does not authenticate end users itself.Tool access is not data access: whoever can call
/mcpwith the bearer and a givenX-MCP-Uservalue acts as that user against Garmin.The HTTP server does not terminate TLS. Put it behind a TLS-terminating proxy or keep it on a private network.
Tools
garmin_connect / garmin_status / garmin_disconnect; garmin_daily_summary, garmin_get_heart_rates, garmin_get_sleep, garmin_get_hrv, garmin_get_stress, garmin_get_body_composition, garmin_get_activities, garmin_get_training_readiness; garmin_log_weight (write, GARMIN_ENABLE_WRITES=true).
Run
pip install --require-hashes -r requirements.lock
python -m app.server # /mcp + /garmin/enroll on :3000
PYTHONPATH=. pytest tests/Dependencies are pinned with hashes in requirements.lock. CI runs pip-audit against the lock on pull requests and as part of every publish (including the weekly rebuild): a newly published advisory for a pinned package blocks image publishing until the lock is refreshed. To update them, edit pyproject.toml and regenerate:
uv pip compile pyproject.toml --generate-hashes --universal --python-version 3.12 -o requirements.lockDocker images: ghcr.io/borgels/mcp-server-garmin.
License
The code is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).
In plain words:
Allowed: reading the code, running it, changing it, using it inside your own organisation (also commercially), using it for non-commercial education and research, and contributing changes back.
Not allowed: making it, or something built from it, available to others as a commercial product or service that competes with it, for example a hosted service with the same functionality.
Becomes Apache-2.0: each version is also licensed under the Apache License 2.0 from two years after it is released.
Earlier versions: versions released before 0.3.0 were licensed under Apache-2.0 and remain so.
The terms in LICENSE are what apply; this summary does not replace them. See also NOTICE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
Garmin Connect MCP server for ChatGPT, Claude and any AI agent: list activities, download FIT file, read sleep and HRV, get training status, create workout and schedule workout in your own Garmin Connect account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Garmin Connect yourself; Cotlet does not store your password and you need no Garmin Connect API key. About the official Garmin Connect API: Yes, in part (checked 27 Oct 2026). Garmin reopened its Connect Developer Program on 21 Oct 2026. Setup and FAQ: https://cotlet.dev/integrations/garmin-api-mcp-server
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for Garmin Connect that provides read-only access to daily health metrics, activities, workouts, and body composition data.3217 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceMCP server to interact with Garmin Connect, enabling retrieval of health, activity, and device data through natural language.65MIT
- FlicenseAqualityDmaintenanceMCP server that connects AI assistants to Garmin Connect health and fitness data, enabling natural language queries about workouts, sleep, heart rate, and more.29-
- AlicenseAqualityDmaintenanceMCP server that exposes Garmin Connect health and activity data (steps, sleep, stress, activities, etc.) via tools for querying, analysis, and visualization.17Apache 2.0