garmin-connect-personal-mcp
An MCP server that lets any AI assistant answer questions about your own Garmin data: sleep, HRV, stress, body battery, training and activities.
It syncs Garmin's official Personal API into a SQLite archive on your machine and serves it to Claude, ChatGPT, Gemini, Cursor, VS Code, Codex and any other MCP client.
Unofficial. This project is not affiliated with, endorsed by, or supported by Garmin. Garmin and Garmin Connect are trademarks of Garmin Ltd. or its subsidiaries.
Not medical advice. The data comes from consumer wearables. This server reports numbers and trends; it does not diagnose anything.
Status
Alpha. Syncing, the local archive and the stdio MCP server work and are tested on macOS, Linux and Windows. ChatGPT can connect through OpenAI Secure MCP Tunnel; see the ChatGPT guide. An optional Streamable HTTP mode is also available for self-hosted deployments.
Quickstart
You need uv and a Garmin Personal API key.
-
Install:
uv tool install garmin-connect-personal-mcp
To update later:
uv tool upgrade garmin-connect-personal-mcp. -
Save your key. Create one in Garmin Connect, then paste it at the hidden prompt:
garmin-connect-personal-mcp init -
Download your data (the last 90 days; later runs pick up where they left off):
garmin-connect-personal-mcp sync --days-back 90
-
Keep it up to date (optional, recommended). Garmin's API won't fill in old days on request, so a daily sync keeps your history complete:
garmin-connect-personal-mcp schedule install
-
Connect your assistant. Run it without
--writefirst to see what it will change:garmin-connect-personal-mcp install-client claude-desktop --write
Other clients:
claude-code,cursor,vscode,gemini,codex. See docs/clients for each one.For ChatGPT, run the guided setup:
garmin-connect-personal-mcp setup-chatgptIt checks prerequisites and configures a private Secure MCP Tunnel. OpenAI account/workspace setup is required; see the ChatGPT guide.
On macOS, optional background startup keeps the tunnel running without an open terminal. Nothing is enabled automatically.
-
Ask: "How did I sleep last night?"
What you can ask
- "Summarize my training and recovery this week."
- "Is my resting heart rate lower than three months ago?"
- "How has my weekly running distance built up since July?"
- "Anything unusual in my HRV lately?"
- "Show me my sleep stages for the last two weeks."
Ask to see your data ("show me my last 7 days of sleep") and apps that support MCP Apps (Claude Desktop, claude.ai, ChatGPT, VS Code) display an interactive chart. Elsewhere you get the same numbers as text.
The assistant uses seven tools: garmin_describe_data, garmin_get_day, garmin_get_trend, garmin_list_activities, garmin_get_activity, garmin_show_chart and garmin_sync. See docs/tools.md. Missing data is reported as missing, never as zero.
Troubleshooting
Run:
garmin-connect-personal-mcp doctor
It checks your API key, Garmin access, the local archive, recent sync errors and the daily schedule, and says how to fix anything wrong. The report contains no API key, health data or home folder path, so you can paste it into an issue as is. Add --offline to skip contacting Garmin.
Privacy
- You run it yourself, with your own key. There is no hosted service, and your data never passes through this project.
- Your archive and API key stay on your machine, outside this repository.
- The only network calls go to Garmin's own API, to sync.
serve --read-onlyturns even that off. - Tools never return your name, profile photos or GPS coordinates, even though Garmin's records contain them, so a cloud assistant isn't told where you live.
Development
uv sync
uv run pre-commit install
uv run pytest
AGENTS.md has the commands and repo rules, for people and AI coding agents alike. To report a security problem, see SECURITY.md.
License
Metadata
Release files for garmin-connect-personal-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| garmin_connect_personal_mcp-0.2.0.tar.gz | 227.8 kB | With provenance | Details for garmin_connect_personal_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garmin_connect_personal_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for garmin_connect_personal_mcp-0.2.0-py3-none-any.whl |
Total release size: 305.8 kB
Release files / garmin_connect_personal_mcp-0.2.0.tar.gz
| Download URL | garmin_connect_personal_mcp-0.2.0.tar.gz |
|---|---|
| Size | 227.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6788d1977990b5eb2528825c097dc7a675ed6edfb9871c2ccd5f605445775315
|
|
BLAKE2b-256 checksum How to use checksums |
fcd71b25b05626ad250b0bee248a8c76eaab4d2451d82f45bdeb639c66decfbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / garmin_connect_personal_mcp-0.2.0-py3-none-any.whl
| Download URL | garmin_connect_personal_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 78.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a75f09c254070f07ca983893a3dd4d89a3abda97b15a310ca51bef822a4aff0b
|
|
BLAKE2b-256 checksum How to use checksums |
9a03b655c45a552015ecc0d33555f540d59048d3109fc85c1caa2ed695365684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for garmin-connect-personal-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for garmin_connect_personal_mcp-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.