GARMIN Connect MCP
Provides tools for reading a user's Garmin Connect health and fitness data: sleep and naps, recovery and readiness, Body Battery, stress, resting heart rate, daily vitals, steps and daily activity, training load, running tolerance and running summaries, VO2 Max, endurance/hill scores, race predictions, heart-rate/power zones, personal records, gear mileage, devices, and body metrics.
Click on "Deploy 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 Connect MCPHow did I sleep last night and what's my Body Battery today?"
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 Connect MCP
LLM-agnostic Garmin Connect MCP server for sleep and naps, recovery, Body Battery, training readiness, training load, running tolerance, VO2 Max, endurance and hill scores, race predictions, gear mileage, and running summaries.
Use the same local Garmin tools from any MCP client — Cursor, Continue, Codex CLI, Gemini CLI, Hermes, opencode — or from provider-backed demo agents using DeepSeek, OpenAI, OpenRouter, or Gemini.
Tribute & Thanks
GARMIN Connect MCP is built on kavakoss/mcp-garmin-connect. The original MCP server, Garmin client, caching layer, running tools, demo mode and test suite are the work of kavakoss. Huge thanks for building it and sharing it as open source under the MIT License. 🙏
This project extends that foundation with richer sleep data (naps, stages, overnight vitals), 10 new tools, and activity weather plus time in HR and power zones. kavakoss's original commit history is preserved in this repository, and their original project was in turn inspired by Jack-Abyss/claude-garmin.
Related MCP server: garmin-coach-mcp
What's New In This Version
Richer
get_sleep— naps (time, length, Garmin feedback), deep/light/REM/awake stages with ratings, bedtime and wake time, overnight HRV, SpO2, respiration, sleep stress, Body Battery recharge, skin temperature, and Garmin's sleep need with recommended bedtime.10 new tools — daily activity, Body Battery, daily vitals, training readiness history, performance metrics, race prediction trend, running tolerance, gear, devices, and body metrics (see MCP Tools).
Richer
get_activity_detail— weather during the activity (°C, km/h) and minutes in each heart-rate and power zone.Fix —
get_recoveryreports recovery time in hours (Garmin returns minutes).
See It In Action

Recorded with garmin-mcp serve --demo, which serves deterministic fictional sample data — no Garmin credentials and no real health data involved:
uv run garmin-mcp serve --demoWorks With Any MCP Harness
This server implements standard MCP over stdio and Streamable HTTP, so there is no harness-specific adapter to maintain. If your tool speaks MCP, it works:
Harness | Connection |
Codex CLI | MCP server config |
Gemini CLI | MCP server config |
Cursor, Windsurf, Zed, VS Code Copilot, Continue | MCP server settings (stdio or HTTP) |
opencode |
|
Hermes | stdio or HTTP |
Other desktop and CLI clients |
|
Custom agents, web bots, scripts | Streamable HTTP at |
Any client that supports MCP over stdio or Streamable HTTP can use every tool and prompt in this server with no extra code.
Why This Exists
Most fitness advice from LLMs is generic. This server lets an LLM inspect your real Garmin Connect data first, then answer with context from your activities, recovery markers, HRV, sleep, naps, Body Battery, stress, VO2 Max, and running history.
The core server is provider-neutral. DeepSeek, OpenAI, OpenRouter, and Gemini integrations are optional demo bridges for clients that do not speak MCP directly.
Features
26 Garmin tools and 4 prompt templates for training, recovery and sleep analysis.
Demo mode —
serve --demoruns on fictional sample data with no credentials, for try-outs and recordings.Local MCP server over
stdioor Streamable HTTP (/mcp).Endpoint-level TTL cache with single-flight factories — concurrent tool calls share one Garmin request instead of stampeding the API.
Global request concurrency cap so parallel snapshots stay within a safe request rate.
Partial-error reporting — composite tools include an
errorsarray when an endpoint fails, instead of silently returning nulls.Metric units — Garmin's imperial weather values and gram-based weights are converted for you.
Provider demo bridge for
deepseek,openai,openrouter, andgemini.Explicit opt-in before Garmin health/activity data is sent to any external LLM provider.
Mocked test suite plus optional live Garmin smoke tests.
Quick Start
git clone https://github.com/sheloab/GARMIN-Connect-MCP
cd GARMIN-Connect-MCP
uv sync
cp .env.example .envSet Garmin credentials in .env:
GARMIN_EMAIL=you@example.com
GARMIN_PASSWORD=your-passwordAuthenticate once (interactive MFA supported):
uv run garmin-mcp login
uv run garmin-mcp doctor --liveList available MCP tools, then run the server:
uv run garmin-mcp tools
uv run garmin-mcp serve --transport stdioHTTP transport:
uv run garmin-mcp serve --transport http --host 127.0.0.1 --port 8765
# clients connect to http://127.0.0.1:8765/mcpWindows (PowerShell) equivalents:
uv sync,Copy-Item .env.example .env,notepad .env, then the sameuv run garmin-mcp ...commands.
MCP Client Setup
Generic stdio config for a local checkout:
{
"mcpServers": {
"garmin": {
"command": "uv",
"args": [
"--directory",
"/path/to/GARMIN-Connect-MCP",
"run",
"garmin-mcp",
"serve",
"--transport",
"stdio"
]
}
}
}Credentials are read from the repo's .env file, so no env block is needed.
opencode (opencode.json):
{
"mcp": {
"garmin": {
"type": "local",
"command": [
"uv",
"--directory",
"/path/to/GARMIN-Connect-MCP",
"run",
"garmin-mcp",
"serve",
"--transport",
"stdio"
],
"enabled": true
}
}
}Per-client examples (Cursor, Continue, Hermes, generic stdio/HTTP) live in docs/clients.
MCP Tools
Recovery and sleep
Tool | Purpose |
| Readiness, HRV, sleep, body battery, resting HR, training status if available |
| Sleep duration and score, naps, stages, bedtime/wake time, overnight HRV/SpO2/respiration/stress, and sleep need |
| New. Daily readiness score with each factor's contribution: sleep, sleep history, recovery time, acute load, stress history, HRV |
| New. Charged, drained, high, low, level at wake, sleep recharge, latest level, and the events (sleep, naps, activities) that moved it |
| Daily RHR with 7-day and 30-day trend summaries, up to 30 days |
| Daily stress buckets and average stress |
| New. Daily HR (min/max/resting), SpO2, respiration, time in rest/low/medium/high stress, and altitude |
| Compact recovery, sleep, RHR, and stress snapshot |
Activity and training
Tool | Purpose |
| New. Steps vs goal, distance, floors, calories, intensity minutes, active/sedentary time, and weekly intensity minutes vs goal |
| Recent normalized activity summaries |
| One activity with training effect, weather, and time in HR and power zones |
| Per-lap splits with pace, HR, cadence, elevation and HR drift |
| Volume by sport based on recent activities |
| Native Garmin Training Load when the device/account exposes it |
| New. Weekly running impact load as a percentage of Garmin's running tolerance |
| Running summary with pace, HR, longest and fastest run |
| Monthly running breakdown |
Performance
Tool | Purpose |
| VO2 Max, FTP, and race predictions |
| New. Endurance score and level, hill score, fitness age, lactate threshold (HR, pace, running power), heat/altitude acclimation, VO2 Max trend |
| New. Daily 5K/10K/half/marathon predictions and how they changed |
| Heart-rate zones and thresholds from Garmin user settings |
| Garmin personal records |
Gear, devices and body
Tool | Purpose |
| New. Shoes and other gear with distance, activity count, and percent of max distance used |
| New. Registered Garmin devices, firmware version, and last upload |
| New. Weigh-ins and body composition, blood pressure readings, and today's hydration |
| Broad multi-section Garmin snapshot |
MCP Prompts
recovery_checkweekly_training_reviewactivity_analysisrace_plan_context
Configuration
All settings come from environment variables (.env is loaded automatically).
Variable | Default | Purpose |
| — | Garmin Connect account email (required) |
| — | Garmin Connect password (required) |
|
| Directory for the OAuth token cache |
|
| TTL for cached Garmin endpoint responses |
|
| Global cap on in-flight Garmin requests |
| unset |
|
Provider bridge variables (optional): DEEPSEEK_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, GEMINI_API_KEY, plus the matching *_BASE_URL and *_MODEL overrides.
How It Stays Fast And Quiet
Endpoint-level cache. Sleeping, stress, RHR, and activity fetches are cached per day/limit and shared across every tool that needs them — a
get_full_snapshotburst reuses the same responses instead of refetching.Single-flight. If two tool calls ask for the same missing key, only one hits Garmin; the other waits and reuses the result.
Failures are never cached. A failed endpoint is retried on the next call.
Concurrency cap. All outbound Garmin calls pass through one bounded semaphore (
GARMIN_MAX_CONCURRENCY) so parallel sections cannot flood the API.Visible partial failures. When an optional endpoint fails, composite tools add an
errorsarray (source + exception) to their output.
Provider Demo Agents
Provider API access may require a paid account or credits even if the provider's web app has a free tier.
DEEPSEEK_API_KEY=sk-...
OPENAI_API_KEY=sk-...
OPENROUTER_API_KEY=sk-or-...
GEMINI_API_KEY=...Provider | Env key | Default model | API style |
DeepSeek |
|
| OpenAI-compatible Chat Completions |
OpenAI |
|
| OpenAI Chat Completions |
OpenRouter |
|
| OpenAI-compatible Chat Completions |
Gemini |
|
| Gemini Generate Content API |
uv run garmin-mcp ask "How is my recovery today?" --provider deepseek --allow-external-health-data
uv run garmin-mcp ask "Summarize my running for 90 days." --provider openai --allow-external-health-data
uv run garmin-mcp ask "What should I focus on this week?" --provider gemini --allow-external-health-dataThe --allow-external-health-data flag is required because Garmin tool results can be sent to the selected provider.
Privacy And Safety
Your
.envfile and Garmin token cache stay local and are ignored by git.MCP clients that run locally can call Garmin tools without sending provider API keys to this project.
Provider demo commands such as
garmin-mcp askcan send Garmin health/activity results to the selected LLM provider, so the CLI requires--allow-external-health-data.get_zonesreturns only zone/threshold fields from the Garmin profile, not the raw profile (gender, birth date, weight, and similar PII are trimmed).
Testing
uv run garmin-mcp doctor
uv run garmin-mcp doctor --live
uv run garmin-mcp tools
uv run ruff check .
uv run pytestCI runs on Linux (Python 3.11, 3.12, 3.13) and Windows (3.12). Optional live tests are gated and never run in CI:
$env:GARMIN_LIVE_TEST = "1"
uv run pytest tests/liveTroubleshooting
Garmin rate-limited the request— lowerGARMIN_MAX_CONCURRENCY(for example to3) and retry after a few minutes.Garmin authentication failed— checkGARMIN_EMAIL/GARMIN_PASSWORD, then runuv run garmin-mcp loginfrom a real terminal (MFA prompts need interactive input).A tool returns
errors— the array names the endpoint that failed; the rest of the payload is still valid partial data.A tool returns empty lists (for example
get_body_metrics) — nothing was logged in Garmin Connect for that period.
Garmin Disclaimer
This project uses the community garminconnect Python package and Garmin Connect endpoints. Garmin Connect is not a public API for individual open-source projects, and authentication or endpoint behavior may change without notice. This project is not affiliated with or endorsed by Garmin.
Some metrics depend on Garmin device capabilities. For example, a device may expose VO2 Max and Training Effect but not native Garmin Training Load or Training Status. Zone availability depends on what the Garmin user settings endpoint exposes for your account.
License
This project is licensed under the MIT License.
Original work © 2026 kavakoss — kavakoss/mcp-garmin-connect. Extensions © 2026 sheloab.
This server cannot be deployed
Maintenance
Related MCP Connectors
Unofficial Garmin Connect access: sleep, HRV, training, activities, workouts and weight.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Adaptive running coach MCP server — training data, plans, and recovery for AI assistants.
Multi-tenant hosted MCP server for Oura Ring — 21 read-only tools, OAuth per user.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenancePersonal MCP server for interacting with your Garmin Connect data. Exposes 62 tools across 11 domains including activities, health, training, and workouts.1MIT
- AlicenseAqualityBmaintenanceMCP server for reading and querying Garmin Connect data, including activities, strength history, recovery, trends, and optionally creating workouts.12MIT
- FlicenseAqualityCmaintenanceProvides read-only access to your Garmin Connect health data, including sleep, HRV, body battery, stress, training readiness, and activities, through an MCP server.14-
- AlicenseNot gradedqualityCmaintenanceA local MCP server that exposes your Garmin Connect data—sleep, HRV, training readiness, workouts, and more—to any MCP-compatible AI assistant. Runs entirely on your machine and keeps your Garmin credentials private.MIT