Skip to main content
Glama
Garmin Connect Personal API MCP

Garmin Connect Personal API MCP

by warusk2nd

Garmin Connect Personal API MCP

Not affiliated with or endorsed by Garmin. Garmin and Garmin Connect are trademarks of Garmin Ltd.

A read-only MCP server that gives AI assistants your own Garmin Connect training, recovery and health data through the official Garmin Connect Personal API. Run it on your own computer, or host it on your own Cloudflare account to use it from anywhere.

AI agents: to set this up for a user, follow docs/AGENT-SETUP.md.

Setup

You need a Garmin Connect Personal API key, which you create in Garmin Connect on the web.

Run locally

The quickest way, for Claude Code, Claude Desktop, Cursor, VS Code and other clients that run local servers. Needs Node.js 22+.

Paste this into your coding agent:

Connect @hannta/garmin-connect-personal-api-mcp

Or do it yourself: docs/LOCAL.md.

Host on Cloudflare

For Claude on the web and on mobile, and any other client that connects to remote servers with OAuth. The free plan is enough, apart from one known limitation.

Then connect your MCP client, such as Claude, ChatGPT, Cursor or VS Code.

Related MCP server: Threshold

Tools

Tool

What it returns

garmin_get_day

One day at a glance: sleep, HRV, Body Battery, stress, resting HR, intensity minutes, activities

garmin_get_days

The same over a date range, one row per day, with daily activity totals and training load

garmin_search_activities

Activities in a date range with Garmin IDs and fastest splits, or totals per week

garmin_get_activity

One activity in depth: pace, HR zones, running dynamics, power, training effect, interval totals, strength sets per exercise

garmin_get_activity_streams

One activity's time series (HR, pace, grade-adjusted pace, cadence, power, elevation, …)

garmin_get_activity_laps

One row per lap and interval rep, from the activity's FIT file

garmin_get_sleep

One night's sleep in detail: score components with optimal ranges, sleep need and why it changed, naps

garmin_get_sleep_summaries

Sleep per night over a date range

garmin_get_hrv

One night's HRV with baseline, status and overnight readings

garmin_get_hrv_summaries

HRV per night over a date range

garmin_get_daily_summaries

Resting HR, Body Battery, stress, intensity minutes, steps per day over a date range

garmin_get_weight

Weigh-ins and body composition over a date range

garmin_get_profile

Profile settings and heart-rate zones

garmin_get_body_battery

Body Battery per day: charged, drained and the sleep / activity events behind it

garmin_get_stress

Stress per day: average level and minutes at rest / low / medium / high

garmin_get_steps

Steps per day with goal and distance

garmin_get_heart_rate

One day's resting / min / max heart rate, optionally averaged per 15 minutes

garmin_get_spo2

One day's blood oxygen (Pulse Ox), optionally hourly with altitude

garmin_get_fitness_age

Fitness age and its components (resting HR, BMI, vigorous days / minutes)

garmin_get_heart_rate_zones

Heart-rate zones per sport

garmin_get_weight_goals

Weight goals in effect (target kg)

garmin_get_activity_workouts

The structured workout an activity followed: steps, targets (HR, pace, power) and repeats

garmin_get_hydration

Hydration per day: intake, goal, sweat loss (ml)

garmin_get_food_log

One day's food log: calories and macros eaten vs. goals, per meal and food

garmin_get_wellness_activities

Wellness sessions (e.g. Health Snapshot, breathwork) with HR, stress, HRV, SpO2

garmin_get_menstrual_cycle

Cycle day, period and fertile window, predictions and cycle analysis

garmin_get_menstrual_day

One day's logged flow, symptoms and moods, with that day's cycle summary

Good to know

  • Range tools default to the last 7 days. If a range is too long for one Garmin request, the error says the maximum and the assistant splits it into several calls.

  • Output is metric, with the unit in every field name. Dates are YYYY-MM-DD in your time zone; sleep and HRV are keyed by the wake-up date.

  • Location, sexual activity and sex drive data are never returned.

  • Known limitation: garmin_get_activity_laps can fail on long activities on the Cloudflare free plan. See Known limitations.

Development

Requires Node.js 24+.

npm install
cp .dev.vars.example .dev.vars   # then add GARMIN_API_KEY and OWNER_PASSPHRASE
npm run check                     # typecheck, lint, format check, tests
npm run today                     # print today's recovery data using your key
npm run dev                       # MCP server at http://localhost:8787/mcp
npm run build                     # local server in dist/cli.mjs

To try the local server, connect the MCP Inspector to it and sign in with OWNER_PASSPHRASE.

Architecture and conventions: docs/DEVELOPMENT.md.

License

MIT

Available Tools

27 tools
garmin_get_activityGet a Garmin activityA
Read-only

Full summary of one Garmin activity: pace and grade-adjusted pace, heart rate and time in HR zones, running dynamics (cadence, ground contact time, vertical oscillation, stride), power, training effect and load, RPE and feel, Body Battery change, stamina, temperature, estimated sweat loss, and interval totals by type (warm-up / active / recovery / cool-down) plus run / walk totals. Strength activities add sets, reps and weight per exercise category. For per-lap rows, use garmin_get_activity_laps. Find the id with garmin_search_activities or garmin_get_day.

Inputs: activity_id (required).

garmin_get_activity_lapsGet Garmin activity lapsA
Read-only

One row per lap of an activity, plus one row per interval rep when it was an interval session: distance, time, pace and grade-adjusted pace, heart rate, power, cadence, running dynamics, elevation, calories, temperature and respiration. For questions like "how did each rep go?" or "which kilometres were slowest?". Location is never returned. Get the activity id from garmin_search_activities. On the Cloudflare free plan a long activity can fail with a connector error (CPU limit): say so rather than retrying.

Inputs: activity_id (required).

garmin_get_activity_streamsGet Garmin activity streamsA
Read-only

Time series for one activity, downsampled by Garmin to about points rows, for questions like "did my HR drift in the last 10 km?" or "where did my pace fade?". Returns columns and rows; each row starts with distance (km) and elapsed time (s). Default channels: hr, pace, grade_adjusted_pace, cadence, power, elevation; channels the activity didn't record are left out. Use speed instead of pace for cycling. Location is never returned. Get the activity id from garmin_search_activities.

Inputs: activity_id (required), points, channels.

garmin_get_activity_workoutsGet Garmin activity workoutA
Read-only

The structured workout an activity was started from, step by step: warm-up / active / rest, how each step ends (time, distance in m, reps, heart rate or lap button), its target (HR zone or bpm / % of max HR range, pace range, power, cadence) and repeat groups (back_to_step, times). Compare with garmin_get_activity for planned vs. actual. Empty for activities not started from a workout created in Garmin Connect. Get the activity id from garmin_search_activities.

Inputs: activity_id (required).

garmin_get_body_batteryGet Garmin Body BatteryA
Read-only

Body Battery per day over a date range: how much it charged and drained, and the events behind it — sleep, each activity, rest and stress periods — with start time, duration, impact on Body Battery and Garmin's feedback. Set include_samples for the level through the day (averaged per 30 min). For daily max / min Body Battery use garmin_get_daily_summaries. Defaults to the last 7 days; at most 31 days per call.

Inputs: end_date, start_date, include_samples.

garmin_get_daily_summariesGet Garmin daily summariesA
Read-only

All-day wellness per day over a date range, for trends: resting / min / max heart rate, Body Battery (max, min, charged, drained), average and max stress, intensity minutes, steps, calories burned (total / active) and respiration, plus average / min / max of each field in summary. Defaults to the last 7 days; at most 92 days per call. Today's row is partial. For sleep and HRV over a range use garmin_get_sleep_summaries and garmin_get_hrv_summaries, or garmin_get_days for everything per day.

Inputs: end_date, start_date.

garmin_get_dayGet a Garmin dayA
Read-only

One day at a glance, for readiness and recovery questions: resting heart rate, Body Battery (with the sleep and activity events behind it), stress and minutes per stress level, intensity minutes, steps, calories (burned, and eaten if food is logged), logged hydration, heart-rate alerts, the previous night's sleep (keyed by this wake-up date) and HRV summary, and a compact list of that day's activities. For "should I train hard today?", call it for today and yesterday. For detail, use garmin_get_sleep, garmin_get_hrv and garmin_get_activity.

Inputs: date.

garmin_get_daysGet Garmin daysA
Read-only

garmin_get_day over a date range, one compact row per day, for "am I absorbing this training?" and other recovery-vs-load questions: resting heart rate, HRV and its status, sleep duration and score, Body Battery, stress, intensity minutes, steps, and that day's activity count, duration, distance and training load. summary has average / min / max per field. Defaults to the last 7 days; at most 31 days per call. For one field in more detail use garmin_get_daily_summaries, garmin_get_sleep_summaries, garmin_get_hrv_summaries or garmin_search_activities.

Inputs: end_date, start_date.

garmin_get_fitness_ageGet Garmin fitness ageA
Read-only

Garmin's fitness age on a date, compared with chronological age and the achievable fitness age, and the components it is based on: resting heart rate, BMI, and vigorous days and minutes per week. Components marked stale have no recent data. Garmin does not use VO2max here.

Inputs: date.

garmin_get_food_logGet Garmin food logA
Read-only

One day's food log from Garmin Connect: calories, carbs, protein and fat eaten against the daily goals (adjusted goals include active calories), then each meal with its logged foods. Food totals are per serving × servings. Only has meals if the user logs food in Garmin Connect.

Inputs: date.

garmin_get_heart_rateGet Garmin heart rateA
Read-only

One day's all-day heart rate: resting, min and max, Garmin's 7-day resting average, and high / low heart-rate alerts (with the alert thresholds) if any fired. Set include_samples for heart rate through the day (averaged per 15 min), e.g. to see when it settled after a hard session. For resting HR over a range use garmin_get_daily_summaries.

Inputs: date, include_samples.

garmin_get_heart_rate_zonesGet Garmin heart-rate zonesA
Read-only

The user's heart-rate zones per sport (bpm ranges for zones 1–5), with the max, resting and lactate-threshold heart rate and the method they are based on. garmin_get_profile returns the same zones together with profile settings.

Inputs: no named parameters.

garmin_get_hrvGet Garmin HRVA
Read-only

One night's heart-rate variability from Garmin: last-night average, 5-minute high, 7-day average, personal baseline range, HRV status (e.g. BALANCED, UNBALANCED, LOW) and overnight readings averaged per 30 minutes. Keyed by the wake-up date, like sleep. HRV is in milliseconds (RMSSD).

Inputs: date.

garmin_get_hrv_summariesGet Garmin HRV summariesA
Read-only

Overnight heart-rate variability per night over a date range, for trends: last-night average, 5-minute high, 7-day average, personal baseline range and HRV status (BALANCED, UNBALANCED, LOW, POOR), plus average / min / max in summary. Keyed by the wake-up date; HRV in milliseconds (RMSSD). Defaults to the last 7 nights; at most 92 nights per call. For one night with overnight readings use garmin_get_hrv.

Inputs: end_date, start_date.

garmin_get_hydrationGet Garmin hydrationA
Read-only

Hydration per day over a date range, as logged in Garmin Connect: intake, goal, estimated sweat loss and intake during activities (ml). Only has data if the user logs hydration. Defaults to the last 7 days; at most 31 days per call.

Inputs: end_date, start_date.

garmin_get_menstrual_cycleGet Garmin menstrual cycleA
Read-only

Menstrual cycle around a date, from cycle tracking in Garmin Connect: day in cycle, phase, period length, fertile window, predicted cycle length and ovulation date, and Garmin's cycle analysis (median length, variability). Useful for relating training, HRV and resting heart rate to the cycle. Only has data if the user tracks their cycle in Garmin Connect.

Inputs: date.

garmin_get_menstrual_dayGet Garmin menstrual cycle dayA
Read-only

One day of menstrual cycle tracking: what was logged (flow, symptoms, moods, ovulation day, notes) and that day's cycle summary (same fields as garmin_get_menstrual_cycle). During pregnancy tracking it adds the weekly weight-gain range. Only has data if the user tracks their cycle in Garmin Connect.

Inputs: date.

garmin_get_profileGet Garmin profile and HR zonesA
Read-only

The user's Garmin settings and heart-rate zones: time zone used for dates, first day of the week, training and long-run days set in Garmin Connect, and per-sport HR zones with max, resting and lactate-threshold heart rate. Use it to interpret heart-rate data from the other tools.

Inputs: no named parameters.

garmin_get_sleepGet Garmin sleepA
Read-only

One night of sleep from Garmin: start and end time, total sleep, stages (deep / light / REM / awake), sleep score with each component's optimal range, sleep need with the reasons Garmin adjusted it (training, sleep history, HRV, naps), the next night's sleep need, naps that day, average heart rate, respiration, SpO2, sleep stress and breathing disruptions. Nights are keyed by the wake-up date: "last night" is today's date.

Inputs: date.

garmin_get_sleep_summariesGet Garmin sleep summariesA
Read-only

Sleep per night over a date range, for trends: bedtime and wake time, duration, sleep score, deep / light / REM / awake minutes, nap minutes, average heart rate, respiration, SpO2, sleep stress, breathing disruptions and Garmin's sleep need, plus average / min / max in summary. Nights are keyed by the wake-up date. Defaults to the last 7 nights; at most 31 nights per call (Garmin's limit). For one night in full detail use garmin_get_sleep.

Inputs: end_date, start_date.

garmin_get_spo2Get Garmin SpO2A
Read-only

One day's blood oxygen (Pulse Ox): average, lowest and latest SpO2 (%), the average during sleep and Garmin's 7-day average. Set include_samples for hourly averages with altitude (m), e.g. for altitude acclimation. SpO2 is only recorded when Pulse Ox is on in the watch settings.

Inputs: date, include_samples.

garmin_get_stepsGet Garmin stepsA
Read-only

Steps per day over a date range, with the daily step goal and walking / running distance (km). Today's row is partial. Defaults to the last 7 days; at most 28 days per call.

Inputs: end_date, start_date.

garmin_get_stressGet Garmin stressA
Read-only

All-day stress per day over a date range: average stress level (0–100) and minutes at rest (0–25), low (26–50), medium (51–75) and high (76–100) stress. Today's row is partial. Defaults to the last 7 days; at most 28 days per call.

Inputs: end_date, start_date.

garmin_get_weightGet Garmin weightA
Read-only

Weigh-ins over a date range, one row per day with a weigh-in: weight and, from smart scales, BMI, body fat, body water, muscle and bone mass (kg / %). summary has average / min / max weight and the change from the first to the last weigh-in; previous_weigh_in is the last one before the range. Defaults to the last 7 days; at most 366 days per call.

Inputs: end_date, start_date.

garmin_get_weight_goalsGet Garmin weight goalsA
Read-only

Weight goals in effect during a date range: target weight (kg) and start / end date. For weigh-ins use garmin_get_weight. Defaults to the last 7 days; at most 366 days per call.

Inputs: end_date, start_date.

garmin_get_wellness_activitiesGet Garmin wellness activitiesA
Read-only

Wellness activities over a date range — sessions such as breathwork or Health Snapshot recorded on the watch, separate from regular activities (garmin_search_activities) — with start / end time, and average / min / max heart rate, stress, respiration, SpO2 and HRV (RMSSD / SDRR, ms) when recorded, plus time in zones. Defaults to the last 7 days; at most 92 days per call.

Inputs: end_date, start_date.

garmin_search_activitiesSearch Garmin activitiesA
Read-only

List Garmin activities in a date range, newest first: ID, type, local start time, distance, duration, pace (or speed), average / max heart rate, elevation gain, training effect, training load and fastest splits (1 km … marathon, when long enough). Defaults to the last 7 days. Use the returned id with garmin_get_activity for heart-rate zones, running dynamics, intervals and RPE. With group_by "week", returns totals per week instead (count, distance, time, elevation, training load, minutes per HR zone, longest activity; summary covers full weeks only), for volume over a training block. Weekly totals cover up to 100 activities per call.

Inputs: limit, offset, end_date, group_by, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 27 tools

    Disambiguation3/5

    Several near-duplicate families exist: garmin_get_day vs garmin_get_days vs garmin_get_daily_summaries, garmin_get_sleep vs garmin_get_sleep_summaries, garmin_get_hrv vs garmin_get_hrv_summaries, and garmin_get_heart_rate_zones vs garmin_get_profile (which the description itself admits returns the same zones). The descriptions are excellent at cross-referencing ('for X in detail use Y'), which mitigates but does not remove the real risk of misselection between single-day, range, and summary variants.

    Naming Consistency5/5

    Every tool is uniformly snake_case with a garmin_ prefix and a verb-led pattern (get_*, search_*), and the _summaries suffix is used predictably for range/trend variants. Nouns map cleanly to data domains with no stylistic mixing.

    Tool Count3/5

    At 27 tools the surface is heavy for a single personal API, and the count is inflated by parallel single-day vs range-vs-summary variants that could be consolidated with a granularity/range parameter. Most tools do map to a distinct Garmin data domain, so the size is defensible but borderline.

    Completeness4/5

    Read coverage is broad and deep across sleep, HRV, activities, Body Battery, stress, weight, hydration, menstrual cycle, and more, with almost no obvious dead ends for the health/recovery domain. The notable gap is that the surface is entirely read-only — no logging weight, food, or hydration — which limits write-side workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects Garmin Connect to AI assistants, answering questions about training, sleep, HRV and recovery with metrics computed in code rather than guessed from raw JSON. Queries daily readiness, training load, activity FIT analysis and personal records through a self-hosted Cloudflare Worker with OAuth.
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query a user's own Garmin Connect training, health, and recovery history through Garmin's official Personal API, backed by a local cache and built-in analysis tools.
      21
      91 npm
      2
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Ask your AI assistant about your Garmin data: sleep, HRV, recovery, training, km splits and more. Uses Garmin's official Personal API: no password, read-only, and nothing breaks when Garmin changes its login. Install in Claude Desktop with one click, run locally with npx -y garmin-mcp, or self-host on Cloudflare for phone and web apps.
      28
      1,050 npm
      1
      MIT