
MCP服务器,配备管理Garmin Connect锻炼工具
概览
一个MCP服务器,允许你通过兼容MCP的客户端,使用自然语言描述创建、列出和管理Garmin Connect锻炼项目。 - : 利用AI根据自然语言描述生成结构化的Garmin锻炼 - : 查看Garmin Connect上所有现有的锻炼 - : 检索特定锻炼的详细信息 - : 在Garmin Connect中安排特定日期的锻炼 - : 从Garmin Connect中移除锻炼 - : 列出、查看并获取已完成活动的天气数据 - : 查看包含锻炼和活动的日历数据 - : 支持任何兼容MCP的客户端(如Claude Desktop等) 2. 在你的MCP客户端(例如,Claude Desktop)中配置: Garmin Workouts MCP 服务器通过 garth [https://github.com/matin/garth]. 通过 Garmin Connect 进行认证。提供 Garmin 凭证主要有两种方式: 你可以在启动MCP服务器前,将Garmin Connect的邮箱和密码设置为环境变量。
概述(AI 翻译)
一个MCP服务器,允许你通过兼容MCP的客户端,使用自然语言描述创建、列出和管理Garmin Connect锻炼项目。
特色
- 创建锻炼:利用AI根据自然语言描述生成结构化的Garmin锻炼
- 列表锻炼:查看你在Garmin Connect上的所有现有锻炼
- 获取锻炼详情:获取特定锻炼的详细信息
- 安排锻炼:在Garmin Connect中安排特定日期的锻炼
- 删除锻炼内容:从Garmin Connect中移除锻炼内容
- 活动管理:列出、查看并获取已完成活动的天气数据
- 日历集成:查看包含锻炼和活动的日历数据
- MCP 集成:支持任何兼容 MCP 的客户端(如 Claude Desktop 等)
布置
-
安装并运行 UVX:
-
在你的MCP客户端(例如,Claude Desktop)中配置:
在你的MCP客户端配置中添加:
认证
Garmin Workouts MCP 服务器通过 garth [[[T1]与 Garmin Connect 进行认证。提供 Garmin 凭证主要有两种方式:
1.使用环境变量
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Garmin Workouts MCP Server
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
- Install and run using uvx:
uvx garmin-workouts-mcp
- Configure in your MCP client (e.g., Claude Desktop):
Add to your MCP client configuration:
{
"mcpServers": {
"garmin-workouts": {
"command": "uvx",
"args": ["garmin-workouts-mcp"],
"env": { # See Authentication section for details
"GARMIN_EMAIL": "[email protected]",
"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:
export GARMIN_EMAIL="[email protected]"
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:
- Install
garth:pip install garth - Run the following Python script in your terminal:
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")
安装
uvx garmin-workouts-mcp配置
{
"mcpServers": {
"garmin-workouts": {
"command": "uvx",
"args": ["garmin-workouts-mcp"],
"env": { # See Authentication section for details
"GARMIN_EMAIL": "[email protected]",
"GARMIN_PASSWORD": "your_password"
}
}
}
}