
eddmann/garmin-connect-mcp 是从 https://github.com/eddmann/garmin-connect-mcp. 导入的 MCP 服务器候选。
概览
eddmann/garmin-connect-mcp 是从 https://github.com/eddmann/garmin-connect-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
一款用于Garmin Connect集成的模型上下文协议(MCP)服务器。通过Claude及其他大型语言模型访问您的活动、健康数据、培训指标等。
概述
该MCP服务器提供22种工具,用于与您的Garmin Connect账户交互,分为8个类别:
- 活动(3个工具)- 查询活动并查看详细指标
- 分析(2个工具)- 比较活动并寻找相似的锻炼方法
- 健康与养生(4个工具)- 访问健康指标、睡眠、心率和活动数据
- 培训(3个工具)- 分析培训周期和绩效趋势
- 用户档案(1个工具)- 访问用户档案、统计数据和个人记录
- 挑战与目标(2个工具)——跟踪目标、个人纪录、徽章和挑战
- 设备与设备(2个工具)- 管理设备和设备
- 体重管理(2个工具)- 跟踪体重数据
- 其他(3工具)- 锻炼、手动数据录入、女性健康追踪
此外,服务器还提供:
- 3 MCP资源 - 运动员档案、训练准备度及日常健康,提供持续背景
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Garmin Connect MCP Server
A Model Context Protocol (MCP) server for Garmin Connect integration. Access your activities, health data, training metrics, and more through Claude and other LLMs.
Overview
This MCP server provides 22 tools to interact with your Garmin Connect account, organized into 8 categories:
- Activities (3 tools) - Query activities and view detailed metrics
- Analysis (2 tools) - Compare activities and find similar workouts
- Health & Wellness (4 tools) - Access health metrics, sleep, heart rate, and activity data
- Training (3 tools) - Analyze training periods and performance trends
- User Profile (1 tool) - Access profile, statistics, and personal records
- Challenges & Goals (2 tools) - Track goals, PRs, badges, and challenges
- Devices & Gear (2 tools) - Manage devices and equipment
- Weight Management (2 tools) - Track weight data
- Other (3 tools) - Workouts, manual data entry, women’s health tracking
Additionally, the server provides:
- 3 MCP Resources - Athlete profile, training readiness, and daily health for ongoing context
- 6 MCP Prompts - Templates for common queries (training analysis, sleep quality, readiness checks, activity analysis, run comparison, health summary)
Prerequisites
- uv (the package requires Python 3.12+, which uv can manage), OR
- Docker
Installation & Setup
How Authentication Works
- Credential Authentication - Run the setup command to save credentials
- MFA Support - If MFA is enabled, the setup command prompts for your code
- Token Storage - OAuth tokens saved to
~/.garminconnect/and automatically refreshed - Persistence - Tokens persist across runs (UV on host, Docker requires volume mount)
Option 1: Using uvx
uvx garmin-connect-mcp auth
This will prompt for your credentials, complete Garmin authentication, and save OAuth tokens
for the MCP server to reuse. It writes credentials to ~/.garminconnect.env by default
and saves OAuth tokens under ~/.garminconnect/.
If you prefer manual configuration, create ~/.garminconnect.env yourself:
[email protected]
GARMIN_PASSWORD=your-password
Option 2: Using Docker
# Pull the image
docker pull ghcr.io/eddmann/garmin-connect-mcp:latest
Then configure credentials using one of these methods:
Interactive Setup
# Create the env file first (Docker will create it as a directory if it doesn't exist)
touch garmin-connect-mcp.env
# Run the setup script and persist generated tokens
docker run -it --rm \
安装
uvx garmin-connect-mcp配置
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-connect-mcp"]
}
}
}