原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚 登录

Garmin Connect (unofficial)

作者:sasha-sup版本 0.1.1i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.sasha-sup/garmin-mcp

安装方法

能做什么

Unofficial read-only Garmin Connect data: sleep, HRV, heart rate, stress, recovery analysis.

作者提供的原文

  • 连接方式 在你的电脑上运行
  • 账号或密钥 需要 GARMIN_API_KEY
  • 分类 诊所与健康

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度0/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分12/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Garmin Connect (unofficial)。按照 https://mcp.popnx.com/i/sasha-sup-garmin-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 下载开发者的安装文件

    下载作者的 .mcpb 文件

    .mcpb 文件直接来自开发者,我们没有修改

  2. 双击文件,然后在电脑版 Claude 应用中点击 Install

  3. 试一试

    用 Garmin Connect (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Garmin Connect (unofficial),或回答中出现 Garmin Connect (unofficial) 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • GARMIN_TZ IANA 时区,例如 Europe/Berlin(默认:容器中的 UTC)
    查看英文原文Your IANA time zone, e.g. Europe/Berlin (default: UTC in the container)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Garmin Connect (unofficial)

Garmin Connect (unofficial) 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Garmin Connect (unofficial) 的应用

  • 需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)

B · 诊所与健康 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Garmin Connect (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    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

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 Garmin Connect (unofficial) 在列表中并显示已连接

  6. 试一试

    用 Garmin Connect (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Garmin Connect (unofficial),或回答中出现 Garmin Connect (unofficial) 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • GARMIN_TZ IANA 时区,例如 Europe/Berlin(默认:容器中的 UTC)
    查看英文原文Your IANA time zone, e.g. Europe/Berlin (default: UTC in the container)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Garmin Connect (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Garmin Connect (unofficial) 的设置中,GARMIN_API_KEY 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Garmin Connect (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Garmin Connect (unofficial),或回答中出现 Garmin Connect (unofficial) 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • GARMIN_TZ IANA 时区,例如 Europe/Berlin(默认:容器中的 UTC)
    查看英文原文Your IANA time zone, e.g. Europe/Berlin (default: UTC in the container)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Garmin Connect (unofficial) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Docker(只需一次)

让 AI 帮你安装

把这段话复制到 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 会请你自己粘贴到文件或应用的输入框里。

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Garmin Connect (unofficial) 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 Garmin Connect (unofficial) 的设置中,GARMIN_API_KEY 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 Garmin Connect (unofficial) 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Garmin Connect (unofficial),或回答中出现 Garmin Connect (unofficial) 的工具名称,就表示连接成功

1 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • GARMIN_TZ IANA 时区,例如 Europe/Berlin(默认:容器中的 UTC)
    查看英文原文Your IANA time zone, e.g. Europe/Berlin (default: UTC in the container)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Garmin Connect (unofficial) 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

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.1

Claude 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 机密 必填 env
    来自 https://connect.garmin.com/app/settings/personalApiToken 的 Garmin 个人 API 密钥
    查看英文原文Garmin Personal API key from https://connect.garmin.com/app/settings/personalApiToken
  • GARMIN_TZ env
    IANA 时区,例如 Europe/Berlin(默认:容器中的 UTC)
    查看英文原文Your IANA time zone, e.g. Europe/Berlin (default: UTC in the container)

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
连接方式
在你的电脑上运行
最新版本i
0.1.1
发布到注册中心i
2026年11月12日
代码最后更新i
2026年11月20日
作者
sasha-sup
软件包
oci: ghcr.io/sasha-sup/garmin-mcp:0.1.1
mcpb: …/garmin-mcp.mcpb
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 sasha-sup 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于今天

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

未检查:只能检查标明版本的 npm 和 PyPI 包

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/sasha-sup-garmin-mcp.svg)](https://mcp.popnx.com/en/servers/sasha-sup-garmin-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“诊所与健康”中的其他服务器比较i

  • 星标数多于此分类中其他 1198 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1198 个服务器的 81% 更新
  • 基础检查结果等于或优于此分类中其他 1198 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Garmin Connect (unofficial) 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:GARMIN_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于今天,最新版本(0.1.1)于8天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker, MCPB。

有什么可以替代它?

同一分类中有:Medplum MCP, Mirobody, Codescene MCP Server, Marrow, WHOOP — MissingMCP

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Medplum MCP

Securely access and manage FHIR healthcare data stored in Medplum.

作者:medplum广泛使用★ 28064个月前更新

在云端运行✓ 服务方 · medplum.com

Mirobody

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

作者:thetahealth正在增长↓ 725/周★ 1618昨天更新

在你的电脑上运行✓ thetahealth.ai

Marrow

Marrow Health: your Apple Health data over MCP, from the free iOS app. Reads, and writes on demand.

作者:skeletonarmytech起步阶段↓ 62/周★ 529天前更新

在你的电脑上运行✓ skeletonarmy.tech
与相似项目对比
本项
Garmin Connect (unofficial)
Medplum MCPMirobodyCodescene MCP ServerMarrowWHOOP — MissingMCP
运行位置需要安装在电脑上在云端运行,无需安装需要安装在电脑上需要安装在电脑上需要安装在电脑上在云端运行,无需安装
需要密钥是否否否否否
可在 Claude 中按 + 添加否否否否否否
基础检查3/34/43/32/33/32/4
许可证MITApache-2.0Apache-2.0NOASSERTIONMITMIT
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

garmin-mcp

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-mcp as a child process and talks to it over stdin/stdout.

Quick start

  1. API key. Open https://connect.garmin.com/app/settings/personalApiToken → *Create Key* → accept the terms → choose an expiry (30, 90, 180 days or 1 year) → copy the key. The key is shown once. Garmin emails you about a week before it expires.
  1. Install — pick the option that fits your client:
ClientHow
Claude DesktopDownload 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
BinaryArchives for Linux, macOS and Windows on the releases page, or go install github.com/sasha-sup/garmin-mcp/cmd/garmin-mcp@latest
Dockerdocker 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 clientListed in the MCP Registry as io.github.sasha-sup/garmin-mcp
From sourcemake build (Go 1.27.4+; Go 1.21+ downloads it automatically) → bin/garmin-mcp
  1. Configure (binary and source installs; the plugin and the bundle ask for the values instead):
   cp .env.example .env

chmod 600 .env # only your user can read the key $EDITOR .env # set GARMIN_API_KEY and GARMIN_TZ

  1. Check:
   garmin-mcp -env-file .env -check

auth ok: access token valid until 2026-11-13 10:33:12

profile ok: Garmin time zone Europe/Berlin, server time zone Europe/Berlin (CET +01:00)

data ok: 7 of the last 7 days have a daily summary

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"] } } }

  1. Ask Claude, for example:
  • "Analyse my sleep over the last month and give me recommendations"
  • "How recovered am I today? Is a hard workout a good idea?"
  • "How have my resting heart rate and HRV changed over six months?"
  • "What hurts my sleep more: stress or late workouts?"

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.

Tools

ToolReturnsPeriod
garmin_sleep_analysisSleep 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_sleepPer night: bedtime, wake time, stages, score and sub-scores, heart rate, stress, SpO2, breathing, sleep need, Garmin's feedbackup to 366, 7
garmin_recovery_statusOne-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 history1 day
garmin_trendsWeekly or monthly averages: resting HR, HRV, sleep, steps, stress, Body Battery, intensity minutes, workouts, training load, weightup to 731 days, 84
garmin_daily_summaryPer day: steps, distance, calories, heart rate, intensity minutes, stress, Body Battery, breathing, SpO2up to 366, 7
garmin_hrvOvernight HRV, 7-day average, personal baseline band, Garmin statusup to 366, 14
garmin_body_batteryCharged/drained, min/max, events (sleep, workouts), Garmin's feedback, optional intraday timelineup to 31, 3
garmin_heart_rateHeart rate for one day in local-time intervals (5, 10, 15, 20, 30, 60, 120, 180, 240 min)1 day
garmin_activitiesWorkouts: type, duration, distance, pace/speed, heart rate, time in zones, training load, training effect, VO2maxdefault 30 days, up to 100 items
garmin_activityFull summary of one workout—
garmin_profileTime zone, heart rate zones, Fitness Age, latest weight—
garmin_weightWeigh-ins: weight, BMI, body fat, muscle mass, body waterup to 731, 90
garmin_api_getRaw 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.

Not in the API

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.

Configuration

VariablePurposeDefault
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_TZYour IANA time zone, e.g. Europe/Berlin. Decides what "today" is. garmin_profile warns if it differs from your Garmin profilesystem zone
GARMIN_CACHE_DIRCache directory, or offuser cache dir: ~/.cache/garmin-mcp on Linux, ~/Library/Caches/garmin-mcp on macOS
GARMIN_REGIONglobal or cnglobal
GARMIN_LOG_LEVELdebug, info, warn, error (logs go to stderr)info
GARMIN_ALLOW_SENSITIVE1 enables the nutrition and menstrual-cycle endpoints in garmin_api_getoff

Flags: -env-file PATH (the environment wins over the file; the file may only set GARMIN_*), -check, -clear-cache, -version.

How it works

  • Authentication. The key is exchanged for an access token (a JWT valid for 24 hours; there is no refresh token): 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.
  • Range limits. Garmin answers 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.
  • Cache. Responses are stored per day in 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.
  • Retries. On 429 and 5xx: up to 3 retries with exponential backoff, honouring Retry-After. Garmin does not document a rate limit.

Privacy and security

  • The server only reads: the API has no write methods and every tool is marked readOnlyHint.
  • The key and token are sent only to Garmin's host; redirects are not followed, so the key cannot leak to another address. Logs and error messages never contain the key or token.
  • The cache holds health data: the 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.
  • Nutrition and menstrual-cycle data never reach the model unless you set GARMIN_ALLOW_SENSITIVE=1.
  • Whatever the tools return is sent to the model provider (Anthropic for Claude) as part of the conversation.
  • .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.
  • Recommendations based on this data are not medical advice.

Development

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)

Releases

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).

CI

GitHub Actions (.github/workflows/ci.yml) runs on pushes to main, on pull requests, weekly (new vulnerabilities appear without code changes) and on demand:

JobWhat it does
Lintgo mod tidy leaves go.mod/go.sum unchanged; golangci-lint v2.15.0 with .golangci.yml
Testgo vet, go test -race with coverage on Ubuntu and macOS, builds the binary
Vulnerability scangovulncheck 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

只显示了开头部分;其余内容请在仓库中阅读