# Bartolome69/garmin-mcp [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/Bartolome69/garmin-mcp  
**GitHub Stars:** 8  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bartolome69-garmin-mcp

## Description
Garmin Connect for ChatGPT and Claude: read runs, sleep, HRV and recovery, and write structured workouts and training plans to the Garmin calendar so they sync to the watch. Hosted at daash.run, or run it yourself.

## Tools
Capabilities this server exposes over MCP:

- **get_sleep** — Sleep duration, sleep stages, sleep score, and overnight HRV.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to last night
            (yesterday). Pass today's date to get the most recent recorded
            sleep when you wake up.
    
- **get_recent_activities** — List recent activities with type, duration, distance, and average heart rate.

    Args:
        limit: How many of the most recent activities to return. Capped at 50.
    
- **get_activity_details** — Detailed metrics for one activity, including splits and HR zones.

    Args:
        activity_id: The activity's numeric Garmin ID, as returned by
            ``get_recent_activities``.
    
- **get_training_load** — Daily training load with acute and chronic load and current status.

    Args:
        days: Number of recent days to summarise. Capped at 28.
    
- **get_hrv_status** — Current HRV status, baseline range, and the last 7 nights of readings.
- **get_body_battery** — Body battery values across the day, plus min, max, charged, and drained totals.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_steps_and_calories** — Daily step total, distance, calories, floors, and intensity minutes.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_resting_heart_rate** — Resting heart rate trend over the last ``days`` days.

    Args:
        days: How many recent days to include. Capped at 28.
    
- **get_stress** — Stress levels across the day with average, max, and time-in-zone breakdown.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_training_readiness** — Daily training readiness score (0-100) with contributing factors.

    The score reflects how prepared the user is to train, drawing on sleep,
    HRV status, recovery time, and recent training load.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_daily_briefing** — One-call morning snapshot: sleep, HRV, Body Battery, readiness, load, and RHR.

    Fuses the individual recovery and training-load tools into a single payload so
    you can reason across them in one shot instead of making six separate calls.
    Each section is fetched independently and concurrently; a section that fails
    comes back ``null`` and is named in ``sections_unavailable`` rather than
    failing the whole briefing. Also returns ``rhr_vs_baseline_bpm``, the most
    recent resting HR relative to its trailing average.

    The server returns facts only and computes no training advice — interpret the
    numbers yourself (e.g. weigh readiness, HRV status, and Body Battery together).

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today. The sleep,
            Body Battery, and training-readiness sections honour this date; the
            HRV, training-load, and resting-HR sections always report their own
            most-recent trailing window. For the default (this-morning) call
            everything lines up; passing a past date yields a mixed snapshot.
    
- **get_fitness_metrics** — VO2 max (running and cycling), fitness age, and predicted race times.

    Combines Garmin's "max metrics" tile (VO2 max, fitness age) with current
    race-time predictions for 5K, 10K, half marathon, and marathon.

    Args:
        date: Calendar date for the VO2 max snapshot in YYYY-MM-DD format.
            Defaults to today.
    
- **get_personal_records** — Personal records across activity types (fastest 1K/5K/10K, longest run, etc.).
- **get_body_composition** — Weight, body fat, and muscle-mass trend over recent days.

    Returns one row per day Garmin has a reading for, plus the latest weight
    and average over the window.

    Args:
        end_date: End of the window in YYYY-MM-DD format. Defaults to today.
        days: Window size in days. Capped at 90.
    
- **get_respiration** — Daily respiration rate: average, min, max, and waking vs. sleeping averages.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_weekly_summary** — Weekly aggregates for a single metric.

    Args:
        metric: One of "steps", "stress", or "intensity_minutes".
        weeks: How many recent weeks to include. Capped at 12.
        end_date: End of the window in YYYY-MM-DD format. Defaults to today.
    
- **get_strength_sets** — Set-by-set breakdown of a logged strength session: exercises, reps, and weight.

    Parses Garmin's recorded sets for one ``strength_training`` activity into
    working sets (with the recognised exercise, rep count, and load) plus a
    per-exercise rollup and total training volume. Rest periods are included and
    flagged. Sets Garmin could not classify come back with a null exercise name.

    Args:
        activity_id: The activity's numeric Garmin ID, from ``get_recent_activities``.
    
- **get_endurance_score** — Garmin endurance score with its activity-type contributors.

    The endurance score reflects accumulated aerobic capacity across activities.
    It only updates after qualifying activities, so a given day may have no value.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_hill_score** — Garmin hill score (climbing strength + endurance) for a date.

    Combines a strength and an endurance component into an overall hill score.
    Requires qualifying climbing efforts, so it is often empty for flat-terrain
    athletes — an empty result is reported via ``note`` rather than an error.

    Args:
        date: Calendar date in YYYY-MM-DD format. Defaults to today.
    
- **get_activity_weather** — Weather conditions recorded during an activity (temp, humidity, wind).

    Units follow your Garmin account's measurement system (US accounts report
    degrees Fahrenheit and mph).

    Args:
        activity_id: The activity's numeric Garmin ID, from ``get_recent_activities``.
    
- **preview_strength_workout** — Assemble a strength workout and show what WOULD be created — no network call.

    Resolves each exercise name to Garmin's catalog and returns a readable
    summary, the resolved Garmin name + confidence per exercise, warnings for
    anything that did not map cleanly, and a ``confirmation_token`` to pass to
    ``create_strength_workout``. Always call this first and review the result.

    Args:
        workout: the workout definition (name, blocks of sets/exercises).
    
- **create_strength_workout** — Create a strength workout in your Garmin Connect library (a WRITE).

    Requires writes to be enabled (GARMIN_WRITE_ENABLED) and a matching
    ``confirmation_token`` from ``preview_strength_workout`` (it binds to the
    exact workout previewed). The workout lands in your library — it reaches the
    watch only after you "Send to Device" in Garmin Connect and sync.

    Args:
        workout: the workout definition (same shape as preview).
        confirmation_token: token returned by ``preview_strength_workout``.
        confirm: dev/stdio only (no JWT secret) — set True to confirm.
    
- **list_workouts** — List workouts saved in your Garmin Connect library (id, name, sport).

    These are workout *templates* in the library — the source the watch syncs
    from — not logged activities. Use the ids with ``delete_workout``.

    Args:
        limit: maximum number of workouts to return (default 50).
    
- **delete_workout** — Delete ONE workout from your Garmin Connect library (a WRITE, irreversible).

    Preview-then-confirm: call without a token first — that call deletes
    nothing and returns the workout's name plus a ``confirmation_token``.
    Review the name, then call again with the token to actually delete.
    Deleting from the library also removes the workout from the watch on its
    next sync. There is no bulk delete; confirm each workout individually.

    Args:
        workout_id: id from ``list_workouts``.
        confirmation_token: token from the preview call for this same id.
        confirm: dev/stdio only (no JWT secret) — set True to confirm.
    
- **preview_running_workout** — Assemble a running workout and show what WOULD be created — no network call.

    Validates the structure (one end condition per step, paired pace bounds,
    pace format) and returns a readable summary, sanity warnings, and a
    ``confirmation_token`` to pass to ``create_running_workout``. Always call
    this first and review the result.

    Args:
        workout: the workout definition (name, steps and/or repeat groups).
    
- **create_running_workout** — Create a structured running workout in your Garmin Connect library (a WRITE).

    Supports warmup/cooldown/interval/recovery steps, repeat groups for
    intervals, and optional pace targets ('M:SS' per km). Requires writes to be
    enabled (GARMIN_WRITE_ENABLED) and a matching ``confirmation_token`` from
    ``preview_running_workout``. The workout lands in your library — get it on
    the watch via ``schedule_workout`` (syncs automatically for that date) or
    "Send to Device" in Garmin Connect.

    Args:
        workout: the workout definition (same shape as preview).
        confirmation_token: token returned by ``preview_running_workout``.
        confirm: dev/stdio only (no JWT secret) — set True to confirm.
    
- **schedule_workout** — Put an existing library workout on a Garmin Connect calendar date (a WRITE).

    Works for any workout type (running, strength, ...). A scheduled workout is
    pushed to the watch automatically on its next sync — no "Send to Device"
    needed. Reversible with ``unschedule_workout``.

    Args:
        workout_id: id from create_running_workout / create_strength_workout /
            list of workouts in Garmin Connect.
        date: calendar date, YYYY-MM-DD.
    
- **unschedule_workout** — Remove a scheduled workout from the calendar (a WRITE; keeps the template).

    The workout stays in your library — only the calendar entry is removed.

    Args:
        schedule_id: id returned by ``schedule_workout``.
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "garmin-mcp": {
    "command": "uvx",
    "args": ["garmin-mcp"]
  }
}
```

## Documentation

## What Bartolome69/garmin-mcp does

Bartolome69/garmin-mcp gives an MCP-compatible assistant access to a Garmin Connect account. Its read operations cover recorded activities, split data, heart-rate information, sleep, HRV, body battery, stress, training load, readiness, fitness estimates, and personal records.

The write side is focused on Garmin's workout library and calendar. An assistant can construct a workout from ordered steps, save it, place it on a date, change it, remove it from a date, or delete it from the library. It can also create a complete training block, inspect its progress, render a chart, or remove the remaining plan sessions. Recorded activities are not edited or deleted by these tools.

## How it works

The self-hosted version runs as a local subprocess and communicates with the MCP client over stdio. On macOS, the bootstrap script installs the application, sets up Python with uv, signs in to Garmin, and registers the server with Claude Desktop. A manual setup path uses the repository scripts to create an environment and cache a Garmin session before the client is configured.

The hosted option is available through Daash's Garmin MCP service using OAuth 2.1. It can be added to Claude or ChatGPT through a single address and is usable from a phone or laptop. The hosted service stores encrypted Garmin session tokens; the local option keeps the token cache at `~/.garmin-mcp/tokens.json`.

Dates accept ISO format, `today`, `yesterday`, `tomorrow`, or signed day offsets such as `-7` and `+3`.

## Setup and configuration

For macOS 10.15 or newer with Claude Desktop installed, run the bootstrap script from the project. Quit Claude Desktop completely and reopen it after registration. Linux and manual installations use `git clone`, `./scripts/setup.sh`, and `./scripts/login.sh`, followed by MCP client registration. The example configuration points a client to `python -m garmin_mcp` over stdio.

Garmin credentials are read from `GARMIN_EMAIL` and `GARMIN_PASSWORD` when unattended reauthentication is needed. After the initial login, the cached Garmin token normally lets the server operate without requesting the password again. The password is sent to Garmin and is not written to disk; logs are written to stderr so they do not mix with MCP messages.

`./scripts/doctor.sh` checks the local setup through to a live Garmin request and identifies the first failing step.

## Tools and capabilities

- Query activities with date and limit filters, including runs, rides, workouts, pace, heart rate, cadence, training effect, running dynamics, and power when recorded.
- Inspect one activity's splits, laps, heart-rate zones, HR drift, cadence, dynamics, and power.
- Retrieve readiness, daily summaries, sleep, fitness markers, profile records, and connection status.
- List, create, update, schedule, unschedule, and delete structured workouts.
- Build and manage labeled training plans, including completion, missed sessions, progress, and chart output.
- Define workout steps using warmup, interval, recovery, rest, cooldown, and repeat types with time or distance and pace or heart-rate targets.

A workout is only stored when created; it reaches the watch after being scheduled. Deletion requires a confirmation flow: the first call reports the workout name, and a second call must provide that name.

## Limitations and notes

Local installation is documented for macOS and Linux, with the one-command bootstrap specifically targeting macOS. Garmin login can be rate-limited, so repeated authentication attempts may fail. The server's account-writing scope is limited to the workout library and calendar. Removing a workout from a plan or calendar does not remove completed training history, and unscheduling preserves the workout itself.

_Full upstream README: https://allmcps.com/mcp/bartolome69-garmin-mcp/readme_

