garmin-personal-mcp
Provides read-only access to Garmin Connect training and recovery data through Garmin's official Personal API, including training summaries, activities, daily wellness metrics, sleep data, and HRV trends.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@garmin-personal-mcp Review my training and recovery for last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
garmin-personal-mcp
A small, read-only Model Context Protocol server that lets Claude read my own Garmin training and recovery data through Garmin's official Connect Personal API, so it can run a weekly training review with me.
No scraping, no unofficial libraries, no stored passwords. One API key, kept in a local file the code never prints.
Why this exists
I train with a Garmin watch and wanted an assistant that reviews the week from real numbers (load, heart-rate zones, sleep, HRV), not from what I remember. Garmin opened a Personal API to individual users in 2026. This project turns it into tools an LLM can call safely.
Related MCP server: Garmin Connect MCP Server
What it shows (for reviewers)
Skill | Where to look |
Working from a primary spec, not guesswork |
|
Secure credential handling |
|
Data shaping for LLMs |
|
Analytics |
|
Testing | 21 pytest tests on spec-shaped sample responses with mocked HTTP ( |
Honest scoping | Metrics the API does not expose are listed below rather than faked. |
Tools
Tool | Garmin endpoint | Returns |
| activity search (paged) + | Per ISO week: activities by type, training load, run km, pace, longest run, HR zone minutes, easy (z1-z2) vs hard (z4-z5) share, resting HR, stress, sleep, HRV, week-on-week change |
|
| Distance, time, pace, HR, training effect, load, VO2 max, minutes in each HR zone |
|
| Summary, HR (avg, max, min, recovery, zones with bpm floors), split summaries |
|
| Steps, resting HR and 7-day average, stress, Body Battery, intensity minutes |
|
| Duration, stages, sleep score, overnight HR, stress, respiration, SpO2 |
|
| Last-night and weekly HRV, baseline range, status |
|
| Daily HRV summaries for trend review |
Not available from the Personal API (as of Nov 2026)
Training readiness: no endpoint in the published spec.
Per-km laps and second-by-second HR: activity detail gives split summaries grouped by type (run, walk, interval), not laps. Raw streams are only in the FIT file (
/download-service/files/activity/{id}), which this server does not parse yet.
Architecture
Claude Desktop ──stdio/JSON-RPC──▶ server.py (MCPServer, 7 tools)
│ validate dates, cap ranges (92 days)
▼
client.py ── GET, Bearer token, 401 → re-exchange once
│
auth.py ── POST ApiKey → JWT, cache ~/.garmin-mcp/token.json (0600)
│
trim.py ── raw JSON → compact, unit-labelled JSONSetup
Free. Needs Python 3.12+, uv and a Garmin Connect account.
In Garmin Connect web, open Settings → Personal API Key and create a key. It is shown once.
Put it in
~/.garmin-mcp/.env(permissions600):GARMIN_PERSONAL_API_KEY=your-keyInstall and test:
uv sync && uv run pytest -qAdd to
~/Library/Application Support/Claude/claude_desktop_config.jsonundermcpServers:"garmin-personal": { "command": "/absolute/path/to/uv", "args": ["--directory", "/absolute/path/to/garmin-personal-mcp", "run", "--quiet", "--frozen", "garmin-personal-mcp"] }Quit Claude Desktop fully (Cmd+Q) and reopen it.
Design decisions
Key in a file, not in the Claude config
envblock: that file is synced and backed up by other tools; a0600file in the home directory is not.Token renewal by re-exchange: the FAQ states refresh tokens are not supported and access tokens last 24 h, so the server re-posts the key when under an hour remains.
Token response as raw JWT: the token endpoint is not in the OpenAPI spec. Its format follows Garmin's own Apache-2.0 client (garmin/connect-personal-api-python); a 23 h fallback covers a non-JWT body.
stdout is protocol only: all logging goes to stderr and
httpxis held at WARNING, since it logs full URLs at INFO.Chunked range calls: the sleep range endpoint returned HTTP 400 for a 34-day window in live testing (the spec states no limit), so range endpoints are fetched in 28-day chunks.
--frozenlaunch: Claude Desktop starts the server with no network resolution step, so a lockfile change cannot stall the handshake.
Licence
MIT. Garmin and Garmin Connect are trademarks of Garmin Ltd. This project is not affiliated with Garmin.
Available Tools
7 toolsdaily_summaryA
Daily wellness summary for one date (YYYY-MM-DD): steps, resting HR, stress, Body Battery, intensity minutes, calories.
Inputs: date (required). Returns: object
get_activityA
One activity in detail: summary, heart rate (avg/max/min, recovery, time in zones with zone floors in bpm) and split summaries (grouped by split type, e.g. run/walk/interval). Per-km laps and second-by-second HR are not exposed by the Personal API.
Inputs: activity_id (required). Returns: object
hrvA
Overnight HRV for one date (YYYY-MM-DD): last-night average, weekly average, baseline range and status. Returns available=false if the watch recorded none.
Inputs: date (required). Returns: object
hrv_rangeA
Daily HRV summaries across a date range (YYYY-MM-DD, inclusive, max 92 days).
Inputs: end (required), start (required). Returns: result
list_activitiesA
List activities between two local dates (YYYY-MM-DD, inclusive), newest first.
Returns distance (km), duration (min), pace, heart rate, training effect, load and
time in each HR zone. Use get_activity for splits.
Inputs: end (required), start (required), limit. Returns: result
sleepA
Sleep for one date (YYYY-MM-DD; Garmin files sleep under the wake-up day, unverified): duration, stages, score, overnight HR, stress, respiration, SpO2.
Inputs: date (required). Returns: object
training_summaryA
Weekly training and recovery totals between two dates (YYYY-MM-DD, inclusive, max 92 days).
Per ISO week (Monday start): activity counts by type, training load, run km/time/pace/longest,
minutes in each HR zone with easy (z1-z2) and hard (z4-z5) share, resting HR, stress,
Body Battery, steps, sleep hours and score, HRV and HRV status days, plus week-on-week
change in run km and load. Use this first for a weekly review, then drill in with
get_activity, sleep or hrv.
Inputs: end (required), start (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct granularity: aggregate weekly (training_summary), list (list_activities), single activity detail (get_activity), single-day wellness (daily_summary), single-night sleep (sleep), and HRV for one date vs a range (hrv / hrv_range). There is mild overlap because training_summary rolls up sleep and HRV metrics that sleep and hrv expose in detail, but descriptions explicitly frame that as aggregate-then-drill-in, so selection remains clear.
All names are snake_case and readable, but verb conventions are mixed: verb_noun (list_activities, get_activity), noun_noun (training_summary, daily_summary, hrv_range), and bare nouns (sleep, hrv). The hrv/hrv_range pairing is predictable, but there is no single overarching pattern.
Seven tools is well within the sweet spot and each one maps to a distinct wellness question (weekly review, activity list/detail, daily snapshot, sleep, HRV single/range). Nothing feels redundant or padded.
The read-only wellness surface covers the core loop of activity, training load, recovery, sleep and HRV, with both point and range queries for HRV and weekly aggregation. Gaps exist around body composition/weight, workouts/scheduled sessions, VO2max or personal records, and activity filtering, but these are workaroundable or out of scope for the Personal API.
Maintenance
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
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).
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables Claude to access and query your Garmin Connect data, including sleep, activities, training load, and health metrics, through a set of read-only MCP tools.28161 PyPI7MIT
- FlicenseNot gradedqualityDmaintenanceProvides Claude with read-only access to Garmin Connect data including daily health metrics, training status, activity details, and trends through 32 tools.-
- AlicenseBqualityBmaintenanceEnables Claude to access and query your Garmin Connect data—sleep, training, heart rate, and more—through a suite of read-only tools, with an optional write path for creating strength workouts.63MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other MCP clients to read a user's Garmin Connect data through Garmin's official Personal API, supporting queries about recovery, sleep, HRV, activities, heart rate, stress, and related wellness metrics.MIT