Garmin Connect China MCP Server
Provides tools for reading health and fitness data from Garmin Connect China (garmin.cn), including activities, sleep, HRV, stress, SpO2, respiration, training status, user profile, devices, badges, and gear.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Garmin Connect China MCP Server
佳明中国大陆版 (garmin.cn) 的 MCP 数据读取服务。
通过 MCP (Model Context Protocol) 协议,让 AI 助手可以直接读取你的佳明健康和运动数据。
功能
类别 | 工具 | 说明 |
🏃 运动 |
| 运动列表 |
| 按日期查运动 | |
| 运动详情 | |
| 运动详细数据 | |
| 每公里配速 | |
| 心率区间 | |
| 运动类型列表 | |
| 最近一次运动 | |
📊 训练 |
| 训练状态/VO2 Max |
| 训练准备度 | |
👤 资料 |
| 用户信息 |
| 设备列表 | |
| 主训练设备 | |
💤 睡眠 |
| 睡眠数据/得分/阶段 |
❤️ HRV |
| 心率变异性 |
😰 压力 |
| 全天压力数据 |
🩸 血氧 |
| SpO2 数据 |
🫁 呼吸 |
| 呼吸频率 |
🏅 其他 |
| 已获徽章 |
| 装备数据 |
Related MCP server: garmin-cn-mcp
为什么需要这个?
佳明中国版 (garmin.cn) 的 API 架构和国际版 (garmin.com) 完全不同:
国际版的
garminconnectPython 库不支持中国版中国版使用
/gc-api/服务端代理,而不是直接调connectapi.garmin.cn登录使用
sso.garmin.cn/mobile/api/login(移动端 API)需要
curl_cffi进行 Chrome TLS 指纹伪装来绕过 Cloudflare
安装
# 克隆仓库
git clone https://github.com/<your-username>/garmin-cn-mcp.git
cd garmin-cn-mcp
# 安装依赖
pip install -r requirements.txt配置
在你的 MCP 客户端配置中添加:
{
"mcpServers": {
"garmin-cn": {
"command": "python3",
"args": ["/path/to/garmin_cn_mcp.py"],
"env": {
"GARMIN_CN_EMAIL": "your-garmin-email@example.com",
"GARMIN_CN_PASSWORD": "your-password"
}
}
}
}Hermes Agent 配置
hermes mcp add garmin-cn -- python3 /path/to/garmin_cn_mcp.py然后在 ~/.hermes/.env 中添加:
GARMIN_CN_EMAIL=your-garmin-email@example.com
GARMIN_CN_PASSWORD=your-password使用示例
配置好后,AI 助手可以直接查询你的佳明数据:
"我昨天睡得怎么样?"
"最近一周的运动记录"
"今天的 HRV 和压力数据"
"我的训练状态和 VO2 Max"
技术细节
API 路径
数据类型 | API 路径 |
运动列表 |
|
运动详情 |
|
睡眠数据 |
|
HRV |
|
压力 |
|
血氧 |
|
呼吸 |
|
登录流程
POST
sso.garmin.cn/mobile/api/login→ 获取 service ticketGET
connect.garmin.cn/modern?ticket=...→ 获取 JWT_WEB cookie + CSRF token后续 API 调用通过
/gc-api/代理,携带 CSRF token
依赖
Python 3.10+
mcp (MCP SDK)
curl_cffi (Chrome TLS 指纹)
许可证
MIT License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Explore Garmin activity and health data with your AI assistant.
Connect your synced Apple Health data to compatible AI assistants through OAuth MCP. Ask about sleep, workouts, activity, heart rate and other Health metrics; explore summaries or selected samples, and check when your iPhone last synced. Send product feedback from your assistant through the MCP. Try: “How did I sleep this week?” “Summarize my recent workouts.” “When did my health data last sync?” Requires A Good Sign for iPhone, your chosen Health permissions, a completed sync and an active subscription for health-data answers. AI-client support and setup vary. Setup: https://agoodsign.app/setup MCP endpoint: https://api.healthgateway.app/mcp Privacy: https://api.healthgateway.app/privacy
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Garmin Connect fitness and health data, including activities, heart rate, sleep, and device information.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read Garmin Connect China health and fitness data, including activities, sleep, HRV, stress, SpO2, respiration, badges, and gear, via the Model Context Protocol.MIT
- AlicenseAqualityBmaintenanceEnables local, read-only access to Garmin Connect health and training data through MCP, letting assistants summarize recovery, sleep, activities, and more without uploading your data.27MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to access and query personal health data from Garmin Connect and Technogym mywellness through a unified MCP endpoint.1MIT