
用于访问Garmin数据的MCP服务器
概览
该模型上下文协议(MCP)服务器连接到Garmin Connect,并将你的健身和健康数据暴露给Claude及其他兼容MCP的客户端。 Garmin 的 API 是通过非常棒的 python-garminconnect 库访问的。 - 列出支持分页的近期活动 - 获取详细活动信息 - 编辑活动名称、类型、描述/笔记、事件类型、感知努力(RPE)和感觉 - 访问健康指标(步数、心率、睡眠、压力、呼吸)- 查看身体成分数据 - 跟踪训练状态和准备情况 - 访问骑行FTP和乳酸阈值指标 - 管理装备和装备 - 访问训练和训练计划 - 检查详细的锻炼步数结构,包括重复组和游泳配速目标 - 每周健康汇总(步数、压力、强度分钟数) - 高级骑行分析:力量区间、FIT文件分析、DI2电子换班智能 - 训练负荷趋势(CTL/ATL/TSB)、HRV 趋势、VO2最大趋势、呼吸率趋势-...
概述(AI 翻译)
该模型上下文协议(MCP)服务器连接到Garmin Connect,并将你的健身和健康数据暴露给Claude及其他兼容MCP的客户端。
Garmin 的 API 是通过非常棒的 python-garminconnect 库访问的。
特色
- 列出支持分页的最新活动
- 获取详细的活动信息
- 编辑活动:名称、类型、描述/笔记、事件类型、感知努力(RPE)、感觉和力量训练集
- 获取健康指标(步数、心率、睡眠、压力、呼吸)
- 查看车体组成数据
- 跟踪训练状态和战备情况
- 获取循环FTP和乳酸阈值指标
- 管理设备和设备,包括[[T0]返回的自由文本笔记]
- 获取锻炼和训练计划
- 检查详细的锻炼步骤结构,包括重复组和游泳配速目标
- 每周健康总量(步数、压力、强度分钟数)
- 高级骑行分析:动力区、FIT文件分析、DI2电子换挡智能
- 训练负荷趋势(CTL/ATL/TSB)、HRV趋势、VO2最大值趋势、呼吸率趋势
- 动力持续时间曲线、带VAM的爬升检测、心跳漂移(有氧脱钩)、W/kg计算
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Garmin MCP Server
This Model Context Protocol (MCP) server connects to Garmin Connect and exposes your fitness and health data to Claude and other MCP-compatible clients.
Garmin’s API is accessed via the awesome python-garminconnect library.
Features
- List recent activities with pagination support
- Get detailed activity information
- Edit activities: name, type, description/notes, event type, perceived effort (RPE), feel, and strength exercise sets
- Access health metrics (steps, heart rate, sleep, stress, respiration)
- View body composition data
- Track training status and readiness
- Access cycling FTP and lactate threshold metrics
- Manage gear and equipment, including free-text notes returned by
get_gear - Access workouts and training plans
- Inspect detailed workout step structures, including repeat groups and swim pace targets
- Weekly health aggregates (steps, stress, intensity minutes)
- Advanced cycling analytics: power zones, FIT file analysis, DI2 electronic shift intelligence
- Training load trend (CTL/ATL/TSB), HRV trend, VO2 max trend, respiration rate trend
- Power Duration Curve, climb detection with VAM, cardiac drift (aerobic decoupling), W/kg calculations
Tool Coverage
This MCP server implements 110+ tools covering ~90% of the python-garminconnect library (v0.3.2):
- ✅ Activity Management (21 tools) - includes write tools for type, description, event type, perceived effort, feel, and exercise sets
- ✅ Health & Wellness (34 tools) - includes custom lightweight summary tools
- ✅ Training & Performance (13 tools) - includes CTL/ATL/TSB, HRV, VO2 max, and respiration trends
- ✅ Workouts (8 tools)
- ✅ Devices (8 tools) - includes sending a workout to a device
- ✅ Gear Management (5 tools)
- ✅ Weight Tracking (5 tools)
- ✅ Challenges & Badges (10 tools)
- ✅ Nutrition (9 tools) - food logs, meals, custom foods, food logging, and multi-day intake summaries
- ✅ Women’s Health (3 tools)
- ✅ User Profile (3 tools)
- ✅ High-Level Workout Builders (4 tools) - create and schedule workouts without writing JSON
- ✅ Courses (5 tools) - list / get details / upload GPX as course / download GPX / delete course
- ✅ Activity Analysis (2 tools) - FIT file parsing, Power Duration Curve; requires power meter and/or Di2
- ✅ Activity File Downloads (2 tools) - download activity files in FIT, GPX, TCX, or CSV format
Note: Activity Analysis tools require a compatible power meter (e.g., Garmin Rally, Favero Assioma, PowerTap P1) and/or Shimano Di2 / SRAM eTap electronic shifting. The
fitparsedependency is installed automatically.
Gear Notes
Each item in the gear array returned by get_gear includes a notes field
安装
uvx --python 3.12 --from git+https://github.com/Taxuspt/garmin_mcp garmin-mcp配置
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": [
"--python",
"3.12",
"--from",
"git+https://github.com/Taxuspt/garmin_mcp",
"garmin-mcp"
]
}
}
}