Garmin Workout Pipeline
Allows building, previewing, uploading, and managing workouts on Garmin Connect, including running, cycling, and strength/cardio workouts with zones, exercises, and scheduling.
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 Workout Pipeline Create a 5x1km threshold workout with 2min recoveries"
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 Workout Pipeline
Stop clicking through Garmin Connect's UI to build every workout. Define workouts in YAML, or just tell Claude what you want in plain English — then push them straight to your watch.
Garmin Workout Pipeline is an open-source CLI and MCP server that compiles structured workout definitions into Garmin Connect API payloads. It supports running, cycling, and strength/cardio workouts with pace/HR/power zones, 84+ exercises, circuits, and weekly scheduling.
"Build me a Hyrox sim with 8 stations, 1km runs between each, and a 10-minute warmup."
That's a real prompt. The MCP server turns it into a fully structured Garmin workout and uploads it to your watch.
Why This Exists
If you've ever built a complex interval workout in Garmin Connect, you know the pain: endless dropdowns, no copy-paste, no version control, and good luck reusing that Hyrox sim you spent 15 minutes clicking together.
This tool lets you:
Write workouts as code — YAML files you can version, share, and iterate on
Build workouts conversationally — tell Claude what you want via MCP, and it handles the structure
Push to Garmin Connect in one command — from terminal to watch in seconds
Manage your training library — list, schedule, and delete workouts programmatically
Related MCP server: garmin-mcp
Quickstart
# Install
pip install garmin-workout-pipeline
# Set credentials
export GARMIN_EMAIL=you@example.com
export GARMIN_PASSWORD=your-password
# Push a workout to your watch
gwp push workouts/templates/hyrox-sim.yaml --zones workouts/zones.yamlThat's it. Workout is on Garmin Connect, ready to sync to your device.
Two Ways to Build Workouts
1. YAML (version-controlled, repeatable)
name: "Threshold Intervals"
type: running
steps:
- warmup: { duration: "10:00", zone: easy }
- run: { distance: "1km", pace: { min: "6:25/mi", max: "6:40/mi" } }
- recovery: { duration: "2:00" }
- run: { duration: "5:00", zone: threshold }
- cooldown: { duration: lap, zone: easy }2. Natural Language via MCP (conversational, fast)
Connect the MCP server to Claude Desktop or Claude Code, then just describe what you want:
"Create a 5x1km workout at threshold pace with 2-minute recoveries, 10-minute warmup and cooldown"
Claude builds the structured workout, previews it, and uploads it — all through conversation.
MCP Server Setup
24 tools for full workout lifecycle management through any MCP-compatible client.
Claude Code
claude mcp add garmin-workouts \
-e GARMIN_EMAIL=your-email@example.com \
-e GARMIN_PASSWORD=your-password \
-- garmin-mcpClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"garmin-workouts": {
"command": "garmin-mcp",
"env": {
"GARMIN_EMAIL": "your-email@example.com",
"GARMIN_PASSWORD": "your-password"
}
}
}
}Category | Tools |
Workout |
|
Steps |
|
Circuits |
|
Garmin Connect |
|
Reference |
|
Templates |
|
CLI Reference
gwp push <file> --zones <zones.yaml> # Upload workout to Garmin Connect
gwp push <file> --zones <zones.yaml> --schedule 2026-04-29 # Upload + schedule
gwp push <file> --zones <zones.yaml> --dry-run # Preview JSON without uploading
gwp validate <file> --zones <zones.yaml> # Compile and validate only
gwp list # List workouts on Garmin Connect
gwp delete <workout-id> # Delete a workout
gwp zones --zones <zones.yaml> # Show resolved zone valuesWorkout Types
Running
Pace targets, HR zones, distance and time-based intervals.
name: "Speed 400s"
type: running
steps:
- warmup: { duration: "10:00", zone: easy }
- run: { distance: "400m", pace: { min: "5:30/mi", max: "5:45/mi" } }
- recovery: { duration: "1:30" }
- cooldown: { duration: "10:00", zone: easy }Strength / Cardio
84 exercises with rep counts, weights, and circuit support.
name: "Hyrox Strength"
type: strength
steps:
- warmup: { duration: lap, exercise: rowing_machine }
- circuit:
iterations: 4
steps:
- exercise: { exercise: wall_ball, reps: 20, weight: 13 }
- exercise: { exercise: weighted_lunge, reps: 20, weight: 45 }
- rest: { duration: "2:00" }
- cooldown: { duration: lap, exercise: rowing_machine }Cycling
Power zones, FTP percentages, and duration-based blocks.
name: "Sweet Spot"
type: cycling
steps:
- warmup: { duration: "10:00", zone: z2 }
- bike: { duration: "20:00", zone: threshold }
- cooldown: { duration: "5:00" }Step Types Reference
Type | End Conditions | Targets |
| duration, lap | zone, exercise |
| duration, lap | zone, exercise |
| duration, distance, lap | zone, pace, hr |
| duration, distance, lap | zone, power, power_pct |
| duration, distance, lap | zone |
| duration, reps, lap | — |
| duration | — |
| iterations | nested steps |
Zones
Define your training zones once in workouts/zones.yaml with HR, pace, and power targets per sport. The compiler resolves zone names like threshold, z2, and easy to Garmin API target values.
Installation Options
From PyPI (recommended)
pip install garmin-workout-pipelineFrom GitHub
uv tool install git+https://github.com/k-schmidt/Garmin-Workout-Pipeline.gitFrom Source
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/k-schmidt/Garmin-Workout-Pipeline.git
cd Garmin-Workout-Pipeline
uv syncProject Structure
garmin_pipeline/
mcp_server.py # MCP server for Claude Desktop/Code
cli.py # Click CLI (gwp command)
compiler.py # Workout model → Garmin API JSON
exercises.py # Exercise name → Garmin category/name registry
loader.py # YAML parser with !include support
models.py # Pydantic workout models
sync.py # Garmin Connect auth and upload
zones.py # Zone resolution (HR, pace, power)
workouts/
zones.yaml # Training zone definitions
templates/ # Workout YAML files
tests/
fixtures/ # Golden reference JSON
test_compiler.py # Compiler golden tests
test_loader.py # YAML loading and !include
test_models.py # Step parsing
test_zones.py # Zone resolutionDevelopment
uv run pytest -v # run tests
uv run ruff check . --fix # lint
uv run ruff format . # formatContributing
Contributions welcome. Open an issue or submit a PR — whether it's a new exercise, a workout template, a bug fix, or documentation improvement.
License
Available Tools
24 toolsadd_bikeA
Add a cycling interval step.
End condition: set exactly one of duration, distance, or neither (lap button). Target: set zone OR power range OR power_pct range OR none.
Args: duration: Duration as "M:SS" or "lap" for lap button. distance: Distance like "10km", "20mi". zone: Training zone name (e.g. "threshold", "z3"). power_min: Lower power in watts. Must pair with power_max. power_max: Upper power in watts. Must pair with power_min. power_pct_min: Lower power as %FTP. Must pair with power_pct_max. power_pct_max: Upper power as %FTP. Must pair with power_pct_min.
Inputs: duration, distance, zone, power_min, +3 more. Returns: result
add_circuitA
Open a new circuit/repeat group. Steps added after this go inside the circuit.
Call end_circuit when done adding steps to close it.
Args: iterations: Number of times to repeat the circuit. skip_last_rest: If true, skip the last rest step in the circuit.
Inputs: iterations (required), skip_last_rest. Returns: result
add_cooldownA
Add a cooldown step.
Args: duration: Duration as "M:SS" or "lap" for lap button. Default: lap. zone: Training zone name (e.g. "easy", "z1"). exercise: Exercise name for strength cooldowns (e.g. "rowing_machine"). notes: Notes to display on the watch.
Inputs: duration, zone, exercise, notes. Returns: result
add_exerciseA
Add a strength/cardio exercise step.
End condition: set reps OR duration OR neither (lap button).
Args: exercise: Exercise name (e.g. "wall_ball", "kettlebell_swing", "burpee"). Use list_exercises to see all available exercises. duration: Duration as "M:SS" or "lap" for lap button. reps: Number of repetitions. weight: Weight in lbs. notes: Notes to display on the watch (e.g. distance for carries).
Inputs: exercise (required), duration, reps, weight, +1 more. Returns: result
add_recoveryA
Add a recovery step between intervals.
Args: duration: Duration as "M:SS" or "lap" for lap button. Default: lap. distance: Distance like "200m" for recovery jogs. zone: Training zone name (e.g. "z1", "easy").
Inputs: duration, distance, zone. Returns: result
add_restB
Add a rest step.
Args: duration: Rest duration as "M:SS" (e.g. "2:00" for 2 minutes).
Inputs: duration (required). Returns: result
add_runA
Add a running interval step.
End condition: set exactly one of duration, distance, or neither (lap button). Target: set zone OR pace range OR HR range OR none.
Args: duration: Duration as "M:SS" or "lap" for lap button. distance: Distance like "1km", "400m", "1mi". zone: Training zone name (e.g. "threshold", "tempo", "z4"). pace_min: Faster pace bound (e.g. "6:25/mi"). Must pair with pace_max. pace_max: Slower pace bound (e.g. "6:40/mi"). Must pair with pace_min. hr_min: Lower HR bound in bpm. Must pair with hr_max. hr_max: Upper HR bound in bpm. Must pair with hr_min. notes: Notes to display on the watch.
Inputs: duration, distance, zone, pace_min, +4 more. Returns: result
add_warmupB
Add a warmup step.
Args: duration: Duration as "M:SS" or "lap" for lap button. Default: lap. zone: Training zone name (e.g. "easy", "z2"). exercise: Exercise name for strength warmups (e.g. "rowing_machine"). notes: Notes to display on the watch.
Inputs: duration, zone, exercise, notes. Returns: result
clear_workoutA
Clear the current workout and start fresh.
Inputs: no named parameters. Returns: result
create_workoutA
Create a new workout.
Args: name: Workout name (e.g. "Hyrox Race Sim") type: Sport type — one of: running, cycling, strength, swimming, walking, hiking
Inputs: name (required), type (required). Returns: result
delete_workoutA
Delete a workout from Garmin Connect.
Args: workout_id: Garmin workout ID (from list_workouts).
Inputs: workout_id (required). Returns: result
end_circuitA
Close the current circuit. Subsequent steps will be added at the parent level.
Inputs: no named parameters. Returns: result
get_workoutB
Get the current workout summary.
Inputs: no named parameters. Returns: result
get_zonesA
Show available training zones from zones.yaml.
Args: sport_type: Filter by sport — "running" or "cycling". Shows all if omitted.
Inputs: sport_type. Returns: result
list_exercisesB
List available exercises for strength/cardio workouts.
Args: filter: Optional filter string to search by name or category.
Inputs: filter. Returns: result
list_templatesA
List available YAML workout templates in workouts/templates/.
Inputs: no named parameters. Returns: result
list_workoutsB
List all workouts on Garmin Connect.
Inputs: no named parameters. Returns: result
load_templateA
Load a workout from a YAML template file.
Args: path: Path to the YAML file (e.g. "workouts/templates/hyrox-sim.yaml").
Inputs: path (required). Returns: result
preview_uploadA
Preview the workout that would be uploaded to Garmin Connect.
Always call this before upload_workout so the user can review and confirm.
Inputs: no named parameters. Returns: result
remove_stepA
Remove a step by its 1-based index from the top-level step list.
Args: index: 1-based step index (as shown in get_workout output).
Inputs: index (required). Returns: result
save_yamlA
Save the current workout as a YAML template file.
Args: path: File path to save to. Defaults to workouts/templates/.yaml.
Inputs: path. Returns: result
set_workout_nameC
Rename the current workout.
Args: name: New workout name
Inputs: name (required). Returns: result
upload_workoutA
Upload the current workout to Garmin Connect.
IMPORTANT: Always call preview_upload first and get explicit user confirmation before calling this tool. Replaces any existing workout with the same name.
Args: confirm: Must be true. Confirms the user has approved the upload. schedule_date: Optional date to schedule the workout (YYYY-MM-DD).
Inputs: confirm (required), schedule_date. Returns: result
validate_workoutB
Compile the current workout and return the Garmin API JSON for inspection.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Each tool targets a distinct action (add_*, clear_workout, etc.) with no overlap. Step types are clearly differentiated by parameters and purpose.
All tools follow a consistent verb_noun snake_case pattern (e.g., add_bike, list_workouts, upload_workout) with no naming conflicts.
24 tools are slightly above the optimal range but justified by the complexity of workout creation (multiple step types, templates, upload). Not excessive.
Core CRUD for workouts and steps is present, but lacks editing existing Garmin workouts (insert step, update step) and explicit step types for sports like swimming or hiking.
Maintenance
Related MCP Connectors
Create structured workouts and push them to Apple Watch or Garmin.
AI coach for Garmin: builds training plans and structured workouts, synced straight to your watch.
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
Convert, validate, and inspect workout files (FIT, TCX, ZWO, Garmin Connect) for AI agents.
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 gradedqualityBmaintenanceEnables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans directly on Garmin Connect, syncing to your watch with guided prompts.1MIT
- AlicenseAqualityDmaintenanceBrings Garmin training data into Claude via Intervals.icu, enabling querying of activities, wellness, and planned workouts, as well as creating structured workouts that sync back to the Garmin watch.91MIT
- AlicenseNot gradedqualityDmaintenanceEnables listing, creating, editing, deleting, and scheduling structured workouts (run, cycle, swim, triathlon) on Garmin Connect via natural language.MIT