
Garmin Connect Workouts Mcp
io.github.slaat由 GitHub 帳號 slaat 發布v1.1.3更新於 Oct 24, 2026
Turn plain language into real workouts on your Garmin watch: pace, HR, power, intervals, swim sets.
概覽
把自然語言描述的訓練課轉換成 Garmin Connect 中的結構化訓練,支援配速、心率、功率與游泳目標,並可管理帳戶中的訓練。
- 可以做什麼
- 建立含步驟、目標與重複群的結構化訓練
- 列出並取得 Garmin Connect 帳戶中訓練課的完整結構
- 取代既有訓練的內容或刪除訓練
- 把訓練排到 Garmin Connect 行事曆
- 檢查已儲存的 Garmin 工作階段,並透過瀏覽器登入完成驗證
- 適用情境
- 適合在對話中規劃訓練、並希望結果直接成為 Garmin 手錶上可編輯的真實訓練課時使用,包括間歇跑、含功率或踏頻目標的自行車課,以及泳池游泳組。
- 執行需求
- 透過 npx 在本機執行(需要 Node.js)。需要 Garmin Connect 帳號;首次使用會開啟瀏覽器視窗供你登入,產生的工作階段 Cookie 與 CSRF 權杖會存放在使用者的設定目錄中。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Garmin Connect Workouts Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Garmin Connect Workouts MCP
[garmin-connect-workouts-mcp MCP server]
[garmin-connect-workouts-mcp MCP server]
An MCP (Model Context Protocol) server that turns natural-language workout descriptions into structured workouts in Garmin Connect. Describe a session in plain English and the calling model builds a typed step-by-step workout that this server encodes into Garmin's workout API format and creates directly in your account.
Features
- Pace, heart-rate, power and cadence targets - pace ranges, HR zones 1-5,
explicit bpm ranges, cycling power, and cadence, all encoded against
Garmin's real
workoutTargetTypetable. - Real repeat blocks -
5x1kmbecomes a single repeat group, not five duplicated steps, so the watch shows an actual rep counter. - Swim workouts - per-step strokes (freestyle, backstroke, breaststroke, fly, drill, individual medley, or any stroke) and equipment (fins, kickboard, paddles, pull buoy, snorkel), plus a workout-level pool length in meters or yards.
- Full workout lifecycle - create, list, get, update, delete, and schedule workouts onto the Garmin Connect calendar.
- Structured input, not text parsing - the server never parses free text itself; every duration and target is an explicit, unit-tagged field, so there's nothing for a string like "10 min" to be silently misread as.
Quick Start
Claude Code
Claude Desktop
Add to your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Then restart Claude Desktop.
Authentication
Garmin Connect's web client authenticates with session cookies plus a CSRF token, not a password grant this server could hold on to. So the first time you create a workout (or whenever the session has expired):
- The server checks the stored session with a cheap authenticated request.
- If it's missing or rejected, run the
authenticate_garmintool. It opens a real browser window atconnect.garmin.comfor you to log in normally. - Once login completes, the session is captured and stored at
~/.config/garmin-connect-workouts-mcp/auth.jsonwith600permissions (owner read/write only).
No password is ever stored - only the resulting session cookies and CSRF
token. Garmin sessions expire, so you may be prompted to re-authenticate
between sessions; the server detects this automatically and tells you when
to run authenticate_garmin again. The login browser uses a persistent,
isolated profile under ~/.config/garmin-connect-workouts-mcp/browser-profile/
so Garmin can remember the device across logins - it never touches your
personal browser profile.
Tools
Usage Examples
- "Create a 30 minute easy run in zone 2"
- "10 min warmup zone 3, then 5x1km threshold intervals at 4:00/km with 2 min rest between, then 10 min cooldown zone 2"
- "8x400m at 5k pace with 60 second recovery, then check what workouts I already have scheduled this week"
- "Update workout 123456 to add a 5 minute cooldown, then schedule it for next Monday"
- "Create a 25m pool swim: 200m warmup any stroke, 4x100m freestyle with 30s rest using a kickboard, 100m breaststroke cooldown"
How targets work
A stated pace is treated as the fast edge of a range: Garmin stores pace
as a range, not a single point, so 4:00/km on its own becomes a
4:00-4:10/km range, widened by 10 seconds. Give both fast and slow
explicitly for a narrower or different range.
Development
Tests validate the workout encoders (targets, durations, repeat nesting) against fixtures captured from Garmin's own web client, so payload shape regressions get caught before they reach a real account.
Disclaimer
This is an unofficial, third-party project. It is not affiliated with, endorsed by, or sponsored by Garmin Ltd. or any of its affiliates, and it talks to Garmin Connect's web API by reverse-engineering the same requests the official web client makes. It may stop working if Garmin changes that API. Use at your own risk, and at your own responsibility for the workouts and data you send to your account.
Acknowledgements
Thanks to garmin-workouts-mcp by Charles Frisbee for the original idea of driving Garmin Connect workouts through MCP.
License
MIT
來源:README.md,提交 5d72187
工具
0版本歷史
1- v1.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分