garmin-connect-mcp
Connects to a user's Garmin Connect account to pull workouts, laps and HR zones, sleep, HRV, resting heart rate, training readiness and status, race predictions, and the Garmin Coach training plan. Also supports correcting treadmill activity distances/pace, reading Garmin scale weigh-ins, and combining Garmin calorie burn with a persistent food log to compute daily calorie and macro targets, plus one-call weekly reviews of mileage, nutrition, recovery and weight trends.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
garmin-connect-mcp: a Garmin + food-log coach for Claude
A personal MCP server that turns a Claude Project into a marathon coach and sports dietitian:
Live Garmin Connect data: workouts, laps and HR zones, sleep, HRV, resting HR, training readiness, training status, race predictions, and your Garmin Coach plan.
A food log that persists across chats, with itemised calories, protein, carbs, fat, fiber and sodium. Workout electrolytes are tracked separately from the food sodium cap.
Saved foods: store exact label numbers for foods you eat often, so they're never re-estimated.
Calorie targets from your real Garmin burn: a deficit on normal days, maintenance on long-run days.
Treadmill corrections: enter the real distance once, and pace and weekly totals use it everywhere.
A weekly review in one call: mileage, long run, nutrition averages, days over the sodium cap, recovery trend, weight change.
It runs on Google Cloud Run + Firestore free tiers, with a $0 billing hard cap.
Claude Project ──HTTPS──▶ Cloud Run (scale-to-zero, max 1 instance) ──▶ Garmin Connect
│
└──▶ Firestore (food log, targets, saved foods, tokens)
Budget $1/mo (credits excluded) ─▶ Pub/Sub ─▶ billing-cap function: unlinks billing if cost > $0
emails at $0.01 and $0.50Docs
Setup guide: build your own in about 45 minutes, plus day-to-day operations and troubleshooting.
How we built it: the design decisions, the $0 hard cap, testing, and everything that broke during the real deploy.
Related MCP server: Garmin Nutrition Coach
Quick start
git clone https://github.com/knowkhelan/garmin-connect-mcp.git && cd garmin-connect-mcp
gcloud auth login # needs a GCP project with an OPEN billing account
uv run --with garminconnect python scripts/garmin_login.py # one-time Garmin login
cp .deploy.env.example .deploy.env # fill in project + billing account
bash scripts/deploy.sh all # billing guard, then Firestore + server
bash scripts/deploy.sh test-cap # proves the $0 cap can fireThen add the printed URL as a custom connector at claude.ai/customize/connectors (with No sign-in). Details are in the setup guide.
Tools Claude gets
Tool | What it does |
| Start here. One day's workouts, burn, recovery, day type, targets, food and flags |
| Itemised meal logging; |
| Food history with per-day totals |
| Exact label figures for regular foods |
| Protein, fiber, sodium cap, deficit, carbs by day type |
| Workouts, laps, HR zones |
| Fix treadmill distance and pace |
| Sleep, HRV, resting HR, readiness trend |
| Load, VO2 max, race predictions, Garmin Coach schedule |
| Weigh-ins (manual + Garmin scale) |
| The weekly check-in in one call |
Cost
Normal use (a few logs and checks a day) is under 5% of the Cloud Run and Firestore free tiers. The billing guard emails you at $0.01 and $0.50, and unlinks billing as soon as any real charge appears. See the setup guide for what that means and how to recover.
Local development
pip install -r requirements.txt pytest
LOCAL_DEV=1 GARMIN_MOCK=1 python -m app.server # http://localhost:8080/mcp with fake Garmin + JSON-file storage
python -m pytest tests -q # unit, storage-contract and billing-cap tests
rm -rf data && python tests/smoke_test.py http://localhost:8080/mcp # 26 end-to-end checks (needs an empty store)Caveats
Garmin access uses the unofficial
python-garminconnectwith your own login. Garmin can change things at any time.The connector URL's random path is the only auth. Keep it private and rotate it if it leaks.
Targets and flags are generic heuristics, not medical advice.
Built for one athlete. It isn't a multi-user service.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
Connect Claude to your Intervals.icu watch data for fitness, workout review, and plan writing.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
Log meals, water, and weight to Garmin Connect from Claude or ChatGPT.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceConnects Claude to Garmin Connect data for personalized running coaching, including morning readiness checks, post-run analysis, weekly reviews, and goal tracking.-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to act as a personal health coach by connecting to Garmin wearable data and Notion workspace for automated calorie tracking, photo food logging, and coaching insights.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceLets Claude read a runner's recent activities and wellness signals — sleep, HRV, resting heart rate — and then design, schedule, edit, or delete structured workouts. Planned sessions are written to an intervals.icu calendar that syncs through Garmin Connect onto the user's watch, without exposing Garmin credentials.MIT
- AlicenseNot gradedqualityCmaintenanceLets Claude read recent Garmin training activities and wellness signals such as sleep, HRV, and resting heart rate, then design and push structured workouts onto the user's calendar for syncing to their watch. Workouts can also be listed, edited, and deleted through natural language.MIT