garmin-mcp
Provides tools to access Garmin Connect data, including sleep, activities, training load, HRV, body battery, steps, resting heart rate, and stress.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@garmin-mcphow did I sleep last night?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
garmin-mcp
A remote MCP (Model Context Protocol) server that exposes your Garmin Connect data to Claude as tools. Add it once as a custom connector in Claude.ai (web, desktop, mobile) and you can ask questions like "how did I sleep last night?" or "summarise my training load this week" without copy-pasting screenshots from the Garmin app.
It is single-user, read-only, and designed to deploy to Google Cloud Run for under one dollar a month.
What it does
The server logs into Garmin Connect on your behalf using the unofficial garminconnect Python library, caches the session tokens, and exposes a fixed set of tools over the MCP streamable-HTTP transport. Claude calls those tools when you ask a question that needs Garmin data.
Tools
Tool | What it returns |
| Sleep duration, stages (deep / light / REM / awake), score, overnight HRV. |
| List of recent activities with type, duration, distance, average heart rate. |
| Full metrics for one activity, including splits, HR zones, and power. |
| Daily training load with acute (ATL), chronic (CTL), and current status. |
| Current HRV status, baseline range, and the last 7 nights of readings. |
| Body battery values across the day with min, max, charged, drained. |
| Daily step count, distance, calories, floors, and intensity minutes. |
| Resting heart rate trend and average over the requested window. |
| Stress levels across the day and time-in-zone breakdown. |
Every response is a Pydantic model serialised to JSON, with null for fields Garmin did not record.
Quick start (local)
Requirements: Python 3.12 or later and uv.
# 1. Install dependencies
uv sync
# 2. Configure credentials
cp .env.example .env
# edit .env with your Garmin login
# 3. Inspect the tools in the MCP dev inspector
uv run mcp dev src/garmin_mcp/server.pymcp dev runs the server over stdio and opens the MCP inspector in your browser. From there you can call any tool and see the JSON it returns. Auth is skipped in stdio mode, so you only need the Garmin credentials set.
To run the production HTTP server locally:
uv run python -m garmin_mcp
# server listens on http://localhost:8080/mcpDeploying
See DEPLOY.md for the full Cloud Run walkthrough, including building the container, configuring environment variables, and adding the deployed URL as a custom connector in Claude.
How auth works
The server is its own OAuth 2.1 authorisation server. When you add the connector in Claude, Claude registers itself with the server using RFC 7591 Dynamic Client Registration, then sends you through a PKCE-protected authorisation flow. You enter the password you set as MCP_AUTH_PASSWORD, and the server issues a 24-hour JWT access token plus a refresh token that rotates on every use.
This is intentionally minimal: one password, one user. If someone has the password they can read your Garmin data.
Security caveats
Garmin credentials live in environment variables on Cloud Run. They never leave the server, but anyone with access to the Cloud Run console can read them. Use a Garmin account that does not double as anything important. Disabling MFA on Garmin is required for unattended login.
The OAuth password is stored as a plain env var and compared with
secrets.compare_digest. Pick a long, random one (32+ bytes).The unofficial
garminconnectlibrary can break when Garmin changes their internal API. If a tool starts returning empty data, check that package's changelog.In-memory state (registered clients, refresh tokens) is wiped on every cold start. You will be re-prompted to authorise after the server has been idle for a while; this is expected.
This server is read-only. It does not write activities, edit profile fields, or upload anything to Garmin.
Project layout
garmin-mcp/
├── pyproject.toml
├── Dockerfile
├── .env.example
├── README.md
├── DEPLOY.md
├── src/
│ └── garmin_mcp/
│ ├── __init__.py
│ ├── __main__.py # python -m garmin_mcp -> HTTP server
│ ├── server.py # FastMCP app, tools, login UI
│ ├── garmin_client.py # garminconnect wrapper
│ ├── auth.py # OAuth 2.1 provider
│ ├── cache.py # TTL cache
│ └── models.py # Pydantic response models
└── tests/
├── test_cache.py
└── test_tools.pyRunning tests and lints
uv run pytest # unit tests
uv run ruff check . # lint
uv run ruff format --check .
uv run mypy src tests # type checkAcknowledgements
garminconnectby cyberjunky for doing the hard work of reverse-engineering the Garmin Connect API.The Model Context Protocol team for the SDK.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tyler-Irving/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server