garmin-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@garmin-mcpWhat's my training readiness today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Garmin → Claude MCP server
Analyze your own Garmin Connect data — activities, sleep, HRV, Body Battery, training readiness — right inside Claude Desktop.
A fully local, read-only MCP server that lets you analyze your own Garmin Connect data in Claude Desktop. The server runs as a local child process of Claude Desktop and talks to it over stdio.
Guiding principles
100% local — nothing is hosted or exposed to the network (stdio).
Read-only — there is no write endpoint to Garmin.
No third party — the only network contact is Garmin. No telemetry, no external logging.
Passwordless at runtime — the password is never stored; after the one-time login only local tokens are used.
Related MCP server: Garmin Health MCP Server
Requirements
Node.js ≥ 20 (tested with Node 22 LTS), npm.
A Garmin Connect account.
Setup (4 steps)
# 1) Install dependencies
npm install
# 2) Milestone test: does the client get through Garmin's Cloudflare protection?
npm run smoke
# Expectation: "Status 200" and "Challenge: no".
# 3) One-time interactive login (prompts for email, hidden password, MFA if enabled)
npm run login
# Creates ~/.garmin-mcp/tokens.json (mode 0600). The password is NOT stored.
# 4) Compile TypeScript to build/
npm run buildConnecting Claude Desktop
Claude Desktop → Settings → Developer → Edit Config. Add the server with its
absolute path (claude_desktop_config.json):
{
"mcpServers": {
"garmin": {
"command": "node",
"args": ["/absolute/path/to/garmin-mcp/build/mcp/server.js"]
}
}
}Then restart Claude Desktop. Try it in chat, e.g.:
"Am I logged in to Garmin? Use
whoami." "Show me my daily summary and my recent activities."
Available tools
13 read-only tools. Date parameters are YYYY-MM-DD (default = today); ranges
default to the last ~4 weeks. Several tools take a metrics[] / include[] selector,
so one tool covers many data types (this keeps the tool list small for good tool
selection). Long time series in responses are truncated to stay compact.
Tool | Description |
| Connection check + account profile |
| Daily wellness for a date — |
| Training for a date — |
| Fitness/performance — |
| Body weight & composition over a range ( |
| Step totals over a range — |
| One activity by |
| Recent activities, or by date range/type ( |
| Paired Garmin devices |
| User profile & settings (units, preferences) |
| Goals ( |
| Saved workouts ( |
| Scheduled workouts / calendar ( |
How it works
The server registers each Garmin data method as an MCP tool and talks to Claude
Desktop over stdio. Every call goes through a generic connectapi() request to
connectapi.garmin.com with a bearer token, sent via
cycletls so the TLS fingerprint looks
like a real browser (Garmin sits behind Cloudflare).
Authentication happens once (npm run login): a login cascade — mobile iOS JSON
login first, the classic widget/CSRF flow as fallback — yields a CAS service ticket,
which is exchanged in Garmin's DI-OAuth2 flow for an access + refresh token. The
tokens are cached locally and the access token is refreshed automatically on expiry;
your password is never stored.
Security model
The password is never stored — it is only used for the one-time login.
Tokens live at
~/.garmin-mcp/tokens.jsonwith file mode0600(only you can read them).The access token is renewed automatically via the refresh token when it expires.
Read-only: there is no code path that changes anything on Garmin.
No telemetry, no external logging. Diagnostics go to
stderronly (never over the stdio MCP channel).
Architecture (layers)
src/http/impersonate.ts— TLS impersonation viacycletls(JA3 fingerprint) + cookie jar, so Garmin's bot protection lets us through.src/http/smoke.ts— milestone test againstsso/embed.src/garmin/auth.ts— login cascade (mobile iOS JSON login → widget/CSRF fallback) + MFA + DI-OAuth2 ticket exchange + refresh.src/garmin/tokens.ts— local token cache (0600).src/garmin/client.ts— genericconnectapi()+ typed, read-only data methods.src/mcp/server.ts— MCP server, tool registration, stdio transport.src/cli/login.ts— one-time interactive login.
Maintenance & risks (named honestly)
This uses Garmin's unofficial internal API, ported from the open-source Python
package python-garminconnect.
Expected breakage points and how to fix them:
Unofficial API — endpoint paths can change. On errors, compare the paths in
src/garmin/client.tsagainst the currentpython-garminconnectsource.JA3 / User-Agent — on a
403or a "Just a moment …" Cloudflare page, update the JA3/User-Agent pair insrc/http/impersonate.tsto a current Chrome (both together).Client ids — the DI-OAuth2 client ids (
GARMIN_CONNECT_MOBILE_ANDROID_DI_*) rotate; update the list insrc/garmin/auth.tson auth errors.garthis discontinued — the previously common auth librarygarthis no longer maintained; the authoritative reference ispython-garminconnect.Keep the token folder private —
~/.garmin-mcp/holds valid session tokens; don't share it, don't commit it.Terms of service — access via the unofficial API may be in tension with Garmin's terms of service. Intended for private personal use with your own data.
Troubleshooting
403or a "Just a moment …" page — Garmin's Cloudflare is blocking the TLS fingerprint. Update the JA3/User-Agent pair insrc/http/impersonate.tsto a current Chrome (both together), then re-runnpm run smoke.🔒 Not logged in/ session expired — runnpm run loginagain.⏳rate limited (HTTP 429) — Garmin is throttling; wait a bit and retry.First run is slow / cycletls errors —
cycletlsdownloads a small Go helper binary on first use; make sure it can execute and isn't blocked by the OS.
Re-login
If tools report 🔒 Not logged in (token expired/invalid):
npm run loginLicense
MIT © Marcel Fortmann
Disclaimer
This is an unofficial, community project. It is not affiliated with, endorsed by, or sponsored by Garmin. Garmin® and Garmin Connect™ are trademarks of Garmin Ltd. or its subsidiaries.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/marcelfortmann/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server