garmin-china
Provides tools for accessing Garmin Connect China data, including training activities, recovery metrics, weather/heat stress assessment, and health aggregation, enabling AI agents to retrieve and analyze fitness and health information.
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-chinawhat's my training readiness and today's weather for morning run?"
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 China MCP
Garmin Connect China Region MCP Server — 55 tools covering training data, recovery metrics, weather heat stress assessment, and health aggregation.
Compatible with WorkBuddy, Claude Desktop, and any client supporting MCP (Model Context Protocol).
Installation
pip install garmin-chinaOr use uv (recommended):
uv pip install garmin-chinaRelated MCP server: Garmin Connect China MCP Server
Authentication
On first use, log in to Garmin Connect China to obtain a token:
# PowerShell
$env:GARMIN_EMAIL='你的邮箱@qq.com'
$env:GARMIN_PASSWORD='你的佳明密码'
garmin-china-auth
# Bash
export GARMIN_EMAIL='你的邮箱@qq.com'
export GARMIN_PASSWORD='你的佳明密码'
garmin-china-authToken is saved to ~/.garmin-china/tokens/. Override the path with the GARMIN_TOKEN_DIR environment variable.
⚠️ Run authentication in a normal-privilege terminal. An admin terminal will set the token file owner to Administrators, making it unreadable by normal processes.
Configure MCP Client
WorkBuddy
Edit ~/.workbuddy/mcp.json (note: not .mcp.json):
{
"mcpServers": {
"garmin": {
"command": "garmin-china",
"disabled": false
}
}
}Claude Desktop
Edit claude_desktop_config.json:
{
"mcpServers": {
"garmin": {
"command": "garmin-china"
}
}
}Using uvx (no installation required)
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-china"]
}
}
}After configuration, restart the client and trust the garmin server in the connector manager.
Tool List (55)
Training & Activities (20)
activities/last_activity/get_activity— Activity list and detailsactivity_splits/activity_split_summaries/activity_typed_splits— Split dataactivity_hr_in_timezones/get_activity_gear— Heart rate time zones and gearcount_activities/get_activity_types— Statistics and typesdownload_workout/get_workouts/get_workout_templates— Training plansget_activity_weather/get_activity_exercise_sets— Weather and exercise setssteps_data/daily_steps/get_weekly_steps— Stepsget_activities_fordate— Query activities by date
Recovery & Health (18)
user_summary/daily_summary— Daily summarysleep— Sleep analysishrv/hr_intraday/resting_hr— Heart rate variability and heart ratebody_battery— Body batterystress/get_weekly_stress— Stressspo2/respiration— Blood oxygen and respirationhydration— Hydrationweight— Weighttraining_status/training_readiness— Training status and readinessvo2max/race_predictions— VO2 max and race predictionsget_goals/personal_record— Goals and personal recordsendurance_score/hill_score/lactate_threshold/get_fitness_age— Fitness metrics
Weekly Reports & Trends (10)
weekly_health/stats_trend/progress_summary— Weekly reports and trendsweekly_intensity_minutes— Weekly intensity minutesuser_summary/garmin_weekly_health— Health aggregation
Weather & Heat Stress (7)
weather_now— Real-time weather + running heat stress assessment + pace degradationweather_forecast— Hourly forecastweather_at— Historical conditions at a specified timeweather_log— Weather log archive (24-hour retrospective)weather_pace— Pace heat correction calculatorgarmin_run_conditions— Combined running and climate evaluation (including equivalent pace)garmin_weekly_health— Weekly health aggregation
Weather Log Archive (Optional)
Official hourly observations only go back 24 hours. Register a Windows scheduled task for automatic archiving:
garmin-china-weather --install # 注册(每 6 小时归档一次)
garmin-china-weather --uninstall # 卸载Logs are saved to ~/.garmin-china/weather-log/.
Self-Check
garmin-china-selftest # 检查协议与工具注册
garmin-china-selftest --call # 额外调用真实数据验证Red Lines
Do not upgrade garminconnect to 0.3.x — All China region DI tokens will fail. Locked at
0.2.40.Authentication must use a normal-privilege terminal — An admin terminal will cause token file permission issues.
Only supports Garmin China region (garmin.cn) — Not compatible with international Garmin Connect.
Tech Stack
Python ≥ 3.11
garminconnect 0.2.40 + garth 0.6.3 (OAuth authentication)
mcp ≥ 1.29.0 (Model Context Protocol)
Weather data source: China Meteorological Administration Public Weather Service Center (weather.com.cn)
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables AI assistants to read Garmin health and fitness data from the Chinese version (garmin.cn) via MCP protocol.3MIT
- Alicense-qualityCmaintenanceExposes personal Garmin wellness data through MCP tools for accessing summary, sleep, HRV, heart rate, stress, body battery, and historical data.MIT
- Flicense-qualityAmaintenanceEnables AI assistants to retrieve and analyze Garmin Connect health data, including daily summaries, sleep, HRV, workouts, and raw FIT files, while also supporting SQL queries on the underlying database.1
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
63 tools for Apple Health, Fitbit, Oura & Health Connect data in Claude, ChatGPT, Grok & Mistral.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/flyyata/garmin-china'
If you have feedback or need assistance with the MCP directory API, please join our Discord server