garmin-mcp
Provides read-only access to Garmin Connect data, including running activities (with distance, pace, heart rate, cadence, temperature), strength training sessions (with sets, reps, calories, heart rate), and daily calorie/step/resting heart rate data.
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-mcpshow me my last 5 runs with average pace and heart rate"
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 small MCP server that gives Claude Desktop read-only access to Garmin Connect running, strength-training and calorie data. There are three tools and it takes roughly fifteen minutes to set up.
I built this because I wanted to track progress, amongst other things, and to analyse some data from my own training (e.g. how has my easy-run pace changed, or what did I lift on the days I also ran) without exporting CSVs by hand. It talks directly to Garmin's Connect API, so there is no third-party service in the middle and nothing is uploaded anywhere.
The tools
list_runs(limit, start): date, run type, distance, time, average pace, average and max HR, cadence, temperature. Covers treadmill runs too.list_strength(limit, start): date, session name, duration, sets, reps, gross and active calories, average and max HR.daily_calories(days, end): per-day total, active and BMR calories, plus steps and resting heart rate.
start is a row offset and end is a date, so Claude can page back through years of history rather than only the last few entries.
Everything is read-only. The library underneath (garth-ng) does expose write endpoints, but nothing here calls them: that is the only thing making this safe, since the tokens themselves grant full account access.
Requirements
Python 3.12+, uv, Claude Desktop, and a Garmin Connect account. The commands below assume a Unix shell, so macOS or Linux; Windows works too, but the paths differ. Claude Desktop itself runs on macOS, Windows, and Linux (beta, on Ubuntu and Debian). This will not work in the Claude mobile app or in claude.ai, because a local stdio server has no URL for them to connect to.
Setup
Change your Garmin password to something you do not use anywhere else, since you are about to type it into a script.
Clone and install:
git clone https://github.com/SuvirRathore/garmin-mcp-public.git
cd garmin-mcp-public
uv syncAuthenticate once. This exchanges your password for OAuth tokens saved in
~/.garth, after which the password is never needed again:
cd garmin-mcp-public
uv run auth_setup.pyEnter your MFA code if prompted. The OAuth1 token lasts about a year and the OAuth2 one refreshes itself, so this is roughly an annual chore. Treat ~/.garth as a credential: anyone holding it can read your entire Garmin account.
Test the tools directly, before involving Claude. A failure here is an auth or endpoint problem rather than an MCP problem, and it is far quicker to debug at this level than through Desktop's logs:
cd garmin-mcp-public
uv run python -c "import server; print(server.list_runs(3))"
uv run python -c "import server; print(server.list_strength(3))"
uv run python -c "import server; print(server.daily_calories(7))"Find the two absolute paths the config needs:
cd garmin-mcp-public
which uv
pwdCreate or edit Claude Desktop's config file and paste in the block below, replacing the two paths with the output from step 5. Pasting your real paths also removes both instances of
YOUR_USERNAME. The file lives at~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS and%APPDATA%\Claude\claude_desktop_config.jsonon Windows; on the Linux beta, check Anthropic's Claude Desktop documentation for the current location.
{
"mcpServers": {
"garmin": {
"command": "/Users/YOUR_USERNAME/.local/bin/uv",
"args": ["--directory", "/Users/YOUR_USERNAME/path/to/garmin-mcp-public",
"run", "server.py"]
}
}
}Both paths must be absolute. Desktop launches the server with a minimal PATH, so a bare uv fails even though it works in your shell. If you already have other servers configured, add the garmin entry alongside them rather than replacing the object. If you edit this file in TextEdit, turn smart quotes off first: curly quotes are invalid JSON.
Quit Claude Desktop completely (Cmd-Q, not just closing the window) and reopen it. The config is only read at launch. Then ask it something like "show me my last five runs and my calorie burn this week" and approve the tool calls.
If it does not work
Validate the JSON first, then read the server's stderr. These paths are the macOS ones; adjust for your platform:
cd garmin-mcp-public
uv run python -m json.tool ~/Library/Application\ Support/Claude/claude_desktop_config.json
tail -50 ~/Library/Logs/Claude/mcp-server-garmin.logErrors on every call usually mean the tokens expired: re-run auth_setup.py. The "add custom connector" dialog inside Claude is not relevant here, since it expects a remote HTTPS URL.
Notes for anyone extending this
Garmin's Connect API is undocumented and its field names drift, so when something comes back empty, inspect one real object rather than guessing. Save this as probe.py in the repo and run it with uv run probe.py, rather than pasting it into a shell:
import garth
garth.resume("~/.garth")
a = garth.connectapi(
"/activitylist-service/activities/search/activities",
params={"start": 0, "limit": 1},
)[0]
print(sorted(a))Two behaviours worth knowing before you add a tool. The activityType filter accepts parent categories only: running works and quietly includes treadmill_running, while strength_training returns HTTP 400 and has to be requested as fitness_equipment then filtered in Python. And each activity carries about a hundred fields, so map them down to the handful you need: returning raw Garmin JSON floods the context window on every call.
Keep the number of tools small for the same reason. Three focused tools with descriptive docstrings work better than a dozen vague ones, because the docstrings are what Claude reads when choosing which tool to call.
MIT licensed.
This 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 Servers
- Alicense-qualityDmaintenanceAn MCP server that gives Claude access to your Garmin Connect fitness and health data, including steps, sleep, activities, heart rate, and more.1MIT
- Flicense-qualityCmaintenanceA local, read-only MCP server that allows Claude Desktop to access Garmin Connect data such as activities and recovery metrics, enabling AI-assisted running plan creation and adjustment.
- AlicenseAqualityBmaintenanceA read-only MCP server that gives Claude Desktop access to your Garmin Connect data — daily health metrics, sleep, activities, training status, and body composition.6MIT
- AlicenseAqualityBmaintenanceLocal MCP server that connects Claude Desktop with Garmin and Apple Health data to read training and recovery, estimate heart rate and pace zones, analyze performance, and create structured workouts.22MIT
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
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/SuvirRathore/garmin-mcp-public'
If you have feedback or need assistance with the MCP directory API, please join our Discord server