Garmin Connect Personal API
io.github.hannta由 GitHub 帳號 hannta 發布v1.1.1更新於 Nov 7, 2026
Read-only Garmin Connect data on Garmin's official Personal API: training, sleep, HRV, recovery.
概覽
唯讀的 MCP 伺服器,讓助理透過 Garmin 官方 Personal API 查詢你自己的 Garmin Connect 訓練、睡眠、HRV、恢復與健康資料。
- 可以做什麼
- 檢視單日或日期範圍的概況:睡眠、HRV、Body Battery、壓力、靜止心率、步數、強度分鐘與活動
- 搜尋活動並深入檢視單一活動:配速、心率區間、跑步動態、功率、訓練效果、計圈與間歇、時間序列資料流、結構化訓練
- 讀取每晚睡眠與 HRV 詳情,包括評分組成、睡眠需求與基準狀態
- 取得每日彙總、心率、血氧、壓力、補水、飲食紀錄、體重與身體組成、體適能年齡、心率區間與體重目標
- 讀取健康監測工作階段與月經週期資料,包括記錄的流量、症狀與情緒
- 適用情境
- 適合讓助理解讀你自己的 Garmin 訓練與恢復資料,例如回顧一個訓練週期、比較睡眠與 HRV 趨勢,或說明恢復狀況變化的原因。它為唯讀,因此更適合分析與教練式對話,而不是修改 Garmin Connect 中的內容。
- 執行需求
- 需要一個在 Garmin Connect 網頁版建立的 Garmin Connect Personal API 金鑰,透過 GARMIN_PERSONAL_API_KEY 提供,或由伺服器的 auth 指令儲存。本機使用需 Node.js 22+,透過 npx 以 stdio 執行;也可選擇部署到你自己的 Cloudflare 帳戶。需要能連線至 Garmin API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Garmin Connect Personal API,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Garmin Connect Personal API MCP
Not affiliated with or endorsed by Garmin. Garmin and Garmin Connect are trademarks of Garmin Ltd.
A read-only MCP server that gives AI assistants your own Garmin Connect training, recovery and health data through the official Garmin Connect Personal API. Run it on your own computer, or host it on your own Cloudflare account to use it from anywhere.
AI agents: to set this up for a user, follow docs/AGENT-SETUP.md.
Setup
You need a Garmin Connect Personal API key, which you create in Garmin Connect on the web.
Run locally
The quickest way, for Claude Code, Claude Desktop, Cursor, VS Code and other clients that run local servers. Needs Node.js 22+.
Paste this into your coding agent:
Or do it yourself: docs/LOCAL.md.
Host on Cloudflare
For Claude on the web and on mobile, and any other client that connects to remote servers with OAuth. The free plan is enough, apart from one known limitation.
-
One click:
-
Manual: follow docs/DEPLOY.md.
Then connect your MCP client, such as Claude, ChatGPT, Cursor or VS Code.
Tools
Good to know
- Range tools default to the last 7 days. If a range is too long for one Garmin request, the error says the maximum and the assistant splits it into several calls.
- Output is metric, with the unit in every field name. Dates are
YYYY-MM-DDin your time zone; sleep and HRV are keyed by the wake-up date. - Location, sexual activity and sex drive data are never returned.
- Known limitation:
garmin_get_activity_lapscan fail on long activities on the Cloudflare free plan. See Known limitations.
Development
Requires Node.js 24+.
To try the local server, connect the
MCP Inspector to it and sign in with
OWNER_PASSPHRASE.
Architecture and conventions: docs/DEVELOPMENT.md.
License
來源:README.md,提交 f8f1df1
工具
0版本歷史
1- v1.1.1最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分