garmin-mcp
Provides tools for creating and scheduling structured workouts in Garmin Connect, managing the workout library and calendar, and reading activities, sleep, HRV, Body Battery, Training Readiness, and Training Status.
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-mcppreview a 6x800m running workout with pace targets"
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.
Personal Garmin MCP
A local MCP server for creating and scheduling structured workouts in Garmin Connect through unofficial Garmin endpoints.
This is an experimental personal project. Garmin may change the endpoints, rate-limit requests, or revoke a session without notice. Do not expose the server to the internet without adding separate authentication.
Features
verifies a saved Garmin session;
previews Garmin JSON without making changes;
creates workouts and optionally adds them to the calendar;
lists the workout library and calendar;
reads completed activities, compact summaries, and lap/split metrics;
reads available sleep, HRV, Body Battery, Training Readiness, and Training Status;
deletes workouts and removes workouts from the calendar;
supports running, cycling, walking, and hiking;
supports time, distance, and
lap buttonsteps;supports interval repeats;
supports pace, heart-rate, power, and cadence targets;
requires
confirm=truefor every change.
Related MCP server: garmin-mcp
Installation
Docker Compose — recommended
Local use requires Docker with Compose support. Build the image from the repository root:
docker compose buildThe build installs Python dependencies with uv strictly from uv.lock.
Run the interactive login once. The password and MFA code are entered directly in the
container and are not stored. OAuth tokens are saved in the private
garmin-mcp_garmin_tokens named volume:
docker compose --profile login run --rm garmin-loginStart the MCP server:
docker compose up -d garmin-mcp
docker compose psThe endpoint is available at http://127.0.0.1:8000/mcp. To use a different local port:
GARMIN_MCP_PORT=8765 docker compose up -d garmin-mcpView logs or stop the server:
docker compose logs -f garmin-mcp
docker compose downdocker compose down preserves the Garmin tokens. Running docker compose down -v
deletes the volume and its tokens.
Local installation without Docker
Python 3.12+ and uv are required.
cd /path/to/garmin-mcp
uv sync --extra devOne-time login
uv run garmin-mcp-loginThe script interactively requests an email address, password, and MFA code when required.
The password is not stored. OAuth tokens are saved to
.garmin-tokens/garmin_tokens.json with restricted permissions. The directory is already
included in .gitignore.
To store tokens somewhere else:
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcp-loginLocal MCP over stdio
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcpExample MCP client configuration:
{
"mcpServers": {
"garmin": {
"command": "/absolute/path/to/garmin-mcp/.venv/bin/garmin-mcp",
"env": {
"GARMIN_TOKEN_DIR": "/safe/private/path/garmin-tokens"
}
}
}
}Streamable HTTP for ChatGPT
export GARMIN_MCP_TRANSPORT=streamable-http
export GARMIN_MCP_HOST=127.0.0.1
export GARMIN_MCP_PORT=8000
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcpEndpoint: http://127.0.0.1:8000/mcp.
ChatGPT must be able to reach the endpoint over HTTPS. A protected tunnel can be used for personal testing. Do not expose this MVP directly to the internet: it intentionally does not include a separate OAuth resource server for access to the MCP server itself.
Example preview_workout argument
{
"workout": {
"name": "6 x 800",
"sport": "running",
"description": "Controlled intervals",
"blocks": [
{
"steps": [
{
"step_type": "warmup",
"duration_type": "time",
"duration_value": 900
}
]
},
{
"repeat": 6,
"steps": [
{
"step_type": "interval",
"duration_type": "distance",
"duration_value": 800,
"target_type": "pace_seconds_per_km",
"target_low": 250,
"target_high": 260
},
{
"step_type": "recovery",
"duration_type": "time",
"duration_value": 120
}
]
},
{
"steps": [
{
"step_type": "cooldown",
"duration_type": "time",
"duration_value": 600
}
]
}
]
}
}Pace values are specified in seconds per kilometre: 250 = 4:10/km and 260 =
4:20/km. The server converts them to the m/s values used by Garmin Connect.
After previewing, call create_workout with the same object, a date in YYYY-MM-DD
format, and confirm=true.
Read-only training context
The server exposes compact read-only tools for adapting future plans to completed work:
list_activitieslists activities in an inclusive date range, with an optional Garmin activity type filter;get_activity_summaryreturns planning metrics for one activity;get_activity_splitsreturns compact lap and interval metrics;get_recovery_statusaggregates available sleep, HRV, Body Battery, Training Readiness, and Training Status for one date.
Activity responses intentionally omit GPS coordinates and owner details. Recovery metrics vary by Garmin device, account, and date. A missing source is returned as unavailable and does not make the entire recovery request fail.
Checks
uv run --extra dev pytest
uv run --extra dev ruff check .Unit tests do not contact Garmin and do not require credentials.
Important limitations
This is not an official Garmin Training API.
Frequent logins may receive HTTP 429 responses; reuse saved tokens.
Tokens provide access to Garmin Connect and must be protected like a password.
If creation succeeds but scheduling fails, the tool returns
created_not_scheduledandworkout_id; the created workout remains in the library.Before regular use, test one simple workout in Garmin Connect and on the specific watch model.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityCmaintenanceGarmin Workouts MCP is a standalone MCP server for Garmin Connect workouts. It is intended as a focused extension for workflows that need a bit more structure around Garmin workout payloads, especially strength training.151MIT
- AlicenseNot gradedqualityCmaintenancePersonal MCP server for interacting with your Garmin Connect data. Exposes 62 tools across 11 domains including activities, health, training, and workouts.1MIT
- AlicenseBqualityCmaintenanceExposes personal Garmin Connect data to MCP-capable clients like Claude and Gemini. Enables querying daily stats, heart rate, sleep, activities, and managing workouts.16MIT
- AlicenseAqualityBmaintenanceMCP server for reading and querying Garmin Connect data, including activities, strength history, recovery, trends, and optionally creating workouts.12MIT
Related MCP Connectors
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Wger MCP — wraps wger Workout Manager REST API (free, no auth for read)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/aapiskotin/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server