# garmin-personal-mcp [Health: Active]

**Category:** 🏃 Sports  
**Repository:** https://github.com/Mason-Levyy/garmin-personal-mcp  
**GitHub Stars:** 82  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/garmin-personal-mcp

## Description
MCP server for Garmin Connect on Garmin's official Personal API: sleep, HRV, body battery, activities, and more from Claude or any MCP client

## Tools
Capabilities this server exposes over MCP:

- **garmin_get_day** — One day at a glance: daily summary (steps, calories, intensity minutes,
    resting HR, stress, body battery), last night's sleep, HRV, body battery,
    stress, and the day's activities. A section Garmin has no data for yet
    comes back as {"error": ...} while the rest still load.

    date: YYYY-MM-DD (default: today).
    
- **garmin_get_daily_summary** — Every all-day wellness total for one date: steps, distance, floors,
    total/active/BMR calories, intensity minutes, heart rate, stress, body
    battery, SpO2, respiration, and time active/sedentary/asleep.

    date: YYYY-MM-DD (default: today).
    
- **garmin_get_daily_summaries** — Daily wellness summaries across a date range, grouped per day (movement,
    calories, heart rate, intensity minutes, stress, body battery, hydration,
    respiration, pulse ox, jet lag). About 1-2 KB per day, so for a long
    trend in one metric prefer garmin_get_steps, garmin_get_stress, or
    garmin_get_sleep_summaries.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Ranges
    over a year are fetched in yearly requests.
    
- **garmin_get_steps** — Daily total steps, distance (meters), and step goal.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Any
    length works; long ranges are fetched 28 days at a time.
    
- **garmin_get_stress** — Daily overall stress level (0-100) and seconds spent in high, medium,
    low, and rest stress.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Any
    length works; long ranges are fetched 28 days at a time.
    
- **garmin_get_hydration** — Daily water intake, goal, estimated sweat loss, and intake logged during
    activities, all in mL.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Any
    length works; long ranges are fetched 31 days at a time.
    
- **garmin_get_body_battery** — Daily Body Battery: amount charged and drained, plus the events that
    moved it (sleep, activities, stress) with Garmin's feedback.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Any
    length works; long ranges are fetched 31 days at a time.
    chunks: split each day into this many intervals (e.g. 24 for hourly) and
    include each interval's lowest and highest level. Omitted, the
    every-few-minutes readings are left out to keep the response small.
    
- **garmin_get_heart_rate** — Resting, minimum, and maximum heart rate for a day, the 7-day resting
    average, and any abnormal high/low heart rate alerts.

    date: YYYY-MM-DD (default: today).
    include_samples: also return the all-day readings (large).
    
- **garmin_get_spo2** — Blood oxygen (pulse ox) for a day: average, lowest, latest, sleep
    average, 7-day average, hourly averages, and altitude acclimation.

    date: YYYY-MM-DD (default: today).
    include_samples: also return every individual reading (large).
    
- **garmin_get_wellness_activities** — Wellness activities recorded by the device, each with its type,
    start and end time, per-metric summary values, and time in zones. Regular
    workouts like runs and rides are in garmin_search_activities instead.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today).
    
- **garmin_get_sleep** — The full sleep record for the night ending on date: sleep score and its
    components, deep/light/REM/awake seconds, start and end times, overnight
    heart rate, SpO2, respiration, sleep stress, naps, and Garmin's feedback.

    date: YYYY-MM-DD, the morning you woke up (default: today, i.e. last night).
    
- **garmin_get_sleep_summaries** — Nightly sleep records across a date range, same fields as
    garmin_get_sleep. Use it for sleep trends.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today). Any
    length works; long ranges are fetched 31 days at a time.
    
- **garmin_get_hrv** — One night of heart-rate variability: the summary (last-night average,
    5-minute high, weekly average, baseline band, status) plus every reading
    taken during sleep.

    date: YYYY-MM-DD, the morning you woke up (default: today).
    
- **garmin_get_hrv_summaries** — Nightly HRV summaries across a date range: last-night average, weekly
    average, baseline band, status, and Garmin's feedback.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today).
    
- **garmin_get_weight** — Daily weight summaries over a range, the range average, and the nearest
    weigh-ins before and after it (handy when the range itself has none). Weights are in grams; body composition
    (BMI, body fat %, muscle and bone mass) appears when a smart scale
    recorded it.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today).
    include_all: list every weigh-in per day with its time and body
    composition, not just the latest.
    
- **garmin_get_weight_goals** — Weight goals in effect during a date range and their target ranges.

    start, end: YYYY-MM-DD inclusive (default: the 7 days ending today).
    
- **garmin_get_food_log** — Foods logged in Garmin Connect's nutrition tracker for a day, with
    serving sizes, calories and nutrients consumed, nutrition goals, and a
    per-meal breakdown.

    date: YYYY-MM-DD (default: today).
    meal_id: limit to one meal; ids appear in mealDetails of an unfiltered call.
    include_media: also return logged food photos.
    
- **garmin_search_activities** — Recorded activities (runs, rides, swims, strength, dives, ...), newest
    first, with name, type, start time, distance, duration, pace/speed, HR,
    power, cadence, calories, elevation, and training effect. Pass an
    activityId to garmin_get_activity for splits and full detail.

    All filters are optional and combine:
    start, end: YYYY-MM-DD, by the activity's local start date.
    search: text in the activity name or description.
    activity_type: parent type key, e.g. running, cycling, swimming,
    strength_training, hiking, walking. activity_subtype: a child key such as
    trail_running or indoor_cycling. excluded_activity_subtypes: child keys to
    leave out.
    event_type: race, training, recreation, fitness, specialEvent, or
    uncategorized. favorite: true for favorites only, false for non-favorites.
    exclude_children: hide individual legs of multisport activities.
    sort_by: a field such as distance, duration, or name (default: start time).
    sort_order: asc or desc (default desc).
    min_/max_distance (meters), min_/max_duration (timer seconds),
    min_/max_elapsed_duration (seconds including pauses), min_/max_elevation
    (gain, meters), min_avg_power (watts).
    north, south, east, west: a bounding box in decimal degrees around the
    start location; give all four or none.
    Dives: min_/max_max_depth (centimeters), deco_dive, min_/max_bottom_time
    (seconds).
    required_fields: activity fields that must be present, e.g. avgPower.
    limit, offset: page through results (each activity is about 3-4 KB).
    
- **garmin_get_activity** — Full detail for one activity: summary metrics (distance, time, pace,
    HR, power, cadence, elevation, training effect, calories), device and
    location metadata, and split/lap summaries.

    activity_id: activityId from garmin_search_activities or garmin_get_day.
    
- **garmin_get_activity_workouts** — The structured workout(s) followed during an activity, step by step
    with targets.

    activity_id: activityId from garmin_search_activities or garmin_get_day.
    
- **garmin_download_activity** — Download an activity's original file (a ZIP, usually holding a .fit)
    and save it on the machine running this server as
    activity-<activity_id>.zip, replacing any earlier download. Returns the
    saved path, size, and the files inside.

    activity_id: activityId from garmin_search_activities.
    directory: where to save (default: GARMIN_MCP_DOWNLOAD_DIR, else a garmin
    folder in the Downloads directory).
    
- **garmin_get_profile** — Profile settings: display name, measurement system and display formats,
    time zone, hydration units and containers, and preferred training days.
    Check measurementSystem before converting units for the user.
- **garmin_get_heart_rate_zones** — Heart rate zone floors per sport, with the training method and the
    resting, max, and lactate threshold heart rates the zones were built on.

    generate_defaults: return Garmin's default zones when none are configured.
    
- **garmin_get_fitness_age** — Fitness age versus chronological age as of a date, the achievable
    fitness age, and the components behind it (vigorous days and minutes,
    resting heart rate, BMI or body fat %), or the reason none is available.

    date: YYYY-MM-DD (default: today).
    full_history_scan: search all history for the latest value; false limits
    it to the 28 days before date.
    
- **garmin_get_menstrual_cycle** — Menstrual cycle summary as of a date: current phase, day in cycle, days
    until the next phase, period length, fertile window, predicted ovulation
    and cycle length, and pregnancy details when tracking a pregnancy.

    date: YYYY-MM-DD (default: today).
    
- **garmin_get_menstrual_day** — One day in detail: logged symptoms, flow, mood, and other entries, that
    day's cycle summary, and weekly weight goal ranges during pregnancy.

    date: YYYY-MM-DD (default: today).
    today: the reference date for predictions (default: today).
    reduced: return a lighter response.
    skip_baby_movement: leave out kick counts.
    include_analysis: add Garmin's cycle analysis.
    

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

```json
"mcpServers": {
  "garmin-personal-mcp": {
    "command": "uvx",
    "args": ["garmin-personal-mcp"],
    "env": {
      "GARMIN_PERSONAL_API_KEY": "",
      "GARMIN_MCP_DOWNLOAD_DIR": "",
      "TZ": ""
    }
  }
}
```

**Requires environment variables:** `GARMIN_PERSONAL_API_KEY`, `GARMIN_MCP_DOWNLOAD_DIR`, `TZ` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What garmin-personal-mcp does

garmin-personal-mcp exposes Garmin Connect data through MCP for assistants and developer tools that can run stdio or streamable HTTP servers. Its coverage spans both daily health measurements and individual workouts. Read-only access includes steps, calories, intensity minutes, heart rate, stress, Body Battery, hydration, pulse oximetry, respiration, sleep, HRV, weight, food logs, fitness age, heart-rate zones, and menstrual-cycle data.

Activity tools cover runs, rides, swims, strength sessions, hikes, dives, and other recorded workouts. Agents can search and filter activities, retrieve full activity details and lap summaries, inspect structured workouts, and download an original activity archive, usually containing a FIT file.

## How it works

The server uses Garmin’s documented Personal API rather than signing in with a Garmin password. A Personal API key is exchanged for short-lived access tokens, and the server reads the key for each call. Garmin’s Personal API is read-only, so the available operations retrieve data rather than modify the account.

Date-based tools generally default to today or the preceding seven days, depending on whether they request a single day or a range. Longer ranges are split into API-sized requests automatically: examples include 28-day chunks for steps and stress, and 31-day chunks for hydration, Body Battery, and sleep. Large all-day or sleep sample arrays are excluded by default in several tools and can be requested with options such as `include_samples`, `include_all`, or `chunks`.

## Setup and configuration

Install the package through `uvx` and authenticate with a Personal API key created in Garmin Connect under Settings → Personal API. Run `uvx garmin-personal-mcp auth`, then paste the key at the hidden prompt. The key is checked before being saved to `~/.config/garmin/connect-personal-api-key` with owner-only permissions. Piping the key into the command supports non-interactive environments, and `auth --check` verifies whether the saved key still works.

The `GARMIN_PERSONAL_API_KEY` environment variable takes precedence over the saved key file. `uvx garmin-personal-mcp` can be registered with Claude Desktop, Cursor, VS Code, Windsurf, Cline, Claude Code, Codex CLI, or Gemini CLI. A Docker Compose deployment is also available using the published image with HTTP mode; mount the configuration volume and an activity-download directory, and set `TZ` when the container’s local date should follow a specific time zone.

## Tools and capabilities

- Get a combined daily view with wellness metrics, sleep, HRV, Body Battery, stress, and activities.
- Retrieve daily summaries or focused trends for steps, stress, hydration, Body Battery, sleep, and HRV.
- Inspect heart rate, SpO2, wellness activities, weight, goals, food logs, fitness age, and cycle data.
- Search activities with date, type, text, event, location, performance, dive, and pagination filters.
- Fetch activity details, splits, and structured workout steps.
- Save an activity’s original downloadable archive to a local directory.

## Limitations and notes

A Personal API key must remain valid; Garmin supports key lifetimes from 30 days to one year and sends an expiration reminder about a week beforehand. Tools can return an error section when Garmin has no data for one part of a combined request while other sections remain available. Sample-heavy responses can be large, so optional inclusion flags should be used selectively. The project is unofficial even though it communicates with Garmin’s official API. In Docker, default dates use the container’s time zone, which is UTC unless `TZ` is set.

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

