Garmin Dynamic MCP
Provides read-only access to a user's own Garmin Connect data through Garmin's Personal API, including activities, daily summaries, steps, sleep, HRV, stress, Body Battery, heart rate, SpO2, weight, hydration, heart-rate zones, fitness age, and profile settings.
Click on "Deploy 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 Dynamic MCP How many km did I run last week?"
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 Dynamic MCP
The Garmin Connect MCP server that updates itself when Garmin's API changes, and keeps your key in the OS keychain.
Ask Claude, Cursor or any MCP client about your own Garmin data: activities, steps, sleep, HRV, Body Battery, stress, weight and more. It runs on your computer, with your own personal key, read-only.
Quick start
Install uv (it downloads Python and everything else by itself):
Windows:
winget install astral-sh.uvmacOS:
brew install uvLinux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Run the setup, in a new terminal:
uvx garmin-dynamic-mcp setupIt opens Garmin's page where you create your key: https://connect.garmin.com/app/settings/personalApiToken. Create the key, copy it, come back to the terminal and press Enter. The setup reads the key from your clipboard (or paste it, hidden), checks it with Garmin, stores it in your system keychain and configures your MCP clients.
Restart your MCP client and ask: "How many km did I run last week?"
That's all. To check that everything works at any time: uvx garmin-dynamic-mcp doctor.
Claude Desktop only, prefer clicking? Download
garmin-dynamic-mcp.mcpb
from the latest release and double-click it (or Settings → Extensions → Advanced settings → Install Extension). Claude
Desktop asks for your key and stores it securely. It still needs uv installed (step 1).
Related MCP server: Garmin MCP Worker
What you can ask
Claude composes the requests itself and does the maths and the charts, so you are not limited to preset questions:
"How many km did I run last week?"
"What is my average cadence over my last ten runs?"
"Chart the km I ran each day last month."
"How did my sleep and HRV change over the last 90 days?"
"Which weeks had the highest training load this year?"
Supported clients
setup finds the clients installed on your machine and configures them. For anything else it prints the snippet to paste.
Client | Configured by |
Claude Desktop | yes (config file) |
Claude Code | yes ( |
Cursor | yes ( |
VS Code | yes (user |
Windsurf / Devin Desktop | yes, when its config file exists |
Gemini CLI | yes, when |
Codex CLI | yes ( |
Anything else (Zed, ...) | prints the snippet, see Manual configuration |
setup never touches a configuration file it cannot parse as plain JSON (for example one with comments): it prints
the snippet instead. Before its first change to a file it saves a backup next to it.
How it stays up to date
Garmin's Personal API is new and still growing. This server does not hard-code its endpoints:
Every day a GitHub Action downloads Garmin's published OpenAPI specification and compares it with the one the catalog was built from.
If something changed (new endpoint, new parameter, different limit), the Action regenerates the endpoint catalog and opens a pull request that lists exactly what changed.
A maintainer reviews and merges it. A release is published automatically.
Your server tells you, inside the conversation, that a new version exists. You choose when to update:
uvx garmin-dynamic-mcp@latest update, then restart your client.
The server never downloads a catalog by itself while running: what it can call is always something a human reviewed. If Garmin changes the page the Action reads, it opens an issue instead of failing silently.
Security
Your key stays in the OS keychain (Windows Credential Manager, macOS Keychain, Linux Secret Service), not in a JSON file.
setupnever writes it into a client configuration.Read-only and locked down. Only
GETrequests, only to Garmin's API host, only to paths in the catalog, with validated parameters. Nothing accepts a free-form URL.Sensitive data is off by default (nutrition, menstrual cycle): see Sensitive endpoints.
No surprise updates. Client configurations pin an exact version. The server only tells you when a newer one exists.
Supply chain. Releases are built by CI and published to PyPI with trusted publishing (no stored token) and attestations; GitHub Actions are pinned by commit.
Details and the threat model: docs/security.md. To report a vulnerability: SECURITY.md.
Privacy
The server runs on your computer. The key is sent only to Garmin.
The only other connection it makes is a daily check of PyPI for a newer version (no data about you is sent). Disable it with
GARMIN_MCP_NO_UPDATE_CHECK=1.What you ask Claude for becomes part of your conversation, like any tool result. Consider which questions you ask.
Garmin's Personal API is for accessing your own data with your own key. Garmin does not intend it for commercial applications serving several users. Read Garmin's terms.
Updating
When a newer version exists, the answers of the tools include an update_available note and Claude will tell you. To update:
uvx garmin-dynamic-mcp@latest updatethen restart your MCP client. Prefer not to be told? Set GARMIN_MCP_NO_UPDATE_CHECK=1 in the server's environment.
Troubleshooting
Run uvx garmin-dynamic-mcp doctor first: it checks the key, the connection to Garmin, your version and every client
configuration, and never prints the key.
"expired or was revoked": create a new key on Garmin and run
uvx garmin-dynamic-mcp setupagain; it replaces the old one. Garmin emails you about a week before a key expires.Claude Desktop does not start the server: it may not see
uvxon its PATH.setupwrites the absolute path ofuvx; if you moved it, runsetupagain. Quit Claude Desktop completely (also from the tray or the menu bar) and reopen it.No system keychain (some Linux servers):
setup --allow-file-storagestores the key in an owner-only file instead.A long period returns fewer rows than expected: responses are capped (below); Claude is told how to narrow the request.
Manual configuration
If you prefer to edit the configuration yourself, add this to your client's MCP servers (the key is read from the
keychain, so run setup once with --clients none first):
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-dynamic-mcp==0.2.2"]
}
}
}VS Code uses the top-level key servers and needs "type": "stdio". For Claude Code:
claude mcp add garmin --scope user -- uvx garmin-dynamic-mcp==0.2.2If you do not want to use the keychain at all, set GARMIN_API_KEY in the server's env instead. That puts the key in
a plain-text file, which is why setup does not do it.
What it reads, and its limits
Two generic tools: list_endpoints (what exists, with parameters; optional query) and get (call one endpoint).
Activities (list, details, workouts), daily summaries, steps, sleep, HRV, stress, Body Battery, heart rate, SpO2, weight, hydration, heart-rate zones, fitness age, profile settings. The exact list is in
catalog.json; docs/garmin-api-findings.md says which endpoints were verified against a real account.The server renews the 24-hour token, fetches activity pages (200 per request, up to 1000 activities per answer, at most 20 requests), splits long date ranges where Garmin enforces a limit, lets Claude pick fields, and truncates answers at about 40,000 characters with a note on how to narrow the request.
It does not download
.FITfiles (second-by-second data) yet, and never writes anything to Garmin or your watch.
Sensitive endpoints
Nutrition and menstrual-cycle endpoints are in the catalog but disabled. To enable them set
GARMIN_MCP_ENABLE_SENSITIVE=1 in the server's environment. They have not been verified against a real account.
Development
uv sync
uv run pytest # mocked HTTP, no key needed
uv run ruff check . && uv run ruff format --check . && uv run mypy
uv run python scripts/fetch_openapi.py build/openapi.json
uv run python scripts/build_catalog.py build/openapi.jsonSee CONTRIBUTING.md. Releases: docs/releasing.md.
Disclaimer
This is an independent open-source project. It is not affiliated with, endorsed by or supported by Garmin Ltd. "Garmin" and "Garmin Connect" are trademarks of Garmin Ltd. Use of the Personal API is subject to Garmin's terms.
License
Available Tools
2 toolsgetRead Garmin dataARead-onlyIdempotent
Call one Garmin Personal API endpoint (GET only) and return compact JSON.
path: an endpoint path exactly as listed by list_endpoints (with the {placeholders}).
params: values for that endpoint's path and query parameters, e.g.
{"startDate": "2026-11-01", "endDate": "2026-11-09"}. For the activity search endpoint,
limit is the total number of activities wanted (pages are fetched automatically, up to
1000) and startDate/endDate filter by date.
fields: optional dotted paths to keep, e.g. ["startTimeLocal", "distance",
"averageRunningCadenceInStepsPerMinute"]. Activities come with a useful default set
when fields is omitted.
Returns {"data": ..., "partial": bool, "notes": [...], "key_warning": str|null}.
If partial is true, read notes: the result was cut and says how to narrow the request.
Responses are capped at about 40,000 characters (roughly 150 activities in the default view):
for long periods pass a short fields list. If key_warning is not null, tell the user.
If update_available is present, tell the user once (version and how to update).
Inputs: path (required), fields, params. Returns: result
list_endpointsList Garmin endpointsARead-onlyIdempotent
List the Garmin Personal API endpoints this server can call, with their parameters.
query: optional case-insensitive text matched against path and summary (e.g. "sleep").
Each entry has: path, summary, params (name, location 'path' or 'query', required, type), verified (whether the endpoint was tested against a real account), disabled (sensitive endpoints are off unless GARMIN_MCP_ENABLE_SENSITIVE=1) and, when known, max_range_days (longer date ranges are split automatically). Date parameters use YYYY-MM-DD. If the answer contains update_available, tell the user once (version and how to update).
Inputs: query. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct roles: list_endpoints is pure discovery/metadata (path, params, verified, disabled flags) while get performs the actual API call against a path returned by discovery. There is no overlap in purpose, and the descriptions make the list-then-call workflow explicit.
Both names are lowercase snake_case imperative verbs, so the surface is consistent in style. However, 'get' is a bare generic verb that doesn't name its resource, unlike the well-formed 'list_endpoints', creating a minor asymmetry.
Two tools is deliberately thin but correct for a dynamic proxy pattern: one discovery tool plus one universal caller covers an entire API surface without per-endpoint tool bloat. It sits just under the typical 3-15 range but each tool clearly earns its place.
For a read-only personal-fitness API, the discovery-plus-GET design covers the whole surface, and range splitting, field filtering, truncation notes, and sensitive-endpoint gating are all handled. The gaps are the absence of any write/mutation operations and no dedicated auth or status check beyond the 'verified' flag.
Maintenance
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
Hosted Apple Health MCP: workouts, sleep and HRV in ChatGPT, Claude, Gemini, Grok. Free, no export.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA read-only remote MCP server that lets Claude query your own Garmin Connect wellness and activity data — sleep, HRV, Body Battery, stress, heart rate, daily summaries, and workout details — through Garmin's official Personal API, with OAuth sign-in so it works from mobile and desktop clients.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other remote MCP clients to query your own read-only Garmin Connect data — recovery trends, sleep, HRV, Body Battery, stress, heart rate, and activities — through Garmin's official Personal API, with OAuth sign-in that works from the mobile apps as well as desktop. Deploys on Cloudflare Workers' free tier with no password sharing or scraping.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA read-only remote MCP server that lets Claude or any OAuth-capable MCP client query your own Garmin Connect data through Garmin's official Personal API — overnight HRV, sleep, Body Battery, stress, heart rate, daily summaries and detailed activities. Runs on Cloudflare Workers' free tier so it works from both the mobile and desktop apps.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other remote MCP clients to query a user's Garmin Connect data through the official Personal API, including recovery trends, sleep, HRV, Body Battery, activities, and daily wellness metrics. It provides read-only, OAuth-secured access on Cloudflare Workers, so users can ask natural-language questions about their own training and health data from desktop or mobile.MIT