garmin-cn-mcp
Garmin Connect China MCP
中国リージョンのGarmin Connectアカウント向けの、ローカルで読み取り専用のMCPサーバーです。すべてのGarminクライアントはgarmin.cnにハードロックされています。API読み取りはhttps://connectapi.garmin.cnと、対応する中国のSSO/DI認証ホストに送信されます。
これはgarminconnectを通じてGarmin Connectの非公式コンシューマー向けWeb APIを使用しています。個人利用には適していますが、Garminがサービスを変更すると壊れる可能性があり、商用製品向けの承認されたGarmin Health APIの代替にはなりません。
要件
Python 3.12+
Garmin Connect 中国アカウント
Related MCP server: health-mcp
インストールと認証
このディレクトリから:
uv sync
uv run garmin-cn-auth認証コマンドは、メールアドレス、パスワード、MFAをターミナルで直接要求します。パスワードとMFAコードがMCP引数になることはありません。更新可能なトークンは、デフォルトで~/.config/garmin-cn-mcp/に所有者のみの権限で保存されます。
そのトークンディレクトリはパスワードのように扱ってください。コピーされた可能性がある場合は、削除してGarminのアカウント/セキュリティ設定からアカウントアクセスを無効にしてください。
Codex / ChatGPTデスクトップに追加
Codex CLIを使用する場合:
codex mcp add garmin-cn -- \
uv --directory /absolute/path/to/garmincn-mcp run garmin-cn-mcpまたは、これを~/.codex/config.tomlに追加します:
[mcp_servers.garmin-cn]
command = "uv"
args = [
"--directory",
"/absolute/path/to/garmincn-mcp",
"run",
"garmin-cn-mcp",
]
startup_timeout_sec = 20
tool_timeout_sec = 60ChatGPTデスクトップアプリ、Codex CLI、Codex IDE拡張機能は、同じCodexホストのMCP設定を共有します。ChatGPTデスクトップでは、設定 → MCPサーバー → サーバーを追加を開き、STDIOを選択して同じコマンドを使用することもできます。追加後、クライアントを再起動し、/mcpを使用してgarmin-cnが接続されていることを確認してください。
ChatGPT WebはローカルのCodex MCP設定を読み取りません。Webで使用するには、マルチユーザー認証とプライバシー設計を備えた別途ホストされたリモートMCP/プラグインが必要になります。これは意図的にこのプロジェクトの範囲外です。
ツール
get_connection_statusget_daily_summaryget_sleepget_heart_rateget_hrvget_training_readinessget_morning_training_readinessget_body_batterylist_activitiesget_activity_detailsget_activity_exercise_setsget_activity_supplementary
すべてのツールは読み取り専用で、非破壊的です。日付範囲は31日間、アクティビティリストは100件に制限されています。生のAPIパスやGarmin書き込みツールは公開されていません。
カスタムトークンストアパス
認証プロセスとMCPプロセスの両方にGARMIN_CN_TOKEN_STOREを設定するか、いずれかのコマンドに--token-storeを渡します。パスはGitリポジトリの外に置いてください。
開発チェック
uv sync --group dev
uv run pytest
uv run ruff check .
uv run mypyテストは偽のプロバイダーを使用し、Garminに接続することはありません。
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
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read Garmin health and fitness data from the Chinese version (garmin.cn) via MCP protocol.3MIT
- AlicenseNot gradedqualityCmaintenanceExposes personal Garmin wellness data through MCP tools for accessing summary, sleep, HRV, heart rate, stress, body battery, and historical data.MIT
- AlicenseBqualityBmaintenanceEnables retrieval of Garmin Connect data such as activities, sleep, heart rate, and body battery levels using unofficial API through MCP tools.4MIT
- FlicenseNot gradedqualityBmaintenanceProvides read access to Garmin Connect health and training data (sleep, heart rate, stress, HRV, activities) and supports writes like creating workouts, editing activities, and exporting files.
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
Connect your Oura Ring account securely in minutes. Enable authorized access to your sleep, activi…
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/love-wizard/garmincn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server