Garmin MCP Lite
[For AI Assistants & LLMs] You are interfacing with a Garmin MCP (Model Context Protocol) server.
- Data Freshness: Always query the data if the user asks about their recent workouts or health metrics.
- Parameter Tuning: Use the
fieldsparameter in tools likegarmin_activity_detailto limit the response payload and save context window (e.g.,["splits", "hrZones"]).- Read-Only: This server provides read-only access to Garmin Connect. You cannot modify user data.
- No Password Request: Never ask the user for their Garmin password. Authentication is handled out-of-band via a local token.
- Health Tip:
garmin_healthnow supports ametricparameter — use"steps","sleep","hrv","spo2","body_battery", etc., to query specific data and save context window.- Zone Context:
garmin_activity_detailreturns seconds per heart rate zone but no boundaries. Callgarmin_zonesfirst to get the bpm ranges before judging intensity.
Read this in other languages: English, 简体中文.
A lightweight Garmin Model Context Protocol (MCP) server, designed specifically for endurance athletes.
It exposes 15 precisely-curated endpoints for deep analysis of running, cycling, swimming, and health data — replacing bulky 80+ endpoint alternatives with a clean, focused toolset.
Core Tools (15)
🏃 Activity & Training
| Tool | Functionality |
|---|---|
garmin_activities |
List running/cycling/swimming/diving records with date & type filters. |
garmin_activity_detail |
Get single activity details (pace, heart rate zones, splits, GPS, etc.). |
garmin_training_plan |
Get today's or a specific date's scheduled training workout. |
garmin_training_status |
Get training status, VO2Max, acute load, load focus distribution (aerobic/anaerobic), recovery time, and training readiness score. |
garmin_weekly_stats |
Get weekly/monthly/yearly training volume statistics. |
garmin_coach |
Overview of current Garmin Coach training plans. |
garmin_race_prediction |
Predicted 5K/10K/half/marathon finish times with pace, plus the change over a 90-day or 1-year window. |
garmin_personal_records |
Personal bests (1K → marathon, longest run/ride, swim times, step records) with the activity that set each one. |
💚 Health & Wellness
| Tool | Functionality |
|---|---|
garmin_health |
Get comprehensive health metrics: sleep quality, HRV status, stress, body battery, SpO2, respiration rate, intensity minutes, daily steps, floors climbed, and resting heart rate. Supports metric parameter for targeted queries. |
garmin_hr_trend |
Get resting heart rate trends for the last 7/30/90 days. |
garmin_zones |
Heart rate zone boundaries (bpm ranges) per sport, plus lactate threshold and FTP. Use it to interpret the hrZones durations returned by garmin_activity_detail. |
🎯 Goals & Challenges
| Tool | Functionality |
|---|---|
garmin_events |
Get your race calendar: upcoming race dates, target distances, and goal finish times. |
garmin_challenges |
Get in-progress challenges: virtual climbs, monthly badge challenges, and their completion percentages. |
⌚ Device & Gear
| Tool | Functionality |
|---|---|
garmin_gear |
Get your shoe/bike gear list and their real cumulative mileage. |
garmin_device |
Get connected device info: firmware version, update availability, primary device status, and registration date. |
Quickstart (via PyPI & uv)
The easiest way to run this server is using uvx (no cloning required).
1. Authenticate (First Time Only)
Why not just put the password in the AI config? Garmin has strict security measures. Logging in from a new location/MCP server often triggers Cloudflare CAPTCHAs or MFA email codes. If the password is in Claude's background config, the AI assistant will silently freeze or fail when challenged, with no way for you to input the code.
Therefore, this plugin uses a secure two-step strategy: Run a login script in your terminal first. If challenged, you can interactively input the MFA code. Upon success, a session token is cached locally (valid for ~1 year).
GARMIN_EMAIL="your@email.com" GARMIN_PASSWORD="your_password" uvx --with garmin-mcp-lite garmin-mcp-lite-login
(💡 China Region Users: If your account is registered in Garmin China (garmin.cn), prefix the command with GARMIN_IS_CN=true.)
2. Configure Your AI Assistant
Once authenticated, add the server to your favorite MCP-compatible AI assistant.
Claude Desktop
Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"garmin-lite": {
"command": "uvx",
"args": [
"garmin-mcp-lite"
]
}
}
}
Cursor / Windsurf / Gemini CLI
Use the exact same command and args as above. The server will automatically load the cached token from ~/.garmin-mcp-lite/garmin_tokens.json.
Chatbox / opencode / Other MCP Clients
GUI clients such as Chatbox are launched from Finder and do not inherit your shell PATH, so a bare uvx fails with spawn uvx ENOENT. uvx also downloads the package on first run, which can exceed a client's startup timeout.
Install the server once as a regular command, then point every client at its absolute path:
uv tool install garmin-mcp-lite
which garmin-mcp-lite # → ~/.local/bin/garmin-mcp-lite
Chatbox (Settings → MCP → Add custom):
{
"mcpServers": {
"garmin": {
"command": "/Users/you/.local/bin/garmin-mcp-lite",
"args": []
}
}
}
opencode (opencode.json) uses a different schema — the key is mcp, type is required, and command is an array:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"garmin": {
"type": "local",
"command": ["/Users/you/.local/bin/garmin-mcp-lite"],
"enabled": true,
"timeout": 30000
}
}
}
opencode's
timeoutdefaults to 5000 ms. Raise it if you insist onuvxinstead of an installed command.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
spawn uvx ENOENT, MCP error -32000: Connection closed |
client cannot find uvx on PATH |
use the absolute path of the installed command |
| Server never connects, no error shown | first-run download exceeded the client timeout | uv tool install first, or raise timeout |
ModuleNotFoundError: No module named 'mcp.server.fastmcp' |
mcp 2.x was resolved by a lock-ignoring install |
uv tool install --with "mcp<2" garmin-mcp-lite, or upgrade to ≥ 0.1.4 |
Tools list loads, calls fail with Garmin token not found |
no cached session on this machine | run garmin-mcp-lite-login |
Authentication failed on a garmin.cn account |
GARMIN_IS_CN missing from the client's env |
add "env": {"GARMIN_IS_CN": "true"} |
Verify the server independently of any client:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | garmin-mcp-lite
Expect a serverInfo line reporting this package's version, followed by all 15 tools.
Manual Installation (for Developers)
If you want to modify the code:
git clone https://github.com/Golden0Voyager/garmin-mcp-lite.git
cd garmin-mcp-lite
uv sync
# Login
GARMIN_EMAIL="your@email.com" GARMIN_PASSWORD="your_password" python -m garmin_mcp_lite.login
# Run server
python -m garmin_mcp_lite.server
Example Queries
Once connected, you can ask your AI assistant natural-language questions like:
- "What's my training load focus this week?"
- "Show me my race goal for June and what my current predicted finish time is."
- "How's my Grossglockner virtual climb challenge going?"
- "Is my Descent G1 firmware up to date?"
- "How many steps have I taken today? Am I on track for my daily goal?"
- "Analyze my sleep quality from last night."
Comparison with Other Garmin MCPs
| Taxuspt/garmin_mcp | garmin_mcp_lite | |
|---|---|---|
| Tool Count | 80+ | 15 |
| Naming | mcp_garmin_get_activities_by_date |
garmin_activities |
| Deep Queries | No | fields parameter controls detail granularity |
| Training Load | Basic | Acute load + load focus distribution |
| Health Depth | Basic | SpO2, respiration, intensity minutes, steps |
| Race/Challenge | No | Events calendar + challenge progress |
| Write Ops | Heavy (weight/nutrition/gear) | Read-only |
License
MIT © 2026 Haining Yu
This project is built on top of the excellent garminconnect library. It is not an official Garmin product. Please adhere to Garmin Connect's terms of service when using this tool.
Metadata
Release files for garmin-mcp-lite 0.1.5
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 | |
|---|---|---|---|---|
| garmin_mcp_lite-0.1.5.tar.gz | 130.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| garmin_mcp_lite-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 160.4 kB
Release files / garmin_mcp_lite-0.1.5.tar.gz
| Download URL | garmin_mcp_lite-0.1.5.tar.gz |
|---|---|
| Size | 130.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66f29e99eabbb1c078b648c423376e9fa94e177d574927b330e134eb9ade6834
|
|
BLAKE2b-256 checksum How to use checksums |
c50c88af14af594b85914b31be9585a25d26095418a5649299a240f8ebefe5a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / garmin_mcp_lite-0.1.5-py3-none-any.whl
| Download URL | garmin_mcp_lite-0.1.5-py3-none-any.whl |
|---|---|
| Size | 29.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e36ed020ead9a7078979cd67a1438107751f3df8246d572d3b39f85c1512054e
|
|
BLAKE2b-256 checksum How to use checksums |
adee40b69adb126d05a12cecd55e87cd3ed379904d25defbe093652a5edad483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for garmin-mcp-lite 0.1.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.