Skip to main content
Glama

garmin-mcp

Connect Claude, or any MCP client, to your Garmin account. It can read your training and health data and build structured workouts for your watch.

  • "Am I recovered enough for intervals today?"

  • "How did I sleep this week compared to what Garmin says I need?"

  • "Summarize my last two weeks of running."

  • "Put 5x1km at threshold on my calendar for Tuesday, with Zone 2 recoveries."

It runs on your own computer and talks only to Garmin. There's no account to create and no database to set up.

Unofficial. This uses Garmin's private API through the garminconnect library. It isn't affiliated with or endorsed by Garmin, and it can break when Garmin changes something.

Quick start

You need Python 3.12 or newer.

1. Install

pipx install git+https://github.com/JacobHeart/garmin-mcp

Or with uv:

uv tool install git+https://github.com/JacobHeart/garmin-mcp

2. Log in

garmin-mcp login

Enter your Garmin email, password and MFA code if you use one. It then fetches some of your data, so you know right away that everything works:

Logged in. Session saved to /Users/you/.garmin-mcp/tokens (your password was not saved).

Fetching your data from Garmin:
  Account: Your Name
  Activities, last 7 days: 4, 30.12 km, 2:38:55. Latest: 2026-01-14 Morning Run
  Latest sleep: 2026-01-14: score 81, 7h 29m
  Training readiness today: 63 (MODERATE)
  Steps yesterday: 12,345
  Next workout: 2026-01-16 Tempo Run (3 in the next 14 days)

All set. Your data is coming through.

3. Connect your AI client

Claude Code:

claude mcp add --scope user garmin -- garmin-mcp

--scope user makes it available in all your projects. Then start a new session, because running sessions don't pick up new servers.

Claude Desktop: run which garmin-mcp, then add its full path to claude_desktop_config.json:

{
  "mcpServers": {
    "garmin": { "command": "/full/path/to/garmin-mcp" }
  }
}

Other MCP clients: run garmin-mcp as a stdio server.

Related MCP server: Garmin MCP

Tools

Tool

What it does

garmin_activities

Recent activities with pace, heart rate, cadence, power, training effect and totals

garmin_activity_analysis

One session in full: every lap or step with cadence, power and running dynamics, rep-by-rep comparison, km splits, heart-rate and power zones, heart-rate drift, weather, how each planned target was hit, and the full recording over time

garmin_readiness

Training readiness, recovery time, HRV, training status and load, VO2max, endurance and hill scores

garmin_sleep

Sleep score, duration vs. need, stages, overnight heart rate, HRV, stress and respiration

garmin_body_metrics

Body battery, steps, calories, stress, heart rate, intensity minutes, SpO2, weigh-ins, fitness age

garmin_race_predictions

Predicted 5K, 10K, half marathon and marathon times, plus VO2max

garmin_hr_zones

Your own heart-rate zones in bpm

garmin_upcoming_workouts

Workouts on your calendar

garmin_workouts_list

Your saved workout library

garmin_workout_get

One workout with all of its steps

garmin_workout_create

Writes. Create a workout, optionally on a calendar date

garmin_workout_update

Writes. Replace a workout, keeping its id and calendar dates

garmin_workout_schedule

Writes. Put a saved workout on the calendar

garmin_workout_unschedule

Writes. Take a workout off the calendar, keeping it in your library

garmin_workout_delete

Writes. Permanently delete a workout

The write tools change your real Garmin account. They're marked with MCP's read-only and destructive hints, so clients that support approvals can ask you first.

Workout steps

Workouts are a flat list of steps, so 5x1km is written out as five interval and recovery pairs. Each step needs a type (warmup, interval, recovery, rest, cooldown or other) and a way to end:

duration_type

duration_value

time

seconds

distance

meters

lap_button

none, it ends when you press lap

A step can also have a target_type with a target_low and target_high:

target_type

Range

pace

seconds per km, where low is the faster pace

heart_rate

bpm

power

watts

{
  "name": "Threshold 1km",
  "sport": "run",
  "scheduled_date": "2026-01-20",
  "steps": [
    { "type": "warmup", "duration_type": "time", "duration_value": 600 },
    {
      "type": "interval", "duration_type": "distance", "duration_value": 1000,
      "target_type": "pace", "target_low": 240, "target_high": 250
    },
    {
      "type": "recovery", "duration_type": "time", "duration_value": 120,
      "target_type": "heart_rate", "target_low": 120, "target_high": 140
    },
    { "type": "cooldown", "duration_type": "lap_button" }
  ]
}

Optional: training guidance for Claude

The server already gives clients its basic rules. For fuller guidance on reporting data and building workouts in Claude Code, install the included skill:

mkdir -p ~/.claude/skills && cp -R skills/garmin-training ~/.claude/skills/

Commands and settings

Command

What it does

garmin-mcp

Run the MCP server over stdio

garmin-mcp login

Sign in, save the session and show some of your data

garmin-mcp doctor

Show some of your data using the saved session, with no password needed

garmin-mcp update

Install the latest version from GitHub

garmin-mcp serve --auto-update

Run the server, and check for a new version in the background

Environment variable

What it does

GARMIN_TOKEN_DIR

Where the session is saved. The default is ~/.garmin-mcp/tokens

GARMIN_EMAIL, GARMIN_PASSWORD

Optional, for machines where you can't log in interactively

The session renews itself: Garmin's access token lasts about a day, and the server refreshes it and saves the new tokens. Several clients can run the server at once (Claude Code, Claude Desktop, the Claude app), and they share one session safely. If the session does expire, tools will ask you to run garmin-mcp login again, and running servers pick up the new session without a restart.

Updates

Updates are manual unless you turn on auto-update:

garmin-mcp update

To update automatically, start the server with --auto-update:

claude mcp add --scope user garmin -- garmin-mcp serve --auto-update

Each time the server starts, it checks GitHub in the background and installs any new commit from main. The new code applies the next time the server starts, which in Claude Code means your next session. A slow connection or a failed update won't delay or stop the server. Details of the last check are in ~/.garmin-mcp/update.log.

Only turn this on if you trust this repository. New code runs on your computer with access to your Garmin session, and nothing reviews it first.

Updating needs git and pip, and has been tested with a pip install in a virtual environment. If you installed with uv tool, use uv to upgrade instead. Development checkouts are left alone.

Privacy

  • Your password isn't saved by garmin-mcp login. Only a session token is, in a folder only your user can read. Treat that folder like a password.

  • The server sends nothing anywhere except Garmin, and has no telemetry. With --auto-update it also asks GitHub for the latest commit, which sends none of your data.

  • Whatever a tool returns goes to the AI client you connected, and is handled under that client's terms. That can include sensitive health data such as sleep, heart rate and weight.

Known limits

  • Tested on one account, on a watch with training metrics. Basic trackers report less, and missing fields are left out rather than shown as zero.

  • Rate limits. Garmin limits requests aggressively, and every read is a live call. After a 429 the server stops calling for 20 minutes.

  • Repeats are written out. Repeat groups in existing workouts are expanded when read, so updating one saves it as a flat list.

  • Pool length. Swim workouts created here don't set a pool length. Existing ones keep theirs when updated.

  • Other services. Workouts synced from a service such as TrainingPeaks may be overwritten by its next sync. These show a source field.

  • Your watch. Workouts reach your watch through Garmin's normal sync. Check a new workout before relying on it in a session.

This isn't medical advice, and the numbers are only as good as Garmin's estimates.

Development

python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
.venv/bin/ruff check .

Tests use made-up data and never contact Garmin.

License

MIT. Garmin is a trademark of Garmin Ltd., which has no connection to this project.

Available Tools

14 tools
garmin_activitiesA
Read-only

Recorded activities for the last N days, newest first, with totals: sport, distance, duration, pace, heart rate, cadence, elevation, power, training effect and load.

Inputs: days. Returns: object

garmin_body_metricsA
Read-only

Per day: body battery, steps vs. goal, distance, calories, floors, stress, heart rate range, intensity minutes, respiration, SpO2 and any weigh-in; plus current fitness age. Makes about 3 Garmin requests per day.

Inputs: days. Returns: object

garmin_hr_zonesA
Read-only

The user's own heart-rate zones in bpm, from their Garmin settings. Call this before garmin_workout_create whenever a workout is described by zone.

Inputs: sport. Returns: object

garmin_race_predictionsA
Read-only

Garmin's predicted 5K, 10K, half marathon and marathon times, plus current VO2max.

Inputs: no named parameters. Returns: object

garmin_readinessA
Read-only

Training readiness, recovery time, HRV against the user's baseline, training status and load (acute, chronic, ratio), VO2max, plus current endurance and hill scores. Use for "am I recovered?" or "should I go hard today?". Makes about 3 Garmin requests per day.

Inputs: days. Returns: object

garmin_sleepC
Read-only

Per night: sleep score, duration against Garmin's sleep need, deep/REM/light/awake minutes, overnight heart rate, HRV, stress, respiration and restless moments.

Inputs: days. Returns: object

garmin_upcoming_workoutsA
Read-only

Workouts on the user's Garmin calendar for the next N days, including today. Returns each one's schedule_id (for garmin_workout_unschedule) and workout_id.

Inputs: days. Returns: object

garmin_workout_createA

Create a structured workout in Garmin Connect, ready to sync to the user's watch. Give scheduled_date to also put it on their calendar. Write repeats out as a flat list: 5x1km is 5 interval+recovery pairs. To change an existing workout, use garmin_workout_update.

Inputs: name (required), steps (required), sport, scheduled_date. Returns: object

garmin_workout_deleteA
Destructive

Permanently delete a workout from Garmin Connect, including from the calendar. This can't be undone: name the workout and get the user's explicit go-ahead first. Only use an id from garmin_workouts_list.

Inputs: workout_id (required). Returns: object

garmin_workout_getA
Read-only

One saved workout with all of its steps, in the format garmin_workout_update accepts. Repeat groups come back written out as individual steps.

Inputs: workout_id (required). Returns: object

garmin_workout_scheduleA

Put a saved workout on the user's Garmin calendar for a date.

Inputs: workout_id (required), scheduled_date (required). Returns: object

garmin_workouts_listA
Read-only

Saved workouts in the user's Garmin library with their workout_id. Use it to find a workout to change, and to check one doesn't already exist before creating it.

Inputs: limit. Returns: object

garmin_workout_unscheduleA
Destructive

Remove a workout from the calendar. The workout stays in the user's library.

Inputs: schedule_id (required). Returns: object

garmin_workout_updateA
Destructive

Replace a workout in place, keeping its id and calendar dates. Garmin replaces the whole workout, so pass the COMPLETE step list; read it with garmin_workout_get first if needed.

Inputs: name (required), steps (required), workout_id (required), sport. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: library CRUD (list/get/create/update/delete), calendar operations (schedule/unschedule/upcoming), and separate read endpoints for activities, sleep, readiness, body metrics, race predictions and HR zones. The descriptions explicitly disambiguate the potentially confusable pairs (garmin_workouts_list vs garmin_upcoming_workouts, garmin_workout_delete vs garmin_workout_unschedule). No two tools appear to do the same thing.

    Naming Consistency4/5

    There is a clear, mostly consistent convention: a garmin_ prefix, bare noun phrases for read endpoints (garmin_sleep, garmin_activities, garmin_body_metrics) and garmin_workout_<verb> for mutations. The main wrinkle is the odd one-out garmin_workouts_list versus the singular garmin_workout_get/create/update, which breaks the pluralization pattern within the workout family.

    Tool Count5/5

    Fourteen tools sit comfortably in the well-scoped range, and every tool covers a distinct slice of the Garmin domain (workout lifecycle, calendar, and training/recovery reads). Nothing feels padded or redundant.

    Completeness4/5

    The workout lifecycle is fully covered — create, get, list, update, delete, schedule and unschedule — so there are no dead ends for the core workflow. Minor gaps remain: there is no single-activity detail tool (laps/splits/streams) and no way to duplicate a workout or manage courses/routes, but agents can work around these.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes Garmin Connect data through MCP, enabling retrieval of activities, health metrics, training status, and workouts, with OAuth authentication and confirmed write operations.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to read and update Garmin Connect data, including activities, health metrics, training status, and more, with per-account multi-tenant authentication.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables an MCP client to read and write a personal Garmin Connect account: activities with per-set strength detail, daily health metrics (sleep, HRV, stress, steps, readiness), planned and completed workouts, and weigh-ins with body composition. It also logs finished strength sessions and body-composition readings as FIT files so they appear in Garmin Connect like natively recorded ones.
      38
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to access a Garmin Connect account read-only, including activities, sleep, heart rate, and training metrics, with bearer-token or OAuth authentication.
      BSD Zero Clause