
durely insights MCP for Garmin
app.durely由 durely.app 發布v0.5.2更新於 Oct 29, 2026
Your full Garmin history, kept locally, analysed down to the second, via the official Personal API.
概覽
透過 Garmin 官方 Personal API 把 Garmin Connect 帳號接上 AI 助理,將完整訓練與健康歷史同步到本機供分析。
- 可以做什麼
- 搜尋、檢視並比較活動:摘要指標、分段、逐秒資料串流、區間與負荷分析、多項活動並排比較
- 回顧訓練進展:依週或月統計各運動項目里程、負荷、強度以及體能/疲勞/狀態
- 檢視健康與恢復:睡眠、HRV、靜息心率、Body Battery、壓力、日內資料、身體組成、營養與經期紀錄
- 對本機同步資料執行唯讀 SQL 查詢、下載原始 FIT 檔案、手動觸發或查看同步狀態
- 檢查連線狀態、金鑰到期時間與時區,並啟動每週回顧、活動深入分析、恢復檢查等引導式提示
- 適用情境
- 適合使用 Garmin 裝置訓練、希望讓助理直接回答自己跑步、騎車、游泳、睡眠與恢復狀況的人,從單次活動到多年歷史都不必手動匯出檔案。
- 執行需求
- 以 stdio 在本機執行,可用 npx(需 Node.js 24+)或 Docker。需要 Garmin Connect 帳號與在 Garmin Connect 建立的 Personal API 金鑰,透過 auth 指令存到金鑰檔案,或以 GARMIN_PERSONAL_API_KEY 提供。GARMIN_MCP_TIMEZONE 標示為必填,但預設採用系統時區。僅支援桌面與命令列 MCP 用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 durely insights MCP for Garmin,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
durely garmin-insights-mcp
[npm] [Node] [Docker] [CI] [License]
Ask your AI assistant about your own Garmin data: your full training history, health and recovery, analysed.
durely insights is an MCP server that connects your Garmin Connect account to your AI assistant (Claude, Cursor, GitHub Copilot, Gemini CLI, Codex or any other MCP client) through Garmin's official Personal API. It keeps a copy of your history on your own machine, so you can ask about a single run or about years of training and get an answer right away.
Early development. Everything below works, but tools and options can still change before version 1.0.
Unofficial project: not affiliated with or endorsed by Garmin.
What you can ask
Activities
- "What did I do this week?" / "Show my last 10 runs"
- "Tell me about yesterday's run": splits, heart rate, training effect, load
- "How did my power and heart rate evolve over the intervals of Tuesday's ride?"
- "Compare the bike legs of my last two triathlons lap by lap"
- "Am I getting fitter on my regular Tuesday run?"
Training
- "How has my training load and fitness developed over the last 3 months?"
- "Analyse Saturday's ride: time in zones, decoupling, best efforts"
- "How many kilometres did I run, ride and swim per year?"
Health and recovery
- "How did I sleep this week, and how was my HRV?"
- "Does a hard training day affect my HRV the next morning?"
- "Compare my resting heart rate and sleep score per month this year"
- "Show my heart rate and Body Battery through yesterday"
What makes it different
- Official API, no password. It uses a Personal API key that you create in Garmin Connect and can revoke at any time. No scraping, nothing that breaks when Garmin changes its login.
- Your whole history, instantly. Everything is synced once to a local database and kept up to date, so trend questions over months or years don't wait on Garmin.
- Second-by-second detail. Laps, swim lengths, heart rate, power, cadence and more come from each activity's original FIT file, including VO2max, recovery time and lactate threshold when your device records them.
- Analysis built in. Time in zones, training load and fitness/fatigue/form, aerobic decoupling, best efforts, recovery trends and comparisons of similar sessions. For anything else, your assistant can run read-only SQL over your data.
- Private by default. Your data stays on your machine. Your name, account ID and GPS positions are kept out of answers unless you ask for a route.
- Read-only. It can't change anything in your Garmin account.
Quick start
You need Garmin Connect, an MCP client (Claude Code, Claude Desktop, Cursor, …) and either Node.js 24+ or Docker.
1. Create your Personal API key
-
In Garmin Connect on the web, open Settings → Personal API Token.
-
Create a key and pick how long it stays valid (30 days to 1 year). Garmin shows it only once, so copy it.
-
Save it by running this in your own terminal:
It asks for the key (your input stays hidden), checks it with Garmin and saves it to
~/.config/garmin/connect-personal-api-key, readable only by you. If Garmin rejects the key, nothing is saved. The server reads the key from this file, so it doesn't go in your client config.With Docker (no Node.js), save it to that file yourself:
Don't paste the key into a chat with your AI assistant.
2. Choose how to run it
With Node.js (npx): nothing to install. Your server command is:
npx downloads the npm package on first use and picks up new releases by itself. Check your key with npx -y @durely/garmin-insights-mcp auth --check. Prefer a fixed install? npm install -g @durely/garmin-insights-mcp gives you the garmin-insights command.
Or with Docker (no Node.js needed; Docker must be running). Your server command is:
Replace Europe/Brussels with your own time zone. To check your key, run the same command with auth --check at the end. The image runs on Intel and ARM (Apple silicon, Raspberry Pi). More Docker tips are in How it works.
Or from source: clone the repo and build it with npm or Docker. See How it works.
Updating: with npx, restart your client. With Docker, run docker pull ghcr.io/durely/garmin-insights-mcp. Your synced data is kept.
3. Add it to your AI client
Claude Code:
With Docker:
--scope user makes it available in all your projects.
Claude Desktop: open Settings → Developer → Edit Config, add this, and restart Claude Desktop:
Desktop apps don't see your shell's PATH, so use the full path to npx (find it with which npx). If the log then says node isn't found, add "env": { "PATH": "/opt/homebrew/bin:/usr/bin:/bin" }, with the folder from which node first.
Claude Desktop with Docker, Cursor, VS Code, Gemini CLI, Codex CLI
Claude Desktop with Docker:
Use full paths here; ~ isn't expanded in JSON configs.
Cursor: the same JSON as Claude Desktop, in ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
VS Code (GitHub Copilot agent mode): in .vscode/mcp.json, or via the command palette → MCP: Add Server:
Gemini CLI:
OpenAI Codex CLI:
Others (Windsurf, Cline, Zed, …): look for "MCP servers" in their settings. Any client that supports stdio servers works.
4. Try it
Start a new session and ask: "Check my Garmin connection." It should report connected.
The first question starts a sync in the background. Your activities are there within seconds; the rest of your history follows in a few minutes. After that, the data refreshes automatically when it's more than an hour old.
Good to know
- Keep your key's expiry date in mind. Garmin's API doesn't tell the server when your key expires. Set
GARMIN_API_KEY_EXPIRES(e.g.2027-10-24) in your client config andgarmin_statusreminds you in time. With Docker, pass it to the container instead: add-e GARMIN_API_KEY_EXPIRES=2027-10-24to thedocker runarguments. Replacing the key file is enough; no restart is needed. - Sync at least every few months. Garmin deletes intraday detail (heart rate through the day, overnight HRV readings) after about 4–5 months. Whatever the server has synced stays in your local copy.
- Desktop and CLI clients only, for now. The server runs on your own machine, so it doesn't work in claude.ai on the web or mobile yet.
- Your data goes to your AI client. The server only talks to Garmin, but the answers it gives go to the MCP client and model you use.
Troubleshooting
Tools
You don't need to call these yourself; your assistant picks them. For reference:
In clients that support prompts (often as slash commands), weekly_review, activity_deep_dive and recovery_check start a guided analysis.
Configuration
All optional; set them as environment variables in your client config.
In Docker, the key file and data directory are /run/secrets/garmin_api_key and /data.
Privacy and security
- Your key stays on your machine. It's exchanged for a 24-hour token, cached with owner-only permissions. The server never writes the key itself. To revoke access, delete the key in Garmin Connect.
- No telemetry. The server only talks to Garmin's Personal API.
- Your synced data is sensitive. The local database and FIT files hold your health and activity history, including GPS tracks. The data directory is readable only by you (in Docker it lives in the
garmin-mcp-datavolume). - Identity and location stay out of answers. Your name, profile picture and account ID are removed before anything is stored. GPS positions are only returned when you ask for route or location analysis (or query an activity's start and end point with SQL).
More
- How it works: the local cache and sync, FIT files, how the numbers are calculated, Docker details, development
License
Apache-2.0. See LICENSE and NOTICE.
Data provided by Garmin devices via Garmin Connect; the analyses are insights derived in part from Garmin device-sourced data. Garmin and Garmin Connect are trademarks of Garmin Ltd. or its subsidiaries. This project is not affiliated with or endorsed by Garmin.
來源:README.md,提交 467977d
工具
0版本歷史
1- v0.5.2最新Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分