garmin-mcp
by tomkp
README.md
<img src="packaging/icon.png" width="72" alt="">
# garmin-mcp
**Ask Claude about your Garmin data.** · [tomkp.github.io/garmin-mcp](https://tomkp.github.io/garmin-mcp/)
garmin-mcp connects Claude, and other AI assistants, to your Garmin Connect account. You ask about your runs, rides, sleep and recovery in plain English, and the answer comes from your own numbers rather than general advice.
> **"Am I recovered enough for intervals today?"**
>
> *Probably not today. You slept 6h 05m against the 7h 50m Garmin says you needed, your overnight HRV was 41 ms, below your 48–62 ms baseline for the second night running, and your resting heart rate is 4 bpm above its two-week average. You've also done three hard sessions in five days. I'd keep today easy and move the intervals to Thursday.*
## Things to ask
- *"Give me my morning briefing."*
- *"How did yesterday's run compare with my other long runs this month?"*
- *"How have I been sleeping over the last two weeks, and what do the bad nights have in common?"*
- *"Is my resting heart rate trending up? Show me the last 90 days."*
- *"Summarise my training by week since January."*
- *"What's happened to my weight and VO2 max this year?"*
It can read your activities (with pace, heart rate, elevation and power from start to finish), sleep, HRV, heart rate, stress, Body Battery, steps, blood oxygen, VO2 max, fitness age, weight, food log and menstrual cycle. The [tool reference](docs/tools.md) has the full list.
## Get started
You need a Garmin Connect account and Claude. Setting up takes a couple of minutes.
### Claude Desktop
1. **Get a key from Garmin.** Sign in to Garmin Connect, open [Settings → Personal API key](https://connect.garmin.com/app/settings/personalApiToken) and choose **Create Key**. Copy the key: Garmin shows it only once.
2. **Download [garmin-mcp.mcpb](https://github.com/tomkp/garmin-mcp/releases/latest/download/garmin-mcp.mcpb)** and open it. Claude Desktop offers to install it.
3. **Choose Install, paste your key** when Claude asks for it, and switch the extension on.
Start a new chat and ask *"How did I sleep last night?"*. It works on macOS and Windows.
### Claude Code
With [Homebrew](https://brew.sh), on macOS or Linux:
```sh
brew install tomkp/tap/garmin-mcp
garmin-mcp setup
```
`setup` sends you to Garmin Connect for a key, checks the key you paste in, saves it where only you can read it, and adds the server to Claude Code.
### Anything else
Windows and Linux downloads, Docker, and other assistants such as Cursor are covered in **[Installing](docs/install.md)**.
## Is it safe?
- **It never sees your Garmin password.** It uses Garmin's official [Personal API](https://developer.garmin.com/gc-developer-program/personal/personal-api) with a key you create, and you can delete that key in Garmin Connect at any time to cut it off.
- **It can only read.** Garmin's Personal API has no way to change anything, so nothing here can edit or delete what's in your account.
- **It runs on your own computer.** There is no garmin-mcp service in the middle: your data goes from Garmin to your computer, and what the assistant looks up goes to the assistant, like anything else you tell it.
[Security](docs/security.md) describes what protects your data, and what doesn't, in detail.
## What it can't do
- Garmin's Personal API doesn't offer everything the Garmin Connect app shows. Training Status, Training Readiness, race predictions, personal records, lap splits, gear, courses and training plans aren't available.
- Nothing can be written: no uploading activities, logging weight or editing anything.
- Keys expire, after a year at most. Garmin emails you beforehand; create a new one and paste it in.
- It is for your own data. One key belongs to one person.
## More
| | |
|---|---|
| [Installing](docs/install.md) | Every way to install it, including Docker and other MCP clients |
| [Tool reference](docs/tools.md) | Every tool and ready-made prompt |
| [Configuration](docs/configuration.md) | Settings, and how the key and token work |
| [Security](docs/security.md) | What protects your data and what doesn't |
| [Development](docs/development.md) | How it is built, and how to add to it |
| [Contributing](CONTRIBUTING.md) · [Reporting a vulnerability](SECURITY.md) · [Changelog](CHANGELOG.md) | |
## Acknowledgements
The architecture and much of the plumbing (configuration, HTTP transport, tool framework, docs generator) come from [freeagent-mcp](https://github.com/tomkp/freeagent-mcp), which in turn adapted them from [crunch-mcp](https://github.com/mattoddie/crunch-mcp) by Matt Oddie, under the MIT licence. The endpoints follow Garmin's own [Python client](https://github.com/garmin/connect-personal-api-python) for the Personal API.
## License
[MIT](LICENSE)
*garmin-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Garmin Ltd. or its subsidiaries. "Garmin", "Garmin Connect" and "Body Battery" are trademarks of Garmin Ltd. or its subsidiaries.*
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues