garmin-mcp
Provides tools for interacting with Garmin Connect data, enabling access to activities, health metrics (sleep, heart rate, HRV, stress, body battery), training data (training readiness, lactate threshold, FTP, VO2max, personal records), workouts, scheduled workouts, and training plans.
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 was my sleep score last night?"
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-mcp
A local MCP server that exposes your Garmin Connect activity, health, and training data (activities, HRV, sleep, heart rate, stress, body battery, training readiness, HR/power zones, lactate threshold, FTP, VO2max, personal records, workouts, scheduled workouts, and training plans) as tools inside Claude Desktop.
It talks directly to the live Garmin Connect API via the
garminconnect
library. Data is read-only — nothing is ever written back to Garmin.
How auth works
Garmin login happens in two separate places on purpose:
scripts/setup_auth.py— an interactive script you run yourself in a terminal. It logs in with your email/password, prompts you for an MFA code if Garmin asks for one, and saves the resulting session token to~/.garmin_mcp/tokens.The MCP server (
src/garmin_mcp/server.py), launched headlessly by Claude Desktop, only ever loads and silently refreshes that cached token. It never prompts for MFA — Claude Desktop gives it no terminal to prompt on, and blocking on stdin there would hang tool calls. If the cached session is missing or has expired, tool calls fail with an error telling you to re-runsetup_auth.py.
Your Garmin password is stored in the macOS keychain (item/service
garmin-mcp, viewable in Keychain Access), never written to a file. Only
your Garmin login email (not secret) is saved, in ~/.garmin_mcp/config.json.
Setup
Install dependencies:
cd garmin_mcp uv syncRun the one-time interactive login:
uv run python scripts/setup_auth.pyEnter your Garmin Connect email and password (the password is then stored in the keychain for next time). Enter the MFA code when prompted. On success you'll see a confirmation and the token cache path.
Register the server with Claude Desktop by editing
~/Library/Application Support/Claude/claude_desktop_config.jsonand adding (alongside any othermcpServersentries):{ "mcpServers": { "garmin": { "command": "uv", "args": ["run", "--project", "/Users/felix.guiony/Code/Perso/garmin_mcp", "garmin-mcp"] } } }Fully quit Claude Desktop (Cmd+Q, not just close the window) and reopen it. The tools/hammer icon should list the
garmintools.
Tools
Tool | Description |
| Recent activities, most recent first (paginated, optional type filter) |
| Full detail for one activity: summary + per-metric time series |
| Lap/split data for one activity |
| Daily resting HR + intraday HR timeline |
| Steps, calories, resting HR, distance, floors, intensity minutes |
| Sleep stages, duration, sleep score |
| Heart rate variability |
| Body Battery energy reserve over a date range |
| All-day stress level |
| Training Readiness score and contributing factors |
| Identity, unit prefs, personal settings (max HR, resting HR, weight, height, VO2max), HR zones and power zones per sport |
| Running lactate threshold: heart rate, power, and speed |
| Latest cycling Functional Threshold Power |
| Historic FTP for a sport over a date range |
| Max-metric data (e.g. VO2max) over a date range |
| Daily resting heart rate trend over a date range |
| Garmin Fitness Age for a given date |
| Personal records |
| Saved workout templates, most recent first (paginated) |
| Full structure of one workout: segments, targets, intervals |
| Calendar of workouts scheduled for a given month |
| Detail for one scheduled workout instance |
| Training plans |
| Details for a specific training plan |
| Details for a specific adaptive training plan |
All date parameters take YYYY-MM-DD and default to today.
Troubleshooting
A tool call returns a "Garmin session error" / "run setup_auth.py" message. Your cached refresh token expired or was revoked (this happens occasionally, e.g. after a password change or long period of inactivity). Re-run:
uv run python scripts/setup_auth.pyRate limited. Garmin Connect will occasionally rate-limit rapid requests; the underlying library retries transient failures automatically, but if you see a rate-limit error, wait a bit and try again.
Verifying the server directly, outside Claude Desktop:
uv run mcp dev src/garmin_mcp/server.pyopens the MCP Inspector so you can call each tool by hand and check its output/schema.
Project layout
garmin_mcp/
pyproject.toml
src/garmin_mcp/
auth.py # keychain + token-cache helpers
server.py # FastMCP server and tool definitions
scripts/
setup_auth.py # interactive one-time/occasional loginThis 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 Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
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/sovnheim/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server