garmin-mcp
Allows interaction with Garmin Connect data, providing tools for activities, health metrics, body composition, training, workouts, nutrition, profile, devices, extras, stats, and write operations.
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-mcpshow my last 5 running activities"
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
Personal MCP server for interacting with your Garmin Connect data.
Exposes 62 tools across 11 domains — activities, health, body composition, training, workouts, nutrition, profile, extras, stats, write, and workout write — via the Model Context Protocol over stdio transport. Works with Claude Desktop, VS Code / GitHub Copilot, Cursor, OpenCode, and any other MCP-compatible AI client.
Security & credentials
Read this before you do anything else.
Your Garmin email and password are used exactly once — during the one-time
garmin-mcp-auth setup step — to authenticate with Garmin's servers over HTTPS.
They are never written to disk, never logged, and never stored anywhere by this
software.
What is stored afterward is a small OAuth token file managed by the
garminconnect library:
~/.garminconnect/<user_id>/garmin_tokens.jsonThat file contains exactly three fields:
Field | What it is |
| Short-lived access token |
| Refresh token |
| Garmin client identifier |
No email address. No password. No display name. No health data. The file lives outside your project folder and cannot accidentally be committed to git.
This repo contains no hardcoded credentials, no telemetry, and no outbound network calls except directly to Garmin Connect's own servers.
Related MCP server: Garmin MCP Server
Requirements
Python 3.11+
uv package manager
A Garmin Connect account
Setup
1. Install uv
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
(Invoke-WebRequest -Uri https://astral.sh/uv/install.ps1 -UseBasicParsing).Content | powershell -c -2. Clone and install dependencies
git clone https://github.com/gabecorsini/garmin-mcp.git
cd garmin-mcp
uv sync3. Authenticate with Garmin Connect (one-time)
uv run garmin-mcp-authYou will be prompted for your Garmin email, password, and MFA code (if enabled).
Tokens are saved to ~/.garminconnect/<user_id>/garmin_tokens.json and refreshed
automatically on subsequent runs.
4. Verify the server starts
uv run python -m garmin_mcpYou should see: [garmin-mcp] Connected to Garmin Connect as: <your display name>
Press Ctrl+C to stop.
MCP client configuration
Replace /absolute/path/to/garmin-mcp (or the Windows equivalent) with the actual
path to your cloned repo in every snippet below.
Claude Desktop
Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"garmin": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/garmin-mcp",
"python",
"-m",
"garmin_mcp"
]
}
}
}VS Code / GitHub Copilot
VS Code uses a different key ("servers", not "mcpServers").
Workspace config — create .vscode/mcp.json in your project:
{
"servers": {
"garmin": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/garmin-mcp",
"python",
"-m",
"garmin_mcp"
]
}
}
}User profile config — open the Command Palette, run
MCP: Open User Configuration, and add the same block.
Cursor
Global config file: ~/.cursor/mcp.json
Project-level config file: .cursor/mcp.json
{
"mcpServers": {
"garmin": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/garmin-mcp",
"python",
"-m",
"garmin_mcp"
]
}
}
}OpenCode
Config file: ~/.config/opencode/opencode.json
OpenCode requires the command to be an array (not a string + args object).
Use the full path to your uv executable.
{
"mcpServers": {
"garmin": {
"command": [
"/path/to/uv",
"run",
"--directory",
"/absolute/path/to/garmin-mcp",
"python",
"-m",
"garmin_mcp"
]
}
}
}Find your uv path with which uv (macOS/Linux) or (Get-Command uv).Source (Windows PowerShell).
OpenCode agent
A ready-made agent definition is provided at
agents/garmin.md. Copy it to your OpenCode agents folder:
# macOS / Linux
cp agents/garmin.md ~/.config/opencode/agents/garmin.md
# Windows (PowerShell)
Copy-Item agents\garmin.md "$env:USERPROFILE\.config\opencode\agents\garmin.md"Once installed, OpenCode will load the Garmin-specific context and guidance
automatically when you start a conversation with the garmin agent. The agent
knows all 62 tool names, understands when data might not be available (older
devices, non-running activities, etc.), and provides examples for common queries.
Available tools
Activities (9)
Tool | Description |
| Recent activities with pagination and optional type filter |
| Full detail for a specific activity by ID |
| HR zone breakdown for an activity |
| Activities within a date range |
| Per-split pace and HR data |
| Typed splits (auto laps, manual laps, intervals) |
| All-time personal records |
| Total activity count |
| Most recent activity summary |
Health & Wellness (13)
Tool | Description |
| Sleep stages, score, SpO2, respiration |
| HRV nightly average, status, and baseline |
| Stress level breakdown by day |
| Body Battery charged/drained over a date range |
| Step counts and goals over a date range |
| Daily HR summary (resting, min, max, avg) |
| Resting heart rate trend over a date range |
| Breathing rate summary |
| Blood oxygen saturation |
| Moderate and vigorous intensity minutes |
| Floors climbed |
| Daily hydration log |
| Overall daily wellness summary |
Body Composition (3)
Tool | Description |
| Weight, BMI, body fat, muscle mass |
| Weight log entries over a date range |
| Aggregated weight stats (avg / min / max) |
Training & Performance (8)
Tool | Description |
| Productive / Maintaining / Overreaching status |
| 0–100 readiness score with contributing factors |
| VO2 max estimate and fitness age |
| Predicted 5K / 10K / half marathon / marathon times |
| Hill climbing efficiency score |
| Aerobic endurance score |
| Running load tolerance and injury risk signal |
| Aggregate training load and aerobic/anaerobic effect |
Workouts (2)
Tool | Description |
| Saved workout library |
| Full workout definition with steps and targets |
Nutrition (3)
Tool | Description |
| Daily macro and calorie totals |
| Individual food log entries by meal |
| Configured nutrition goals |
Profile & Devices (7)
Tool | Description |
| Account profile info |
| Unit preferences and HR zone definitions |
| All registered Garmin devices |
| Settings for a specific device |
| Registered gear (shoes, bikes, etc.) |
| Earned badges and achievements |
| Primary training device info |
Extras (6)
Tool | Description |
| Exercise sets for a strength training activity |
| Weather conditions recorded during an activity |
| Body Battery charge and drain events for a day |
| Morning Report readiness score |
| Lactate threshold HR, pace, and power |
| Garmin Fitness Age for a specific date |
Stats (5)
Tool | Description |
| Weekly step count totals over a number of weeks |
| Weekly average stress levels over a number of weeks |
| Active, completed, or archived Garmin Connect goals |
| Aggregated training progress by metric over a date range |
| Current cycling Functional Threshold Power (FTP) estimate |
Write — Health (3)
Tool | Description |
| Log a body weight measurement |
| Log a water intake entry |
| Upload a FIT, TCX, or GPX activity file |
Write — Workouts (3)
Tool | Description |
| Create a structured workout in the Garmin library |
| Schedule a saved workout onto a calendar date |
| Delete a workout from the library |
Notes
Unofficial API: This server uses the reverse-engineered Garmin Connect API via
python-garminconnect(MIT) andgarmin-health-data(Apache 2.0). Garmin does not provide an official public API. Use at your own risk.Garmin ToS: Automated access to Garmin Connect is a gray area. This tool is intended for personal, non-commercial use only. Do not use it in ways that could disrupt Garmin's services.
Rate limits: Garmin may throttle or block excessive API calls. Avoid tight loops over large date ranges.
Token refresh: Tokens are refreshed automatically. If authentication fails after an extended period, re-run
garmin-mcp-auth.Data availability: Not all tools return data for all devices or activity types. Metrics like VO2 max, race predictions, lactate threshold, and HRV require a compatible Garmin device (e.g. Forerunner, Fenix, Venu series).
Not supported: The Lifestyle Journal (mood, energy, symptoms, menstrual cycle logging) is not exposed by any known API endpoint in
python-garminconnectand cannot currently be read or written by this server.
License
MIT — Gabe Corsini, 2026
This server cannot be installed
Maintenance
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
- 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/gabecorsini/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server