Medplum MCP
Securely access and manage FHIR healthcare data stored in Medplum.
Unofficial read-only Garmin Connect data: sleep, HRV, heart rate, stress, recovery analysis.
作者による原文
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
Garmin Connect (unofficial) をインストールして。https://mcp.popnx.com/i/sasha-sup-garmin-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
Garmin Connect (unofficial) のキーが必要です(提供元のサイトで作成) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
Garmin Connect (unofficial) を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Garmin Connect (unofficial) を使っていると言うか、回答に Garmin Connect (unofficial) のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GARMIN_TZ IANA タイムゾーン(例:Europe/Berlin)(既定値:コンテナー内の UTC) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Garmin Connect (unofficial) につなげません
Garmin Connect (unofficial) はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · Garmin Connect (unofficial) につなげるアプリを使う
B · クリニック・健康 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
Garmin Connect (unofficial) のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Garmin Connect (unofficial) を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user garmin --env GARMIN_API_KEY=your-value -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GARMIN_API_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Garmin Connect (unofficial) のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user garmin --env GARMIN_API_KEY=your-value -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1Enter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Garmin Connect (unofficial) が一覧にあり、接続済みと表示されれば OK です
Garmin Connect (unofficial) を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Garmin Connect (unofficial) を使っていると言うか、回答に Garmin Connect (unofficial) のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GARMIN_TZ IANA タイムゾーン(例:Europe/Berlin)(既定値:コンテナー内の UTC) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
Garmin Connect (unofficial) のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Garmin Connect (unofficial) を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "garmin": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GARMIN_API_KEY", "ghcr.io/sasha-sup/garmin-mcp:0.1.1" ], "env": { "GARMIN_API_KEY": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GARMIN_API_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Garmin Connect (unofficial) のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Garmin Connect (unofficial) の設定で GARMIN_API_KEY が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Garmin Connect (unofficial) を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Garmin Connect (unofficial) を使っていると言うか、回答に Garmin Connect (unofficial) のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GARMIN_TZ IANA タイムゾーン(例:Europe/Berlin)(既定値:コンテナー内の UTC) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
Garmin Connect (unofficial) のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Garmin Connect (unofficial) を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "garmin": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GARMIN_API_KEY", "ghcr.io/sasha-sup/garmin-mcp:0.1.1" ], "env": { "GARMIN_API_KEY": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) GARMIN_API_KEY は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Garmin Connect (unofficial) のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Garmin Connect (unofficial) の設定で GARMIN_API_KEY が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Garmin Connect (unofficial) を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Garmin Connect (unofficial) を使っていると言うか、回答に Garmin Connect (unofficial) のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
GARMIN_TZ IANA タイムゾーン(例:Europe/Berlin)(既定値:コンテナー内の UTC) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Claude Code
claude mcp add --scope user garmin --env GARMIN_API_KEY=your-value -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"garmin": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GARMIN_API_KEY",
"ghcr.io/sasha-sup/garmin-mcp:0.1.1"
],
"env": {
"GARMIN_API_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"garmin": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GARMIN_API_KEY",
"ghcr.io/sasha-sup/garmin-mcp:0.1.1"
],
"env": {
"GARMIN_API_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"garmin": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GARMIN_API_KEY",
"ghcr.io/sasha-sup/garmin-mcp:0.1.1"
],
"env": {
"GARMIN_API_KEY": "your-value"
}
}
}
}GARMIN_API_KEY 秘密 必須 envGARMIN_TZ env説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月20日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント sasha-sup で確認済みです
コードの最終更新:今日
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/sasha-sup-garmin-mcp)質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:GARMIN_API_KEY
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は今日、最新バージョン(0.1.1)がレジストリに届いたのは8 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDocker, MCPBも必要です。
同じカテゴリには:Medplum MCP, Mirobody, Codescene MCP Server, Marrow, WHOOP — MissingMCP
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Securely access and manage FHIR healthcare data stored in Medplum.
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
An MCP server that provides CodeScene Code Health analysis tools.
Marrow Health: your Apple Health data over MCP, from the free iOS app. Reads, and writes on demand.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
| これ Garmin Connect (unofficial) | Medplum MCP | Mirobody | Codescene MCP Server | Marrow | WHOOP — MissingMCP | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | パソコンにインストールが必要 | パソコンにインストールが必要 | パソコンにインストールが必要 | クラウドで動き、インストール不要 |
| キーが必要 | はい | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| 基本チェック | 3/3 | 4/4 | 3/3 | 2/3 | 3/3 | 2/4 |
| ライセンス | MIT | Apache-2.0 | Apache-2.0 | NOASSERTION | MIT | MIT |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
English | Русский
Unofficial. This project is not affiliated with, endorsed by or supported by Garmin Ltd. "Garmin" is a trademark of Garmin Ltd. or its subsidiaries; it is used here only to describe compatibility.
An MCP server that gives Claude (or any other MCP client) read-only access to your own Garmin Connect data: sleep, HRV, heart rate, stress, Body Battery, daily activity, workouts and weight. It uses the official Garmin Connect Personal API.
The main use case is personal advice on sleep and wellbeing. The server computes averages, sleep regularity, sleep shortfall, deviations from your own baseline and links between your day and your sleep; Claude turns that into concrete recommendations.
MCP (Model Context Protocol) is the standard an AI assistant uses to call external tools.
Claude Code starts
garmin-mcpas a child process and talks to it over stdin/stdout.
| Client | How |
|---|---|
| Claude Desktop | Download garmin-mcp.mcpb from the latest release and open it. Claude Desktop asks for the API key (stored securely) and time zone. Bundled for macOS (Intel and Apple Silicon), Windows x64 and Linux x64 |
| Claude Code (plugin) | /plugin marketplace add sasha-sup/garmin-mcp, then /plugin install garmin-mcp@garmin-mcp; Claude Code asks for the key. On first start the plugin downloads the release binary and verifies its SHA-256. macOS and Linux |
| Claude Code (binary) | Install the binary (row below), then claude mcp add -s user garmin -- garmin-mcp -env-file /path/to/.env |
| Binary | Archives for Linux, macOS and Windows on the releases page, or go install github.com/sasha-sup/garmin-mcp/cmd/garmin-mcp@latest |
| Docker | docker run -i --rm -e GARMIN_API_KEY -e GARMIN_TZ ghcr.io/sasha-sup/garmin-mcp as the MCP command (images for amd64 and arm64) |
| Any MCP client | Listed in the MCP Registry as io.github.sasha-sup/garmin-mcp |
| From source | make build (Go 1.27.4+; Go 1.21+ downloads it automatically) → bin/garmin-mcp |
cp .env.example .env
chmod 600 .env # only your user can read the key $EDITOR .env # set GARMIN_API_KEY and GARMIN_TZ
garmin-mcp -env-file .env -check
Claude Desktop, in claude_desktop_config.json, if you prefer the binary over the bundle:
{
"mcpServers": { "garmin": { "command": "/absolute/path/garmin-mcp", "args": ["-env-file", "/absolute/path/.env"] } } }
Or run a ready-made prompt. In Claude Code they are /mcp__garmin__sleep_review, /mcp__garmin__wellbeing_review (both take an optional number of days) and /mcp__garmin__readiness_check.
| Tool | Returns | Period |
|---|---|---|
garmin_sleep_analysis | Sleep analysis: average duration vs Garmin's baseline sleep need and weekly shortfall, median sleep onset and wake time and their spread, weekday/weekend shift (social jetlag), stage shares, sleep score trend, sleep heart rate/HRV/SpO2/breathing, and factors from the previous day (stress above your usual, late or hard workouts, low step count, late sleep onset → score, HRV and sleep heart rate with and without; differences are shown only with ≥ 5 nights in each group) | up to 366 days, default 28 |
garmin_sleep | Per night: bedtime, wake time, stages, score and sub-scores, heart rate, stress, SpO2, breathing, sleep need, Garmin's feedback | up to 366, 7 |
garmin_recovery_status | One-day readiness snapshot: sleep; HRV, resting HR, sleep HR, breathing rate and yesterday's stress each compared with your own previous 28 days (mean, SD, z-score, days of history); overnight Body Battery charge; training load of the last 7 vs 28 days; plain-language signals and the method used. Baseline-relative signals need ≥ 14 days of history | 1 day |
garmin_trends | Weekly or monthly averages: resting HR, HRV, sleep, steps, stress, Body Battery, intensity minutes, workouts, training load, weight | up to 731 days, 84 |
garmin_daily_summary | Per day: steps, distance, calories, heart rate, intensity minutes, stress, Body Battery, breathing, SpO2 | up to 366, 7 |
garmin_hrv | Overnight HRV, 7-day average, personal baseline band, Garmin status | up to 366, 14 |
garmin_body_battery | Charged/drained, min/max, events (sleep, workouts), Garmin's feedback, optional intraday timeline | up to 31, 3 |
garmin_heart_rate | Heart rate for one day in local-time intervals (5, 10, 15, 20, 30, 60, 120, 180, 240 min) | 1 day |
garmin_activities | Workouts: type, duration, distance, pace/speed, heart rate, time in zones, training load, training effect, VO2max | default 30 days, up to 100 items |
garmin_activity | Full summary of one workout | — |
garmin_profile | Time zone, heart rate zones, Fitness Age, latest weight | — |
garmin_weight | Weigh-ins: weight, BMI, body fat, muscle mass, body water | up to 731, 90 |
garmin_api_get | Raw JSON from an allow-listed endpoint (hourly SpO2, daily stress and steps, hydration, …), truncated at 100 KB. Nutrition and menstrual cycle only with GARMIN_ALLOW_SENSITIVE=1 | — |
All dates are local calendar dates (YYYY-MM-DD). Sleep is filed under the wake-up date: the night from 10 to 11 November is 2026-11-11.
The Personal API does not expose Training Readiness, Training Status, Acute Load or a VO2max trend. garmin_recovery_status computes comparable signals itself (HRV, resting HR, sleep, the sum of activityTrainingLoad over 7 and 28 days) and labels them as computed by this server, not by Garmin.
| Variable | Purpose | Default |
|---|---|---|
GARMIN_API_KEY (or GARMIN_API) | Personal API key. Without it the server starts and lists its tools, but every call returns an error explaining how to set it | — (required for data) |
GARMIN_TZ | Your IANA time zone, e.g. Europe/Berlin. Decides what "today" is. garmin_profile warns if it differs from your Garmin profile | system zone |
GARMIN_CACHE_DIR | Cache directory, or off | user cache dir: ~/.cache/garmin-mcp on Linux, ~/Library/Caches/garmin-mcp on macOS |
GARMIN_REGION | global or cn | global |
GARMIN_LOG_LEVEL | debug, info, warn, error (logs go to stderr) | info |
GARMIN_ALLOW_SENSITIVE | 1 enables the nutrition and menstrual-cycle endpoints in garmin_api_get | off |
Flags: -env-file PATH (the environment wins over the file; the file may only set GARMIN_*), -check, -clear-cache, -version.
POST /personalapitoken-service/personal-api/personal-api-key/token with Authorization: ApiKey . Every other request carries Authorization: Bearer . The token lives only in memory and is renewed 5 minutes before expiry, and once on HTTP 401. One request performs the renewal; concurrent requests wait for it, but never longer than their own timeout.400 when a period is too long: sleep and Body Battery 31 days, stress and steps 28, daily summaries 1 year. The dedicated tools split requests into chunks and run them in parallel (at most 4 at a time). garmin_api_get passes dates through unchanged, so raw stress_daily/steps_daily requests must stay within 28 days.GARMIN_CACHE_DIR. A day with data that was fetched more than 72 hours after it ended is final and never requested again; more recent days are cached for 10 minutes because the watch keeps syncing. A day without data (watch not worn or not synced yet) is re-checked every 6 hours and becomes final only after 30 days. Re-analysing a year costs a handful of requests, not hundreds. If the watch synced very late and past days came in partially, run garmin-mcp -clear-cache.429 and 5xx: up to 3 retries with exponential backoff, honouring Retry-After. Garmin does not document a rate limit.readOnlyHint.v1 directory inside GARMIN_CACHE_DIR gets mode 0700, files 0600; symlinks and oversized files in the cache are ignored. Clear it with garmin-mcp -clear-cache or by deleting the directory.-env-file accepts only GARMIN_* variables, so a tampered file cannot set HTTPS_PROXY or SSL_CERT_FILE to intercept the key.GARMIN_ALLOW_SENSITIVE=1..env and *.db are in .gitignore. If the key leaks, delete it on the Personal API Key page; every token issued for it stops working too.make test # unit tests with -race against a synthetic fake Garmin API (no real data needed)
make lint # golangci-lint v2 make vuln # govulncheck make live # every tool against the real API (needs .env); prints response sizes only make all # lint + test + vuln + build make ci-lint # validate the GitHub Actions workflows (actionlint)
Push a tag vX.Y.Z from a commit where plugin/.claude-plugin/plugin.json has version X.Y.Z. .github/workflows/release.yml then builds the archives and garmin-mcp.mcpb (GoReleaser), pushes ghcr.io/sasha-sup/garmin-mcp:X.Y.Z (amd64 and arm64) and publishes server.json to the MCP Registry with GitHub OIDC (no stored secrets).
GitHub Actions (.github/workflows/ci.yml) runs on pushes to main, on pull requests, weekly (new vulnerabilities appear without code changes) and on demand:
| Job | What it does |
|---|---|
| Lint | go mod tidy leaves go.mod/go.sum unchanged; golangci-lint v2.15.0 with .golangci.yml |
| Test | go vet, go test -race with coverage on Ubuntu and macOS, builds the binary |
| Vulnerability scan | govulncheck over the code and its dependencies |
Actions are pinned to commit SHAs, the workflow has only contents: read, and checkout does not persist the token. Dependabot proposes Go m