garmin-mcp
Connect an MCP client to your Garmin account to read training and health data and manage structured workouts.
Activities: list recent activities (last N days) with distance, duration, pace, heart rate, cadence, elevation, power, training effect and load.
Readiness: check training readiness, recovery time, HRV vs. baseline, training status/load, VO2max, endurance and hill scores.
Sleep: review sleep score, duration vs. need, stages, overnight HR, HRV, stress, respiration and restlessness.
Body metrics: see body battery, steps vs. goal, calories, floors, stress, HR range, intensity minutes, SpO2, weigh-ins and fitness age.
Race predictions: get predicted 5K, 10K, half-marathon and marathon times plus VO2max.
HR zones: look up your personal heart-rate zones in bpm for running or cycling.
Workouts (read): view upcoming calendar workouts, your saved workout library, and one workout's full steps.
Workouts (write): create a structured workout (optionally scheduled), update it in place, schedule or unschedule it, or permanently delete it.
Step detail: workouts support warmup/interval/recovery/rest/cooldown steps ended by time, distance or lap button, with pace, heart-rate or power targets.
Safety hints: read-only and destructive tools carry MCP annotations so clients can request approval before changing your real Garmin account.
Connects to a user's Garmin account via Garmin's private API to read training and health data — activities, training readiness, sleep, body metrics, race predictions, heart-rate zones — and to manage structured workouts: listing, retrieving, creating, updating, scheduling, unscheduling and deleting workouts on the Garmin calendar and library.
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-mcp Summarize my last two weeks of running."
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
Connect Claude, or any MCP client, to your Garmin account. It can read your training and health data and build structured workouts for your watch.
"Am I recovered enough for intervals today?"
"How did I sleep this week compared to what Garmin says I need?"
"Summarize my last two weeks of running."
"Put 5x1km at threshold on my calendar for Tuesday, with Zone 2 recoveries."
It runs on your own computer and talks only to Garmin. There's no account to create and no database to set up.
Unofficial. This uses Garmin's private API through the
garminconnectlibrary. It isn't affiliated with or endorsed by Garmin, and it can break when Garmin changes something.
Quick start
You need Python 3.12 or newer.
1. Install
pipx install git+https://github.com/JacobHeart/garmin-mcpOr with uv:
uv tool install git+https://github.com/JacobHeart/garmin-mcp2. Log in
garmin-mcp loginEnter your Garmin email, password and MFA code if you use one. It then fetches some of your data, so you know right away that everything works:
Logged in. Session saved to /Users/you/.garmin-mcp/tokens (your password was not saved).
Fetching your data from Garmin:
Account: Your Name
Activities, last 7 days: 4, 30.12 km, 2:38:55. Latest: 2026-01-14 Morning Run
Latest sleep: 2026-01-14: score 81, 7h 29m
Training readiness today: 63 (MODERATE)
Steps yesterday: 12,345
Next workout: 2026-01-16 Tempo Run (3 in the next 14 days)
All set. Your data is coming through.3. Connect your AI client
Claude Code:
claude mcp add --scope user garmin -- garmin-mcp--scope user makes it available in all your projects. Then start a new session, because running
sessions don't pick up new servers.
Claude Desktop: run which garmin-mcp, then add its full path to claude_desktop_config.json:
{
"mcpServers": {
"garmin": { "command": "/full/path/to/garmin-mcp" }
}
}Other MCP clients: run garmin-mcp as a stdio server.
Related MCP server: Garmin MCP
Tools
Tool | What it does |
| Recent activities with pace, heart rate, cadence, power, training effect and totals |
| One session in full: every lap or step with cadence, power and running dynamics, rep-by-rep comparison, km splits, heart-rate and power zones, heart-rate drift, weather, how each planned target was hit, and the full recording over time |
| Training readiness, recovery time, HRV, training status and load, VO2max, endurance and hill scores |
| Sleep score, duration vs. need, stages, overnight heart rate, HRV, stress and respiration |
| Body battery, steps, calories, stress, heart rate, intensity minutes, SpO2, weigh-ins, fitness age |
| Predicted 5K, 10K, half marathon and marathon times, plus VO2max |
| Your own heart-rate zones in bpm |
| Workouts on your calendar |
| Your saved workout library |
| One workout with all of its steps |
| Writes. Create a workout, optionally on a calendar date |
| Writes. Replace a workout, keeping its id and calendar dates |
| Writes. Put a saved workout on the calendar |
| Writes. Take a workout off the calendar, keeping it in your library |
| Writes. Permanently delete a workout |
The write tools change your real Garmin account. They're marked with MCP's read-only and destructive hints, so clients that support approvals can ask you first.
Workout steps
Workouts are a flat list of steps, so 5x1km is written out as five interval and recovery pairs. Each
step needs a type (warmup, interval, recovery, rest, cooldown or other) and a way to end:
|
|
| seconds |
| meters |
| none, it ends when you press lap |
A step can also have a target_type with a target_low and target_high:
| Range |
| seconds per km, where low is the faster pace |
| bpm |
| watts |
{
"name": "Threshold 1km",
"sport": "run",
"scheduled_date": "2026-01-20",
"steps": [
{ "type": "warmup", "duration_type": "time", "duration_value": 600 },
{
"type": "interval", "duration_type": "distance", "duration_value": 1000,
"target_type": "pace", "target_low": 240, "target_high": 250
},
{
"type": "recovery", "duration_type": "time", "duration_value": 120,
"target_type": "heart_rate", "target_low": 120, "target_high": 140
},
{ "type": "cooldown", "duration_type": "lap_button" }
]
}Optional: training guidance for Claude
The server already gives clients its basic rules. For fuller guidance on reporting data and building workouts in Claude Code, install the included skill:
mkdir -p ~/.claude/skills && cp -R skills/garmin-training ~/.claude/skills/Commands and settings
Command | What it does |
| Run the MCP server over stdio |
| Sign in, save the session and show some of your data |
| Show some of your data using the saved session, with no password needed |
| Install the latest version from GitHub |
| Run the server, and check for a new version in the background |
Environment variable | What it does |
| Where the session is saved. The default is |
| Optional, for machines where you can't log in interactively |
The session renews itself: Garmin's access token lasts about a day, and the server refreshes it
and saves the new tokens. Several clients can run the server at once (Claude Code, Claude Desktop,
the Claude app), and they share one session safely. If the session does expire, tools will ask you
to run garmin-mcp login again, and running servers pick up the new session without a restart.
Updates
Updates are manual unless you turn on auto-update:
garmin-mcp updateTo update automatically, start the server with --auto-update:
claude mcp add --scope user garmin -- garmin-mcp serve --auto-updateEach time the server starts, it checks GitHub in the background and installs any new commit from
main. The new code applies the next time the server starts, which in Claude Code means your next
session. A slow connection or a failed update won't delay or stop the server. Details of the last
check are in ~/.garmin-mcp/update.log.
Only turn this on if you trust this repository. New code runs on your computer with access to your Garmin session, and nothing reviews it first.
Updating needs git and pip, and has been tested with a pip install in a virtual environment. If
you installed with uv tool, use uv to upgrade instead. Development checkouts are left alone.
Privacy
Your password isn't saved by
garmin-mcp login. Only a session token is, in a folder only your user can read. Treat that folder like a password.The server sends nothing anywhere except Garmin, and has no telemetry. With
--auto-updateit also asks GitHub for the latest commit, which sends none of your data.Whatever a tool returns goes to the AI client you connected, and is handled under that client's terms. That can include sensitive health data such as sleep, heart rate and weight.
Known limits
Tested on one account, on a watch with training metrics. Basic trackers report less, and missing fields are left out rather than shown as zero.
Rate limits. Garmin limits requests aggressively, and every read is a live call. After a 429 the server stops calling for 20 minutes.
Repeats are written out. Repeat groups in existing workouts are expanded when read, so updating one saves it as a flat list.
Pool length. Swim workouts created here don't set a pool length. Existing ones keep theirs when updated.
Other services. Workouts synced from a service such as TrainingPeaks may be overwritten by its next sync. These show a
sourcefield.Your watch. Workouts reach your watch through Garmin's normal sync. Check a new workout before relying on it in a session.
This isn't medical advice, and the numbers are only as good as Garmin's estimates.
Development
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
.venv/bin/ruff check .Tests use made-up data and never contact Garmin.
License
MIT. Garmin is a trademark of Garmin Ltd., which has no connection to this project.
Available Tools
14 toolsgarmin_activitiesARead-only
Recorded activities for the last N days, newest first, with totals: sport, distance, duration, pace, heart rate, cadence, elevation, power, training effect and load.
Inputs: days. Returns: object
garmin_body_metricsARead-only
Per day: body battery, steps vs. goal, distance, calories, floors, stress, heart rate range, intensity minutes, respiration, SpO2 and any weigh-in; plus current fitness age. Makes about 3 Garmin requests per day.
Inputs: days. Returns: object
garmin_hr_zonesARead-only
The user's own heart-rate zones in bpm, from their Garmin settings. Call this before garmin_workout_create whenever a workout is described by zone.
Inputs: sport. Returns: object
garmin_race_predictionsARead-only
Garmin's predicted 5K, 10K, half marathon and marathon times, plus current VO2max.
Inputs: no named parameters. Returns: object
garmin_readinessARead-only
Training readiness, recovery time, HRV against the user's baseline, training status and load (acute, chronic, ratio), VO2max, plus current endurance and hill scores. Use for "am I recovered?" or "should I go hard today?". Makes about 3 Garmin requests per day.
Inputs: days. Returns: object
garmin_sleepCRead-only
Per night: sleep score, duration against Garmin's sleep need, deep/REM/light/awake minutes, overnight heart rate, HRV, stress, respiration and restless moments.
Inputs: days. Returns: object
garmin_upcoming_workoutsARead-only
Workouts on the user's Garmin calendar for the next N days, including today. Returns each one's schedule_id (for garmin_workout_unschedule) and workout_id.
Inputs: days. Returns: object
garmin_workout_createA
Create a structured workout in Garmin Connect, ready to sync to the user's watch. Give scheduled_date to also put it on their calendar. Write repeats out as a flat list: 5x1km is 5 interval+recovery pairs. To change an existing workout, use garmin_workout_update.
Inputs: name (required), steps (required), sport, scheduled_date. Returns: object
garmin_workout_deleteADestructive
Permanently delete a workout from Garmin Connect, including from the calendar. This can't be undone: name the workout and get the user's explicit go-ahead first. Only use an id from garmin_workouts_list.
Inputs: workout_id (required). Returns: object
garmin_workout_getARead-only
One saved workout with all of its steps, in the format garmin_workout_update accepts. Repeat groups come back written out as individual steps.
Inputs: workout_id (required). Returns: object
garmin_workout_scheduleA
Put a saved workout on the user's Garmin calendar for a date.
Inputs: workout_id (required), scheduled_date (required). Returns: object
garmin_workouts_listARead-only
Saved workouts in the user's Garmin library with their workout_id. Use it to find a workout to change, and to check one doesn't already exist before creating it.
Inputs: limit. Returns: object
garmin_workout_unscheduleADestructive
Remove a workout from the calendar. The workout stays in the user's library.
Inputs: schedule_id (required). Returns: object
garmin_workout_updateADestructive
Replace a workout in place, keeping its id and calendar dates. Garmin replaces the whole workout, so pass the COMPLETE step list; read it with garmin_workout_get first if needed.
Inputs: name (required), steps (required), workout_id (required), sport. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource and action: library CRUD (list/get/create/update/delete), calendar operations (schedule/unschedule/upcoming), and separate read endpoints for activities, sleep, readiness, body metrics, race predictions and HR zones. The descriptions explicitly disambiguate the potentially confusable pairs (garmin_workouts_list vs garmin_upcoming_workouts, garmin_workout_delete vs garmin_workout_unschedule). No two tools appear to do the same thing.
There is a clear, mostly consistent convention: a garmin_ prefix, bare noun phrases for read endpoints (garmin_sleep, garmin_activities, garmin_body_metrics) and garmin_workout_<verb> for mutations. The main wrinkle is the odd one-out garmin_workouts_list versus the singular garmin_workout_get/create/update, which breaks the pluralization pattern within the workout family.
Fourteen tools sit comfortably in the well-scoped range, and every tool covers a distinct slice of the Garmin domain (workout lifecycle, calendar, and training/recovery reads). Nothing feels padded or redundant.
The workout lifecycle is fully covered — create, get, list, update, delete, schedule and unschedule — so there are no dead ends for the core workflow. Minor gaps remain: there is no single-activity detail tool (laps/splits/streams) and no way to duplicate a workout or manage courses/routes, but agents can work around these.
Related MCP Connectors
Access COROS activity, training and health data, and manage training plans and workouts.
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
Read your workouts, history, and stats; create and schedule new workouts. Writes are additive only.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes Garmin Connect data through MCP, enabling retrieval of activities, health metrics, training status, and workouts, with OAuth authentication and confirmed write operations.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to read and update Garmin Connect data, including activities, health metrics, training status, and more, with per-account multi-tenant authentication.3MIT
- AlicenseAqualityBmaintenanceEnables an MCP client to read and write a personal Garmin Connect account: activities with per-set strength detail, daily health metrics (sleep, HRV, stress, steps, readiness), planned and completed workouts, and weigh-ins with body composition. It also logs finished strength sessions and body-composition readings as FIT files so they appear in Garmin Connect like natively recorded ones.382MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to access a Garmin Connect account read-only, including activities, sleep, heart rate, and training metrics, with bearer-token or OAuth authentication.BSD Zero Clause