Labsco
charlesfrisbee logo

Garmin Workouts MCP

โ˜… 2

from charlesfrisbee

Create Garmin Connect workouts using natural language.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Garmin Workouts MCP

Create Garmin Connect workouts using natural language descriptions. Built as an MCP (Model Context Protocol) server.

Example Workouts

  • Easy run: "30 minute easy run in zone 2"
  • Intervals: "5x400m at 5k pace with 60 second rest"
  • Threshold: "10 min warmup, 20 min tempo in zone 4, 10 min cooldown"
  • Sprints: "Warmup 10 min, then 8x15 second sprints with 3 min recovery"
  • Complex: "Pyramid workout: 1-2-3-4-3-2-1 minutes hard with equal recovery"

Features

  • ๐Ÿง  Natural language processing - Describe workouts in plain English
  • ๐Ÿ” Secure authentication - Token-based auth with automatic renewal
  • ๐Ÿƒ Multi-sport support - Running, cycling, and swimming workouts
  • โšก Direct Garmin integration - Creates workouts instantly in Garmin Connect
  • ๐Ÿ’พ Smart token handling - Automatic re-authentication when tokens expire

How It Works

  1. Converts your natural language workout description into structured data
  2. Translates to Garmin's workout API format with proper zones and targets
  3. Creates the workout directly in your Garmin Connect account
  4. Syncs automatically to your Garmin device

Made for Claude Code and Claude Desktop.

This project is an unofficial third-party tool that interacts with Garmin Connect's web interface. It is not affiliated with, endorsed by, or sponsored by Garmin Ltd. or any of its affiliates.

  • Use at your own risk - This tool may stop working if Garmin changes their API or terms of service
  • Not for commercial use - This is a personal project intended for individual use only
  • No warranty - The software is provided "as is" without any guarantees
  • Respect Garmin's terms - Users are responsible for complying with Garmin Connect's terms of service
  • Data responsibility - You are responsible for the workouts created and any data shared with Garmin

If you represent Garmin and have concerns about this project, please reach out through GitHub issues.

Development

Token Storage

Auth tokens are stored securely in:

  • Location: ~/.config/garmin-workouts-mcp/auth.json
  • Permissions: 600 (user read/write only)
  • Expiry: ~5 minutes from login
  • Content: JWT tokens and cookies for Garmin Connect API

Local Development

# Clone and install
git clone https://github.com/charlesfrisbee/garmin-workouts-mcp.git
cd garmin-workouts-mcp
pnpm install

# Build and test locally
pnpm run build
pnpm run pack

# Add to Claude Code for testing
claude mcp add garmin-workouts-mcp ./garmin-workouts-mcp-local.tgz

Requirements

  • Node.js 16+
  • pnpm
  • Claude Code (for local testing)
  • Garmin Connect account