garmin-china
Garmin China MCP
Garmin Connect 中国版 MCP サーバー — 55 個のツール、トレーニングデータ、回復指標、天候熱ストレス評価、健康データ集約をカバー。
WorkBuddy、Claude Desktop など、MCP(Model Context Protocol)をサポートする任意のクライアントに対応。
インストール
pip install garmin-chinaまたは uv を使用(推奨):
uv pip install garmin-chinaRelated MCP server: Garmin Connect China MCP Server
認証
初回使用時は Garmin Connect 中国版にログインしてトークンを取得:
# PowerShell
$env:GARMIN_EMAIL='你的邮箱@qq.com'
$env:GARMIN_PASSWORD='你的佳明密码'
garmin-china-auth
# Bash
export GARMIN_EMAIL='你的邮箱@qq.com'
export GARMIN_PASSWORD='你的佳明密码'
garmin-china-authトークンは ~/.garmin-china/tokens/ に保存されます。GARMIN_TOKEN_DIR 環境変数でパスを上書き可能。
⚠️ 認証は必ず通常権限のターミナルで実行してください。 管理者ターミナルで実行するとトークンファイルの所有者が Administrators になり、通常プロセスが読み取れなくなります。
MCP クライアントの設定
WorkBuddy
~/.workbuddy/mcp.json を編集(.mcp.json ではないことに注意):
{
"mcpServers": {
"garmin": {
"command": "garmin-china",
"disabled": false
}
}
}Claude Desktop
claude_desktop_config.json を編集:
{
"mcpServers": {
"garmin": {
"command": "garmin-china"
}
}
}uvx を使用(インストール不要)
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["garmin-china"]
}
}
}設定後、クライアントを再起動し、コネクタ管理で garmin サーバーを信頼してください。
ツール一覧(55 個)
トレーニングとアクティビティ(20)
activities/last_activity/get_activity— アクティビティ一覧と詳細activity_splits/activity_split_summaries/activity_typed_splits— セグメントデータactivity_hr_in_timezones/get_activity_gear— 心拍数タイムゾーンと装備count_activities/get_activity_types— 統計とタイプdownload_workout/get_workouts/get_workout_templates— トレーニング計画get_activity_weather/get_activity_exercise_sets— 天気とセット数steps_data/daily_steps/get_weekly_steps— 歩数get_activities_fordate— 日付でアクティビティを検索
回復と健康(18)
user_summary/daily_summary— 日次サマリーsleep— 睡眠分析hrv/hr_intraday/resting_hr— 心拍変動と心拍数body_battery— ボディバッテリーstress/get_weekly_stress— ストレスspo2/respiration— 血中酸素と呼吸hydration— 水分補給weight— 体重training_status/training_readiness— トレーニング状態と準備vo2max/race_predictions— 最大酸素摂取量とレース予測get_goals/personal_record— 目標と自己記録endurance_score/hill_score/lactate_threshold/get_fitness_age— 体力指標
週報とトレンド(10)
weekly_health/stats_trend/progress_summary— 週報とトレンドweekly_intensity_minutes— 週間強度時間user_summary/garmin_weekly_health— 健康データ集約
天気と熱ストレス(7)
weather_now— リアルタイム天気 + ランニング熱ストレス評価 + ペース減衰weather_forecast— 時間ごとの予報weather_at— 指定時刻の過去実況weather_log— 気象ログアーカイブ(24時間遡及)weather_pace— ペース熱補正計算機garmin_run_conditions— ランニングと気候の統合評価(等価ペース含む)garmin_weekly_health— 週間健康データ集約
天気ログアーカイブ(オプション)
公式の時間ごとの実況は24時間しか遡れません。Windows タスクスケジューラを登録して自動アーカイブ:
garmin-china-weather --install # 注册(每 6 小时归档一次)
garmin-china-weather --uninstall # 卸载ログは ~/.garmin-china/weather-log/ に保存されます。
自己チェック
garmin-china-selftest # 检查协议与工具注册
garmin-china-selftest --call # 额外调用真实数据验证注意事項
garminconnect を 0.3.x にアップグレードしないでください — 中国版の DI トークンがすべて失敗します。
0.2.40に固定されています。認証は通常権限のターミナルで行ってください — 管理者ターミナルではトークンファイルの権限問題が発生します。
Garmin 中国版(garmin.cn)のみ対応 — 国際版 Garmin Connect では使用できません。
技術スタック
Python ≥ 3.11
garminconnect 0.2.40 + garth 0.6.3(OAuth 認証)
mcp ≥ 1.29.0(Model Context Protocol)
天気データソース:中国気象局公共気象サービスセンター(weather.com.cn)
ライセンス
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