Garmin Workouts MCP

Garmin Workouts MCP

Enables creation of Garmin Connect workouts using natural language descriptions. Supports multi-sport workouts with heart rate zones and automatic sync to Garmin devices.

Category
访问服务器

README

Garmin Workouts MCP

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

Installation

Claude Code (Recommended)

claude mcp add garmin-workouts-mcp npx garmin-workouts-mcp

Claude Desktop

Add to your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "garmin-workouts-mcp": {
      "command": "npx",
      "args": ["-y", "garmin-workouts-mcp"]
    }
  }
}

Then restart Claude Desktop.

Usage

⚠️ Important: Garmin's auth tokens expire after ~5 minutes. Plan multiple workouts and create them all in one session.

Quick Start

  1. Request a workout - Just describe what you want: "Create a 10 min warmup, 5x1km threshold intervals with 2 min rest, then 10 min cooldown"

  2. Authenticate when needed - A browser window will open to Garmin Connect for you to log in (happens when tokens expire ~every 5 minutes)

  3. Your workout appears - The tool creates it directly in your Garmin Connect account and provides a link to view it

  4. Available on device - The workout will be available in Garmin Connect and can be sent to your device from there

Your login is temporarily saved - Tokens are stored securely on your machine but expire after ~5 minutes, so you may need to re-authenticate between sessions.

Create multiple workouts in one session:

"Create these 3 workouts:
1. Easy 30 min run in zone 2
2. 5x1km threshold intervals with 2 min rest
3. 10x30 second sprints with 90 second recovery"

How It Works

  1. Request workouts - Describe what you want to create
  2. Auto-authentication - Browser opens for login when tokens expire
  3. Batch creation - Create multiple workouts in the same session

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

Current Limitations

⚠️ Heart rate/zone targets only - The tool currently supports heart rate zones (Zone 1-5) and specific BPM targets, but does not yet support pace-based targets (e.g., 4:00/km).

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.

Legal Disclaimer

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选