garmin-mcp
Provides read-only access to a user's Garmin Connect data through Garmin's official Personal API, using a bring-your-own API key. Tools retrieve activities (with date windows, type filters, paging, and full detail for a single activity), daily summaries (steps, calories, heart rate, stress, Body Battery, intensity minutes, SpO2, respiration), sleep stages and timing, resting/min/max/7-day-average heart rate, overnight HRV, body composition and weight entries, pulse-ox and acclimation, fitness age, configured heart-rate zones, training-readiness inputs (HRV, sleep, Body Battery), and daily metric series such as steps, stress, body battery, sleep, HRV, weight, VO2 max, hydration, and daily summaries. Location coordinates and profile fields are stripped from activity output.
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-mcp
A stateless, bring-your-own-key Model Context Protocol server that lets an MCP client (Cursor, Claude, and others) read your Garmin Connect data through Garmin's official Personal API.
The server never stores your key or your fitness data. Each request carries the key, the server exchanges it for a short-lived Garmin token (held in memory only), calls Garmin, returns the result, and forgets it.
Why this exists
Garmin now offers a self-serve Personal API so individuals can access their own health and activity data with a key created in Garmin Connect. This project wraps that API as an MCP server so you can ask an assistant about sleep, training, or daily stats without standing up a database or handing a password to a third party.
Related MCP server: GARMIN Connect MCP
Features
Official Garmin Connect Personal API (no password login, no unofficial scraping)
Multi-tenant: every client sends its own key; the deployment holds none
Stateless Streamable HTTP (
stateless_http=True, JSON responses, MCP 2025-06-18)Also runs locally over stdio
Read-only tools for activities, daily summaries, sleep, heart rate, HRV, body composition, SpO2, and daily stat series
HTTPS required in production; missing or invalid keys return 401
Coordinates and owner profile fields are stripped from activity output
Security model
The server stores | The client sends |
Nothing durable. A Garmin bearer token may sit in memory on a warm instance, keyed by SHA-256 of the API key, and dies with the process. | Your Personal API key on every HTTP request ( |
Headers are never logged. Create, rotate, and revoke keys in Garmin Connect.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by Garmin Ltd. or its subsidiaries. "Garmin" and "Garmin Connect" are trademarks of Garmin. The software talks to Garmin's Personal API on your behalf. By using it you agree to Garmin's terms and the Personal API terms shown when you create a key. Use it only with a key you are authorised to use (typically your own).
Get a Garmin Personal API key
Sign in at Personal API Key settings → Create Key.
Choose an expiry (30 / 90 / 180 / 365 days) and copy the key (it is shown once). Treat it like a password.
Revoke it on the same page at any time; tokens derived from it stop working.
Quick start
Hosted HTTP (any MCP client that supports a URL + headers)
Endpoint: https://<DEPLOY_URL>/mcp
X-Garmin-Api-Key: <your key>(Authorization: Bearer <your key> is also accepted.)
Cursor (~/.cursor/mcp.json or project .cursor/mcp.json):
{
"mcpServers": {
"garmin": {
"url": "https://<DEPLOY_URL>/mcp",
"headers": { "X-Garmin-Api-Key": "${env:GARMIN_API_KEY}" }
}
}
}Claude Code:
claude mcp add --transport http garmin https://<DEPLOY_URL>/mcp \
--header "X-Garmin-Api-Key: $GARMIN_API_KEY"Claude Desktop (claude_desktop_config.json, via mcp-remote):
{
"mcpServers": {
"garmin": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://<DEPLOY_URL>/mcp",
"--header", "X-Garmin-Api-Key:${GARMIN_API_KEY}"
],
"env": { "GARMIN_API_KEY": "<your key>" }
}
}
}Local stdio (no hosted server)
From a checkout:
pip install -e .
GARMIN_API_KEY=<your key> garmin-mcp
# or: GARMIN_API_KEY=<your key> fastmcp run garmin_mcp/server.py:mcpCursor / Claude Desktop:
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["--from", "git+https://github.com/SarathChandraBellam/garmin-mcp", "garmin-mcp"],
"env": { "GARMIN_API_KEY": "<your key>" }
}
}
}uvx --from git+… needs git access to the repository (public, or an SSH/HTTPS
credential if it is still private). Otherwise install from a local clone and
point command at that environment's garmin-mcp.
Tools (all read-only)
Tool | Returns |
| Profile settings (display name, units) — a quick key check |
| Activities, newest first (optional date window, type filter, paging, |
| Full details for one activity |
| Steps, calories, heart rate, stress, Body Battery, intensity minutes, SpO2, respiration |
| Sleep stages, durations, and timing for a night |
| Resting / min / max / 7-day average (samples opt-in) |
| Overnight HRV summary |
| Weight and body-composition entries in a date range |
| Pulse-ox and acclimation for a day |
| Fitness age and components |
| Configured heart-rate zones |
| The Personal API has no Training Readiness endpoint; this returns its main inputs (HRV, sleep, Body Battery) |
| Daily series for a whitelisted metric: |
Dates are YYYY-MM-DD in the user's local calendar (DEFAULT_TIMEZONE, default
UTC). Location coordinates and owner name/profile fields are removed
from activity output.
Self-hosting
The HTTP server is a standard ASGI app at garmin_mcp.asgi:app. It needs no
environment variables (optional: DEFAULT_TIMEZONE, an IANA name; default
UTC). Serve it only over HTTPS in production. The app works
whether or not the host sends ASGI lifespan events.
pip install -e .
uvicorn garmin_mcp.asgi:app --host 0.0.0.0 --port 8000Point MCP clients at https://<your-host>/mcp and send X-Garmin-Api-Key.
Any ASGI host that can run that module works (uvicorn, gunicorn with
Uvicorn workers, and so on). Docker is optional; a typical image just
installs the package and uses the same uvicorn command as the process.
Development
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pre-commit install
ruff check . && ruff format --check . && mypy garmin_mcp && pytestUnit tests mock Garmin and do not need a key. The optional live check is:
uvicorn garmin_mcp.asgi:app --port 18790
BASE=http://localhost:18790 GARMIN_KEY_FILE=/path/to/keyfile python scripts/e2e.pySee CONTRIBUTING.md. For a later move to Garmin's partner OAuth / Health API, see PLAN-garmin-official-oauth.md.
License
MIT © 2026 Sarath Chandra Bellam
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 & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables read-only access to Garmin Connect health, activity, profile, and device data through local stdio or streamable HTTP transports for MCP clients.MIT
- AlicenseNot gradedqualityCmaintenanceGives any MCP client local access to Garmin Connect sleep and nap data, recovery and Body Battery, training readiness and load, running tolerance, VO2 Max, race predictions, gear mileage and running summaries. It runs over stdio or Streamable HTTP and includes a credential-free demo mode with fictional sample data.2MIT
- AlicenseAqualityBmaintenanceA read-only MCP server that lets AI assistants query a user's own training, recovery, sleep, activity, and wellness data through the official Garmin Connect Personal API. It can run locally or be self-hosted on Cloudflare Workers for access from Claude and other MCP clients.2778 npmMIT
- AlicenseAqualityCmaintenanceLets MCP clients such as Claude and Cursor query your own Garmin Connect data – activities, steps, sleep, HRV, Body Battery, stress and weight – read-only, with the key stored in the OS keychain. It keeps itself current by regenerating its endpoint catalog from Garmin's published OpenAPI spec, so new or changed endpoints are reviewed and shipped without hard-coding.246 PyPI1MIT