Garmin 训练计划 MCP 服务器 logo

Garmin 训练计划 MCP 服务器

Community
st3v

MCP server with tools to manage workouts on Garmin Connect

Publisherst3v
Repositorygarmin-workouts-mcp
LanguagePython
Forks
7
Stars
29
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Garmin 训练计划 MCP 服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    29 stars and 7 forks from the linked repository.

Garmin Workouts MCP Server

CI/CD Pipeline

An MCP server that allows you to create, list, and manage Garmin Connect workouts using natural language descriptions through MCP-compatible clients.

Features

  • Create workouts: Generate structured Garmin workouts from natural language descriptions using AI
  • List workouts: View all your existing workouts on Garmin Connect
  • Get workout details: Retrieve detailed information about specific workouts
  • Schedule workouts: Schedule workouts on specific dates in Garmin Connect
  • Delete workouts: Remove workouts from Garmin Connect
  • Activity management: List, view, and get weather data for completed activities
  • Calendar integration: View calendar data with workouts and activities
  • MCP Integration: Works with any MCP-compatible client (Claude Desktop, etc.)

Setup

  1. Install and run using uvx:
bash
uvx garmin-workouts-mcp
  1. Configure in your MCP client (e.g., Claude Desktop):

Add to your MCP client configuration:

json
{
  "mcpServers": {
    "garmin-workouts": {
      "command": "uvx",
      "args": ["garmin-workouts-mcp"],
      "env": { # See Authentication section for details
        "GARMIN_EMAIL": "your_email@example.com",
        "GARMIN_PASSWORD": "your_password"
      }
    }
  }
}

Authentication

The Garmin Workouts MCP Server authenticates with Garmin Connect using garth [https://github.com/matin/garth]. There are two primary ways to provide your Garmin credentials:

1. Using Environment Variables

You can set your Garmin Connect email and password as environment variables before starting the MCP server.

  • GARMIN_EMAIL: Your Garmin Connect email address.
  • GARMIN_PASSWORD: Your Garmin Connect password.

Example:

bash
export GARMIN_EMAIL="your_email@example.com"
export GARMIN_PASSWORD="your_password"
uvx garmin-workouts-mcp

2. Out-of-Band Authentication with garth

Alternatively, you can log in to Garmin Connect once using the garth library directly and save your authentication tokens to a directory, which the MCP server will then use for subsequent sessions. This method is useful if you prefer not to store your credentials as environment variables or as part of your MCP client configuration.

To log in out-of-band:

  1. Install garth:

    bash
    pip install garth
  2. Run the following Python script in your terminal:

    python
    import garth
    from getpass import getpass
    
    email = input("Enter email address: ")
    password = getpass("Enter password: ")
    # If there's MFA, you'll be prompted during the login
    garth.login(email, password)
    
    garth.save("~/.garth")

    Follow the prompts to enter your Garmin Connect email and password. Upon successful login, garth will save your authentication tokens to ~/.garth.

    The MCP server will automatically look for these saved tokens. If you wish to store them in a custom location, you can set the GARTH_HOME environment variable.

Usage

This server provides the following MCP tools that can be used through any MCP-compatible client:

Generate Workout Data Prompt

Use the generate_workout_data_prompt tool to create a prompt for an LLM to generate structured workout data:

generate_workout_data_prompt("10 min warmup, 5x(1km at 4:30 pace, 2min recovery), 10 min cooldown")

Upload Workout

Use the upload_workout tool to upload structured workout data to Garmin Connect:

upload_workout(workout_data_json)

Schedule Workout

Use the schedule_workout tool to schedule a workout on a specific date:

schedule_workout("workout_id_here", "2024-01-15")

Delete Workout

Use the delete_workout tool to remove a workout from Garmin Connect:

delete_workout("workout_id_here")

List Workouts

list_workouts()

Get Workout Details

get_workout("workout_id_here")

List Activities

Use the list_activities tool to view completed activities (runs, rides, swims, etc.) from Garmin Connect:

list_activities()

Optional parameters:

  • limit: Number of activities to return (default: 20)
  • start: Starting position for pagination (default: 0)
  • activityType: Filter by activity type (e.g., "running", "cycling", "swimming")
  • search: Search for activities containing specific text

Example with filters:

list_activities(limit=50, activityType="running", search="Marathon")

Get Activity Details

Use the get_activity tool to retrieve detailed information about a specific activity:

get_activity("activity_id_here")

Returns comprehensive activity data including distance, duration, pace, heart rate, and more.

Get Activity Weather

Use the get_activity_weather tool to get weather conditions during a specific activity:

get_activity_weather("activity_id_here")

Returns weather data including temperature, humidity, wind conditions, and weather descriptions.

Get Calendar Data

Use the get_calendar tool to view calendar data with workouts and activities:

get_calendar(2024, 7)  # Monthly view for July 2024
get_calendar(2024, 7, 15)  # Weekly view including July 15th

The tool supports various workout types:

  • Running: pace targets, distance/time based intervals
  • Cycling: power, cadence, speed targets
  • Swimming: time/distance based sets
  • Strength training: circuit-style workouts
  • General cardio: heart rate based training

Workout Description Examples

Creating New Workouts

  • "30min easy run at conversational pace"
  • "5km tempo run at 4:15 min/km pace"
  • "10 min warmup, 3x(20min at 280w, 5min at 150w), 10min cooldown"
  • "Swimming: 400m warmup, 8x(50m sprint, 30s rest), 400m cooldown"
  • "Strength circuit: 5x(30s pushups, 30s squats, 30s plank, 60s rest)"

Querying Activities

  • "Show me my last 10 running activities"
  • "Find all cycling activities from last month"
  • "What was the weather like during my morning run on July 4th?"
  • "Get details for my longest run this year"

Supported Activity Types

The list_activities tool supports filtering by the following activity types:

  • running, cycling, swimming, walking, hiking
  • fitness_equipment, multi_sport, yoga, diving
  • auto_racing, motorcycling, surfing, windsurfing
  • skiing variants: backcountry_skiing_snowboarding_ws, cross_country_skiing_ws, resort_skiing_snowboarding_ws, skate_skiing_ws
  • climbing variants: bouldering, indoor_climbing
  • specialized: breathwork, e_sport, safety
  • water_sports: offshore_grinding, onshore_grinding
  • other and winter_sports for general categorization

Environment Variables

  • GARMIN_EMAIL: Your Garmin Connect email address (optional)
  • GARMIN_PASSWORD: Your Garmin Connect password (optional)
  • GARTH_HOME: Custom location for Garmin credentials (optional, defaults to ~/.garth)

Credits

This project incorporates ideas and prompt designs inspired by openai-garmin-workout, which is licensed under the MIT License.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "st3v-garmin-workouts-mcp": {
      "command": "uvx",
      "args": [
        "garmin-workouts-mcp"
      ]
    }
  }
}

Use Garmin 训练计划 MCP 服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Garmin 训练计划 MCP 服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Garmin 训练计划 MCP 服务器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Garmin 训练计划 MCP 服务器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "st3v-garmin-workouts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-workouts-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Garmin 训练计划 MCP 服务器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Garmin 训练计划 MCP 服务器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Garmin 训练计划 MCP 服务器 to help me with this task?
Garmin 训练计划 MCP 服务器
Sure. I read it.
Here is what I found using Garmin 训练计划 MCP 服务器.

Frequently asked questions

What is the Garmin 训练计划 MCP 服务器 MCP server used for?

Garmin 训练计划 MCP 服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Garmin 训练计划 MCP 服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Garmin 训练计划 MCP 服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Garmin 训练计划 MCP 服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Garmin 训练计划 MCP 服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Garmin 训练计划 MCP 服务器 MCP to TypingMind?

Garmin 训练计划 MCP 服务器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Garmin 训练计划 MCP 服务器 MCP provide in TypingMind?

Garmin 训练计划 MCP 服务器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Garmin 训练计划 MCP 服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Garmin 训练计划 MCP 服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇