personal-mcp-for-garmin
An unofficial, read-only MCP server for your own Garmin Connect™ data, built on Garmin's official Personal API. Ask Claude (or any MCP client) about your sleep, HRV, Body Battery, runs and more.
- Bring your own key. Runs on your computer and talks only to Garmin. No shared server, no telemetry.
- Read-only. 23 tools, none of which change anything in your Garmin account.
- Attributed. Every result is labelled
data_source: "Garmin", per Garmin's API Brand Guidelines. - Standard library only for the Garmin client; the single dependency is the MCP Python SDK.
1. Create your Personal API key
- Sign in to Garmin Connect on the web and open Personal API Key.
- Select Create Key, accept the terms, choose an expiry (30, 90 or 180 days, or 1 year) and Create.
- Copy the key. Garmin shows it only once. Garmin emails you about a week before it expires.
2. Install
All options need uv (curl -LsSf https://astral.sh/uv/install.sh | sh).
Option A: Claude Code plugin (recommended)
In Claude Code:
/plugin marketplace add jojomango/personal-mcp-for-garmin
/plugin install personal-mcp-for-garmin@jojomango
Claude Code asks for your key in a masked field and keeps it in its secure credential store, not in
any settings file. To change it later, open /plugin, select the plugin and choose Configure.
Option B: Codex, Claude Desktop or any other MCP client
Save your key once, in your own terminal (input is hidden; the key is verified with Garmin, then
saved to ~/.config/personal-mcp-for-garmin/ with permissions 600):
uvx --from personal-mcp-for-garmin personal-mcp-for-garmin-setup
Codex CLI:
codex mcp add garmin -- uvx personal-mcp-for-garmin
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["personal-mcp-for-garmin"]
}
}
}
None of these configurations contain your key.
Option C: Claude Desktop extension file
Download the .mcpb file from the Releases
page and open it with Claude Desktop. It asks for your key and keeps it in your operating system's
secure storage.
Then try: "How did I sleep this week?" or "Compare the heart rate of my last three runs."
Tools
| Tool | Data |
|---|---|
daily_summary |
Steps, calories, resting HR, stress, Body Battery, intensity minutes (one day or a range) |
sleep |
Sleep stages and score (one night or a range) |
heart_rate |
All-day heart rate for one day |
hrv |
HRV status and baseline (one day or a range) |
body_battery, stress, steps, hydration |
Daily statistics for a range |
spo2_acclimation |
Pulse Ox and altitude acclimation |
weight, weight_goal |
Weight, body composition and goals |
vo2max, fitness_age, heart_rate_zones |
Fitness metrics |
nutrition |
Food log |
menstrual_cycle |
Cycle summary or day view |
user_settings |
Units, profile and sleep schedule |
activities |
Search workouts, with pace, HR zones, cadence and stride in compact mode |
activity_detail, activity_workouts |
One workout in detail |
activity_summary_range |
Wellness activities such as breathwork (not workouts) |
activity_types |
Valid activity type keys |
download_activity_file |
Save the original FIT file to ~/Downloads/garmin |
Dates accept YYYY-MM-DD, today or yesterday. Training readiness, training status and
respiration are not available in the Personal API, so they are not included.
Configuration
| Variable | Default | Purpose |
|---|---|---|
GARMIN_API_KEY |
— | Use this key instead of the saved file |
GARMIN_REGION |
global |
Set to cn for China-region (garmin.cn) accounts |
GARMIN_CACHE_TTL |
300 |
Seconds to reuse identical results (0 disables) |
GARMIN_DOWNLOAD_DIR |
~/Downloads/garmin |
Where download_activity_file saves files |
GARMIN_MCP_CONFIG_DIR |
~/.config/personal-mcp-for-garmin |
Where the setup command stores the key |
Security and privacy
- Your key never enters this repository. If you ever expose it, delete it on Garmin Connect at once: every token issued from it stops working immediately.
- Data flows only between Garmin and your computer, then to the MCP client you choose. See PRIVACY.md.
Development
uv run python -m unittest discover -s tests # offline tests against a mock Garmin API
npx @anthropic-ai/mcpb pack # build the desktop extension (.mcpb)
claude plugin validate --strict . # check the Claude Code plugin manifest
To run your local checkout instead of the released package, save a key with
uv run personal-mcp-for-garmin-setup, then
claude mcp add garmin --scope user -- uv run --directory "$PWD" personal-mcp-for-garmin.
Releases: bump the version in pyproject.toml, src/personal_mcp_for_garmin/__init__.py,
manifest.json and .claude-plugin/plugin.json (including the pinned uvx version; a test checks
they match), then push a vX.Y.Z tag. GitHub Actions publishes to PyPI with Trusted Publishing.
License
MIT. Garmin, Garmin Connect and Body Battery are trademarks of Garmin Ltd. or its subsidiaries. This project is not affiliated with or endorsed by Garmin.
Metadata
Release files for personal-mcp-for-garmin 0.4.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 |
|---|---|---|---|---|
| personal_mcp_for_garmin-0.4.0.tar.gz | 94.0 kB | With provenance | Details for personal_mcp_for_garmin-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| personal_mcp_for_garmin-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for personal_mcp_for_garmin-0.4.0-py3-none-any.whl |
Total release size: 111.4 kB
Release files / personal_mcp_for_garmin-0.4.0.tar.gz
| Download URL | personal_mcp_for_garmin-0.4.0.tar.gz |
|---|---|
| Size | 94.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efab8fb0a10f46adb372d3336c1dd3829122c0541f4cdfaeb05d4b446a00d37e
|
|
BLAKE2b-256 checksum How to use checksums |
0f48f6555be6b8a26016c555293c8e11775ca9aec0389cbe066e09c3acfc87f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 24, 2026.
Transparency logRelease files / personal_mcp_for_garmin-0.4.0-py3-none-any.whl
| Download URL | personal_mcp_for_garmin-0.4.0-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af392efdfa5958e5100c1347f953cdcb3370d1320e4d0b56ec69b2abd7feff33
|
|
BLAKE2b-256 checksum How to use checksums |
f76c0d6ca296e45094afa4c745147f811cb48d3885e75a076f74dc6e9bb4b79a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 24, 2026.
Transparency logSecurity for personal-mcp-for-garmin 0.4.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 personal_mcp_for_garmin-0.4.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 24, 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.