SuperAPIAI Directory

garmin-connect-workouts-mcp

github.com · AI developer platforms

Create structured Garmin Connect workouts from natural language: pace, HR, power and cadence targets, repeat blocks, swim strokes and pool lengths.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

Garmin Connect Workouts MCP is an MCP (Model Context Protocol) server whose goal is to convert natural-language workout descriptions into structured workouts in Garmin Connect. The user describes a workout in natural language in the calling model, the model builds a typed step-by-step workout, and the server then encodes it into Garmin's workout API format and creates it directly in the user's account.

Main capabilities:

  • Pace, heart rate, power, and cadence targets: Supports pace ranges, heart rate zones 1-5, explicit bpm ranges, cycling power, and cadence, all encoded based on Garmin's real workoutTargetType table.
  • Real repeat blocks: 5x1km generates a single repeat group rather than five repeated steps, so the watch shows an actual set counter.
  • Swim workouts: Supports per-step stroke (freestyle, backstroke, breaststroke, butterfly, drill, medley, or any stroke) and equipment (fins, kickboard, paddles, pull buoy, snorkel), as well as workout-level pool length (meters or yards).
  • Full workout lifecycle: Create, list, get, update, delete, and schedule workouts to the Garmin Connect calendar.
  • Structured input rather than text parsing: The server itself never parses free text; every duration and target is an explicit, unit-tagged field, so strings like "10 min" are not silently misinterpreted.

How to use: Add it to the configuration file: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Then restart Claude Desktop.

Authentication method: The Garmin Connect web client authenticates using session cookies plus a CSRF token, rather than a password grant that this server can store. Therefore, the first time a workout is created (or when the session expires): The server checks the stored session with a lightweight authenticated request. If the session is missing or rejected, run the authenticate_garmin tool. It opens a real browser window to connect.garmin.com, for the user to log in normally. After login is complete, the session is captured and stored in ~/.config/garmin-connect-workouts-mcp/auth.json with permissions 600 (owner read/write only). No passwords are stored—only the generated session cookie and CSRF token. Garmin sessions expire, so re-authentication may be needed between different sessions; the server automatically detects this and prompts when to run authenticate_garmin again. The login browser uses a persistent, isolated profile located at ~/.config/garmin-connect-workouts-mcp/browser-profile/ so that Garmin remembers the device across multiple logins—it never touches your personal browser profile.

Example usage: "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: The given pace is treated as the fast end of a range: Garmin stores pace as a range rather than a single point, so a standalone 4:00/km becomes a 4:00-4:10/km range, expanded 10 seconds toward the wide direction. If bothExplicitly specifying the fast end and slow end yields a narrower or different range. Tests validate the workout encoder (targets, durations, repeat nesting) against fixtures captured from Garmin's own web client, so payload structure regressions are caught before reaching a real account.

Limitations and notes: This is an unofficial third-party project, not affiliated with, endorsed by, or sponsored by Garmin Ltd. or any of its affiliates, and it communicates with Garmin Connect's web API by reverse-engineering the same requests issued by the official web client. If Garmin changes that API, it may stop working. Use at your own risk, and the user is responsible for the workouts and data sent to their account. Acknowledgments: Thanks to Charles Frisbee's garmin-workouts-mcp for the original idea of driving Garmin Connect workouts via MCP.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools