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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Garmin Connect China MCP ServerShow my latest running activity details"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Garmin Connect China MCP Server
佳明中国大陆版 (garmin.cn) 的 MCP 数据读取服务。
通过 MCP (Model Context Protocol) 协议,让 AI 助手可以直接读取你的佳明健康和运动数据。
功能
类别 | 工具 | 说明 |
🏃 运动 |
| 运动列表 |
| 按日期查运动 | |
| 运动详情 | |
| 运动详细数据 | |
| 每公里配速 | |
| 心率区间 | |
| 运动类型列表 | |
| 最近一次运动 | |
📊 训练 |
| 训练状态/VO2 Max |
| 训练准备度 | |
👤 资料 |
| 用户信息 |
| 设备列表 | |
| 主训练设备 | |
💤 睡眠 |
| 睡眠数据/得分/阶段 |
❤️ HRV |
| 心率变异性 |
😰 压力 |
| 全天压力数据 |
🩸 血氧 |
| SpO2 数据 |
🫁 呼吸 |
| 呼吸频率 |
🏅 其他 |
| 已获徽章 |
| 装备数据 |
Related MCP server: HealthKit 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xinyuxinyuxintaihaohao/garmin-cn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server