Garmin Connect MCP server
Enables managing strength training workouts on Garmin Connect, including searching exercises, creating/updating/deleting workouts, scheduling them, syncing multi-day programs, and retrieving completed session and exercise history.
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 Connect MCP serverCreate a 5x5 barbell bench press workout and send it to my watch."
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 Connect MCP server
An MCP server for strength training on Garmin Connect. Design a session in conversation with an AI assistant, push it to your watch, and read back what you actually lifted.
Unofficial. Not affiliated with, endorsed by, or supported by Garmin. Garmin and Garmin Connect are trademarks of Garmin Ltd. This project talks to Garmin's private workout-service endpoints through the reverse-engineered python-garminconnect client, so Garmin can change or break it without notice. Use at your own risk, and check your own obligations under Garmin's terms of service.
Everything runs locally. Your credentials stay on your machine and only ever go to Garmin.
Why this exists
Garmin Connect will not import workout .FIT files — FIT import only works
for completed activities, not planned workouts. Your options are the Connect
web UI by hand, or the same private endpoint the web app itself calls. This
takes the second route and puts an MCP interface on it, so a workout can come
out of a conversation instead of twenty minutes of clicking.
Tools
Tool | Does |
| Search Garmin's ~1500-movement catalogue |
| Saved workouts and their IDs |
| Read one workout's structure back |
| Build and upload, with round-trip verification |
| Replace contents in place, keeping the ID |
| Delete one workout by ID |
| Put a workout on the calendar for a date |
| Multi-day templates in |
| Create-or-update every workout in a program |
| Completed sessions with set counts and volume |
| One movement over time: load, reps, volume, e1RM |
| Bulk CSV/JSON dump into |
| Devices and last sync, to confirm a push landed |
delete_workout is the only destructive tool.
Setup
Requires Python 3.12 or newer (garminconnect 0.3.x needs it).
git clone https://github.com/YOUR-USERNAME/garmin-mcp.git
cd garmin-mcp
./setup.shsetup.sh creates .venv/ in the project directory, installs dependencies,
and copies .env.example to .env. Nothing is installed system-wide. If your
newest Python has no wheels for a dependency yet, override it:
PYTHON=python3.13 ./setup.shFill in .env with your Garmin login, then authenticate once:
./.venv/bin/python garmin_login.pyThis step is interactive on purpose. Garmin may ask for an MFA code, and the
MCP server has no terminal to ask on — it would simply hang. The login caches
tokens to ~/.garminconnect, and the server reuses them silently from then
on. Re-run it only if the server reports the session expired.
Verify the build without touching the network:
./.venv/bin/python garmin_mcp.py --self-testConnect it to a client
Claude Desktop
Add to claude_desktop_config.json — on macOS at
~/Library/Application Support/Claude/, on Windows at %APPDATA%\Claude\:
{
"mcpServers": {
"garmin": {
"command": "/absolute/path/to/garmin-mcp/.venv/bin/python",
"args": ["/absolute/path/to/garmin-mcp/garmin_mcp.py"]
}
}
}Use absolute paths and the venv's interpreter rather than a bare python —
the app does not inherit your shell's PATH. Restart the app afterwards.
Anything else
It is a standard stdio MCP server, so any client works. To debug outside one:
npx @modelcontextprotocol/inspector ./.venv/bin/python garmin_mcp.pyPrograms
A program is a JSON file in programs/ describing a multi-day template.
sync_program pushes every workout in it, matching on name — existing
workouts are updated in place, new ones created. See
programs/example.json for a commented template.
{
"name": "Example Upper/Lower",
"workouts": [
{
"name": "[EX] Upper A",
"warmup": "Two or three ramp-up sets.",
"blocks": [
{
"repeat": 4,
"steps": [
{ "exercise": "Barbell Bench Press", "reps": 5, "weight_kg": 60,
"note": "4x5-7. Add 2.5kg once you hit 7 on every set." },
{ "rest_seconds": 180 }
]
}
]
}
]
}A block is a repeat group that runs repeat times. A step is either an
exercise (exercise + reps, optionally weight_kg and note) or a rest
(rest_seconds). A superset is one block holding both exercises with a short
rest between and a long rest at the end. Omit weight_kg for bodyweight work.
Omit warmup for the default warm-up step, or set it to "" for none.
programs/*.json is gitignored apart from the example, so your own training
never lands in a commit.
Things that will bite you
Garmin silently blanks unrecognised exercise names. The upload returns
200, and the exercise shows up nameless on the watch mid-session. This is why
search_exercises exists and why every name is resolved against the catalogue
before upload. Display names are hyphenated in ways nobody types — "Rope
Press-down", "Close-grip Chin-up" — so the search normalises punctuation and
understands shorthand like "db", "bb", "ohp", "rdl", "skullcrusher".
The two halves of the API disagree on weight units. The workout-service
takes weightValue in kilograms, despite weightUnit carrying
"factor": 1000.0. Activity payloads — what you lifted — report grams. Both
are handled; don't "fix" either.
Round-trip verification cannot catch a unit error. It compares what Garmin stored against what was sent, and Garmin faithfully stores whatever you send. When grams were being sent, the check passed and Connect displayed "75,000 kg". Eyeball your first upload in Connect.
Update, don't delete-and-recreate. Keeping the workout ID means the watch treats the change as an edit. Recreating makes it drop the old workouts and pull down new ones, which is where stale duplicates come from.
429 and 401 look the same. Garmin rate limits logins per IP, aggressively.
When the first login transport is throttled, garminconnect's fallback
reports a misleading 401. If you saw 429 just before, it is throttling — wait
30–60 minutes, and don't retry in a loop, which extends the block. To rule out
a genuinely wrong password: garmin_login.py --check-env.
Layout
garmin_mcp.py the server — tool definitions
garmin_core.py auth, payload building, verification, set parsing
garmin_login.py one-time interactive login (MFA lives here)
programs/ multi-day templates as JSON
setup.sh creates .venv and installs dependenciesLicence
MIT — see LICENSE.
Built on python-garminconnect (MIT) and the MCP Python SDK (MIT).
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 Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Create Hevy routines and analyze your training from chat. Unofficial; BYO Hevy PRO API key.
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/felna-devops/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server