Garmin Connect Workouts MCP
This server lets you manage Garmin Connect workouts through natural language and structured MCP tools.
Create structured workouts for running, cycling, and swimming with explicit steps and repeat blocks.
Set intensity targets: pace ranges, heart-rate zones, exact bpm, cycling power, and cadence.
Build swim workouts with strokes, equipment, and pool length.
List, fetch, update, and delete existing workouts.
Schedule workouts onto the Garmin Connect calendar.
Check authentication status and authenticate interactively via browser.
Workouts show real rep counters for intervals instead of duplicated steps.
Provides tools for creating, listing, retrieving, updating, deleting, and scheduling structured workouts in Garmin Connect, with support for pace, heart-rate, power, and cadence targets as well as repeat blocks.
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 Connect Workouts MCP Create a 10 min warmup, 5x1km at 4:00/km, 10 min cooldown"
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 Workouts MCP
An MCP (Model Context Protocol) server that turns natural-language workout descriptions into structured workouts in Garmin Connect. Describe a session in plain English and the calling model builds a typed step-by-step workout that this server encodes into Garmin's workout API format and creates directly in your account.
Features
Pace, heart-rate, power and cadence targets - pace ranges, HR zones 1-5, explicit bpm ranges, cycling power, and cadence, all encoded against Garmin's real
workoutTargetTypetable.Real repeat blocks -
5x1kmbecomes a single repeat group, not five duplicated steps, so the watch shows an actual rep counter.Swim workouts - per-step strokes (freestyle, backstroke, breaststroke, fly, drill, individual medley, or any stroke) and equipment (fins, kickboard, paddles, pull buoy, snorkel), plus a workout-level pool length in meters or yards.
Full workout lifecycle - create, list, get, update, delete, and schedule workouts onto the Garmin Connect calendar.
Structured input, not text parsing - the server never parses free text itself; every duration and target is an explicit, unit-tagged field, so there's nothing for a string like "10 min" to be silently misread as.
Related MCP server: Garmin Workouts MCP Server
Quick Start
Claude Code
claude mcp add garmin-workouts npx garmin-connect-workouts-mcpClaude Desktop
Add to your configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"garmin-workouts": {
"command": "npx",
"args": ["-y", "garmin-connect-workouts-mcp"]
}
}
}Then restart Claude Desktop.
Authentication
Garmin Connect's web client authenticates with session cookies plus a CSRF token, not a password grant this server could hold on to. So the first time you create a workout (or whenever the session has expired):
The server checks the stored session with a cheap authenticated request.
If it's missing or rejected, run the
authenticate_garmintool. It opens a real browser window atconnect.garmin.comfor you to log in normally.Once login completes, the session is captured and stored at
~/.config/garmin-connect-workouts-mcp/auth.jsonwith600permissions (owner read/write only).
No password is ever stored - only the resulting session cookies and CSRF
token. Garmin sessions expire, so you may be prompted to re-authenticate
between sessions; the server detects this automatically and tells you when
to run authenticate_garmin again. The login browser uses a persistent,
isolated profile under ~/.config/garmin-connect-workouts-mcp/browser-profile/
so Garmin can remember the device across logins - it never touches your
personal browser profile.
Tools
Tool | Description |
| Create a structured workout with steps, targets, and repeat blocks. |
| List workouts in the Garmin Connect account. |
| Fetch the full structure of one workout. |
| Replace an existing workout's contents, keeping its id. |
| Delete a workout. |
| Put a workout on the Garmin Connect calendar for a date. |
| Check whether the stored Garmin session still works. |
| Authenticate with Garmin Connect (opens a browser). |
Usage Examples
"Create a 30 minute easy run in zone 2"
"10 min warmup zone 3, then 5x1km threshold intervals at 4:00/km with 2 min rest between, then 10 min cooldown zone 2"
"8x400m at 5k pace with 60 second recovery, then check what workouts I already have scheduled this week"
"Update workout 123456 to add a 5 minute cooldown, then schedule it for next Monday"
"Create a 25m pool swim: 200m warmup any stroke, 4x100m freestyle with 30s rest using a kickboard, 100m breaststroke cooldown"
How targets work
A stated pace is treated as the fast edge of a range: Garmin stores pace
as a range, not a single point, so 4:00/km on its own becomes a
4:00-4:10/km range, widened by 10 seconds. Give both fast and slow
explicitly for a narrower or different range.
Development
pnpm install
pnpm test # vitest: encoders + golden-file tests against real captured payloads
pnpm run build # compile TypeScript to dist/
pnpm run dev # run the server directly with tsxTests validate the workout encoders (targets, durations, repeat nesting) against fixtures captured from Garmin's own web client, so payload shape regressions get caught before they reach a real account.
Disclaimer
This is an unofficial, third-party project. It is not affiliated with, endorsed by, or sponsored by Garmin Ltd. or any of its affiliates, and it talks to Garmin Connect's web API by reverse-engineering the same requests the official web client makes. It may stop working if Garmin changes that API. Use at your own risk, and at your own responsibility for the workouts and data you send to your account.
Acknowledgements
Thanks to garmin-workouts-mcp by Charles Frisbee for the original idea of driving Garmin Connect workouts through MCP.
License
MIT
Available Tools
8 toolsauthenticate_garminA
Authenticate with Garmin Connect by opening a real browser window at connect.garmin.com for you to log in normally, then capture and store only the resulting session cookies and CSRF token (never your password). Run this whenever check_garmin_auth reports no valid session, or any other tool returns its 'not authenticated' message. Requires a local display; will not work in a headless-only environment.
Inputs: no named parameters.
check_garmin_authARead-onlyIdempotent
Probe whether the stored Garmin Connect session is still valid, using a cheap authenticated request rather than a local expiry check (Garmin's session cookie does not carry a reliable expiry). Use this first when unsure whether the other tools will work. Returns a message telling you to run authenticate_garmin if the session is missing or has expired; never throws.
Inputs: no named parameters.
create_garmin_workoutA
Create a new structured workout in Garmin Connect from typed steps: durations, pace/HR/power/cadence targets, repeat blocks for intervals, and swim-specific stroke/equipment/pool-length fields. Use to add a workout; to change one that exists, use update_garmin_workout instead. Returns the new workoutId and a Connect link. Returns a re-auth message, not an exception, if no valid session exists. Example: [{kind:'step', intensity:'warmup', duration:{type:'time', value:10, unit:'min'}}, {kind:'repeat', iterations:5, steps:[...]}].
Inputs: name (required), steps (required), sport, poolLength, +1 more.
delete_garmin_workoutADestructive
Permanently delete a workout from Garmin Connect by workoutId. This is irreversible - there is no undo or trash. Use list_garmin_workouts or get_garmin_workout first to confirm you have the right workoutId. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Inputs: workoutId (required).
get_garmin_workoutARead-onlyIdempotent
Fetch the complete stored structure (all steps, targets, repeat blocks) of one workout by its workoutId, as raw JSON. Use this to inspect a workout, or to get its full contents before calling update_garmin_workout, which replaces the entire workout rather than patching it. Read-only. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Inputs: workoutId (required).
list_garmin_workoutsARead-onlyIdempotent
List workouts stored in the Garmin Connect account, most recent first, with each workout's name, sport, and workoutId. Use this to find a workoutId to pass to get_garmin_workout, update_garmin_workout, delete_garmin_workout, or schedule_garmin_workout. Read-only. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Inputs: limit.
schedule_garmin_workoutA
Put an existing workout on the Garmin Connect calendar for a specific date, so it appears as a planned session and can sync to a device. Requires a workoutId already created via create_garmin_workout or found via list_garmin_workouts - this tool does not create workouts. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Inputs: date (required), workoutId (required).
update_garmin_workoutAIdempotent
Replace the entire contents (name, sport, steps, pool settings) of an existing workout, identified by workoutId, keeping its id. This is a full overwrite, not a partial patch - fields you omit are dropped. Call get_garmin_workout first to see the current contents before changing them. If no valid session exists, returns a message asking you to run authenticate_garmin rather than throwing.
Inputs: name (required), sport (required), steps (required), workoutId (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct action on a distinct resource: CRUD operations on workouts, list/get, schedule, auth status, and login. The only pair that could seem close—check_garmin_auth vs authenticate_garmin—is clearly separated by probe vs. act descriptions.
All tools follow a consistent verb_garmin_<noun> pattern (create/list/get/update/delete/schedule_garmin_workout, check/authenticate_garmin). The verb is always first and snake_case is uniform, making the set predictable.
Eight tools is well-scoped for a workout-management MCP: five for CRUD/list, one scheduling action, and two for authentication lifecycle. No redundant or unnecessary tools.
The workout lifecycle is fully covered with create, list, get, update, and delete, and schedule and auth handle adjacent needs. Minor gaps exist—there is no unschedule/calendar-view counterpart to schedule_garmin_workout—but agents can accomplish the core workflows without dead ends.
Maintenance
Related MCP Connectors
Create structured workouts and push them to Apple Watch or Garmin.
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
AI coach for Garmin: builds training plans and structured workouts, synced straight to your watch.
Your endurance training data in your AI assistant: activities, recovery, plan, workout edits.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables creation of Garmin Connect workouts using natural language descriptions. Supports multi-sport workouts with heart rate zones and automatic sync to Garmin devices.32ISC
- AlicenseNot gradedqualityDmaintenanceEnables creation, management, and scheduling of Garmin Connect workouts from natural language descriptions, plus viewing activities, calendar data, and weather information from completed workouts.30MIT
- AlicenseAqualityCmaintenanceEnables building and uploading structured workouts to Garmin Connect using YAML or natural language, supporting running, cycling, and strength with zones and circuits.244MIT
- AlicenseNot gradedqualityDmaintenanceEnables listing, creating, editing, deleting, and scheduling structured workouts (run, cycle, swim, triathlon) on Garmin Connect via natural language.MIT