Garmin Stats MCP Server
Provides read-only access to a locally synced copy of the user's Garmin Connect data, including sleep, HRV, heart rate, stress, Body Battery, SpO2, respiration, steps, workouts with laps/HR zones/FIT files, training status and load, Training Readiness, VO2max, race predictions, personal records, weight, blood pressure, hydration and cycle tracking; supports SQL queries, raw payload inspection, manual sync and sign-in.
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 Stats for Claude and Codex
Ask Claude or Codex about your own Garmin data, all of it: sleep, HRV, heart rate, stress, Body Battery, SpO2, respiration, steps, workouts (with laps, HR zones and the original FIT files), training status and load, Training Readiness, VO2max, race predictions, personal records, weight, blood pressure, hydration and cycle tracking.
I wanted to ask "am I recovered enough for a hard session?" and get an answer grounded in my own numbers, not a generic one. It's my data, so I want all of it. Garmin's official Personal API leaves out training status, Training Readiness, blood pressure and race predictions, so this takes the same route the Garmin Connect app does. It copies everything to your Mac every hour and lets Claude or Codex query that copy.
Works in the Claude desktop app (Cowork), Claude Code and the Codex CLI. They all use the same skill and the same data. macOS only.
Install
Open Terminal (⌘ Space, type Terminal, Return).
Paste this and press Return:
curl -fsSL https://raw.githubusercontent.com/jwiderberg/garminkollen/main/install.sh | bashSign in to Garmin in the window that pops up. If Garmin emails you a code, enter that too.
Pick how much history you want, from 30 days to 5 years. You'll see each day arrive as it's saved.
Add it to the app you use. You can use more than one.
Claude Code and Codex. If you have either, the installer adds the plugin for you. Start a new session and it's there.
The Claude app. It needs one manual step:
A Finder window opens with Garmin-Stats.zip. In Claude: Settings → Plugins, scroll down to Browse plugins, then Add (top right) → Upload plugin. Drag the zip in and click Upload.
Claude warns that "This plugin includes local MCP servers". That's expected: the server is the helper you just installed, reading the data on your Mac. Click Continue.
Then ask "How did I sleep last night?"
The import is deliberately slow, about half a minute per day (30 days takes roughly 15 minutes, 90 days about 40), because it fetches everything and hammering Garmin gets you blocked. You can close Terminal at any point; whatever's left carries on in the background.
Pick a year or more and you get the last 30 days straight away. The hourly sync fetches the rest, newest first, 14 days at a time. Five years takes five or six days with your Mac awake and roughly 0.5 GB of disk. See Years of history for what Garmin still has.
You don't need Python or developer tools: the installer explains each step and sets up everything itself.
Related MCP server: Garmin MCP Worker
What you can ask
How did I sleep this week compared with last?
Is my HRV trending down?
Summarise my running since September.
What does Garmin say my training status is, and is my load ramping too fast?
Plot my weight and resting heart rate since January.
How does this autumn compare with the last three?
Get five years of my Garmin history.
How it works
Sync. A background job on your Mac pulls the latest from Garmin Connect every hour. Requests are spaced at least a second apart, with some random jitter. If Garmin still says slow down, it backs off and tries again later rather than pushing.
Cache. Everything lands in one SQLite file in
~/.garmin-stats-skills/. Claude and Codex read that file, so answers are instant and don't touch Garmin.Skill. The plugin adds six tools (status, SQL query, raw payload, sync now, keep more history, sign in). None of them can change anything in Garmin. It also adds a skill that explains the data, including the parts that are easy to get wrong: a missing day is a gap, not a zero, and last night's sleep is filed under today.
Years of history
Ask Claude or Codex "get five years of my Garmin history", or run:
~/.local/bin/garmin-stats history 5y # or 90d, 2y...
~/.local/bin/garmin-stats history # how far it's gotInterruptions are fine. If your Mac sleeps or loses its connection, the next
sync carries on from there. Keeping less history deletes the older days from
your Mac, so the plugin's tools can't do that, and the command makes you add
--delete-older.
Garmin doesn't keep everything for ever. On my account, daily totals, sleep, HRV and workouts go back years (as far as the watch recorded them), but minute-by-minute heart rate and stress were missing on most of the days I checked that were over three months old. Once a detail is in your cache it stays there for as long as you keep that day, so start early.
Five years of data doesn't get loaded into the chat. Claude or Codex writes a query, SQLite does the sums on your Mac, and only the result comes back: 60 monthly averages, say, not 1,826 days. Results are capped, and the reply says when one has been cut short.
Your data
Your password goes to Garmin once and is never stored. Only Garmin's sign-in token is kept on your Mac, readable by you alone.
The cache stays on your Mac, and nothing is ever written back to Garmin. When you ask a question, your question and the query results go to Anthropic (Claude) or OpenAI (Codex), like anything else in the chat.
When the hourly sync is switched on, macOS shows "garmin-stats can run in the background". That's expected. You can turn it off under System Settings → General → Login Items & Extensions.
If Garmin signs you out, you get a notification. Tell Claude or Codex "reconnect my Garmin" and the sign-in window comes back.
This uses the same unofficial sign-in as the Garmin Connect app, via python-garminconnect. Garmin can change that whenever it likes. Use it for your own account.
Settings
~/.garmin-stats-skills/config.toml (in Finder: ⌘⇧G, paste the path):
Setting | Default | |
| your choice at install | how much history to keep, up to 1826 (5 years); lowering it deletes older days from your Mac |
|
| older days fetched per sync; higher is faster, but more likely to get you blocked |
|
| recent days fetched again on every sync, because Garmin revises them |
|
|
|
|
| save each workout's original recording in |
|
| minimum gap between Garmin requests (don't go lower) |
|
| how often to sync (then run |
|
| keep Garmin's full detail: minute-level sleep, HR samples, splits |
|
| where the cache lives |
Update, uninstall
To update, run the install line again. That updates Claude Code and Codex
too; start a new session afterwards. For the Claude app, upload the new zip. If
you'd rather have its plugin updates arrive on their own, add it as a
marketplace instead: Settings → Plugins → Browse plugins → Add → Add marketplace, and
paste https://github.com/jwiderberg/garminkollen.
To uninstall, run this. If you added the plugin to the Claude app, remove it there too:
curl -fsSL https://raw.githubusercontent.com/jwiderberg/garminkollen/main/uninstall.sh | bashUnder the hood
A local stdio MCP server (garmin-stats mcp), a launchd agent running
garmin-stats sync, and a skill in skills/garmin-stats. Claude's manifest is
in .claude-plugin, Codex's is in .codex-plugin, and both use the same skill
and .mcp.json. To add it to Codex by hand, once the helper is installed:
codex plugin marketplace add jwiderberg/garminkollen
codex plugin add garmin-stats-skills@garmin-stats-skillsThe command line is there if you want it:
garmin-stats status | history [5y] | sync [--days N] | login | schedule [--off] | plugin-zip | logoutuv sync --extra dev && uv run pytest # tests
./install.sh --no-setup # install this checkoutReleases attach Garmin-Stats.zip.
Licence and credits
MIT. See LICENSE. Not affiliated with or endorsed by Garmin.
Built on other people's good work:
python-garminconnect by Ron Klinkien and contributors (MIT): all the hard work of talking to Garmin Connect
curl_cffi (MIT), which garminconnect uses to sign in
MCP Python SDK (MIT): the server Claude and Codex talk to
uv by Astral (MIT/Apache-2.0): installs the helper and its Python
The full dependency list, with licences, is in THIRD_PARTY_NOTICES.md.
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
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
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).
Garmin data in ChatGPT, Claude & other AI apps via the Garmin Health API. No password sharing.
Explore Garmin activity and health data with your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Claude and any MCP client to read a user's own Garmin account in plain language, covering activities, time-series charts, thresholds, sleep, HRV, Body Battery, stress, readiness and trends. It also serves a private local dashboard that downloads the full training and health history, correlates metrics across views, and exports any table as CSV.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA read-only remote server that lets Claude query your own Garmin Connect account through Garmin's official Personal API, with OAuth sign-in so it works in the mobile app as well as on desktop. It exposes sleep, HRV, recovery, Body Battery, stress, heart rate and activity tools for natural-language questions like "should I train hard today?" or "compare my last three long runs."MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to answer questions about your own Garmin Connect data — sleep, steps, heart rate, HRV, Body Battery, weight, and workouts including strength sets — by exposing read-only tools backed by Garmin's official Personal API. Access is locked behind GitHub OAuth and responses are stripped of names, photos, and GPS coordinates to keep the data private.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to answer natural-language questions about your own sleep, heart rate, steps, stress, body composition, and workouts through a private, read-only, OAuth-locked server that queries Garmin Connect data.MIT