Garmin Personal MCP

v0.3.0
io.github.Mason-Levyy/garmin-personal-mcp Checked 6 hours ago Published 28 days ago

Garmin Connect on Garmin's official Personal API: sleep, HRV, body battery, activities.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

garmin_get_day Get day overview

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).

ParameterTypeDescription
date

garmin_get_daily_summary 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).

ParameterTypeDescription
date

garmin_get_daily_summaries 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.

ParameterTypeDescription
end
start

garmin_get_steps 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.

ParameterTypeDescription
end
start

garmin_get_stress 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.

ParameterTypeDescription
end
start

garmin_get_hydration 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.

ParameterTypeDescription
end
start

garmin_get_body_battery 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.

ParameterTypeDescription
chunks
end
start

garmin_get_heart_rate 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).

ParameterTypeDescription
date
include_samplesboolean

garmin_get_spo2 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).

ParameterTypeDescription
date
include_samplesboolean

garmin_get_wellness_activities 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).

ParameterTypeDescription
end
start

garmin_get_sleep 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).

ParameterTypeDescription
date

garmin_get_sleep_summaries 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.

ParameterTypeDescription
end
start

garmin_get_hrv Get HRV night

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).

ParameterTypeDescription
date

garmin_get_hrv_summaries 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).

ParameterTypeDescription
end
start

garmin_get_weight 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.

ParameterTypeDescription
end
include_allboolean
start

garmin_get_weight_goals 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).

ParameterTypeDescription
end
start

garmin_get_food_log 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.

ParameterTypeDescription
date
include_goalsboolean
include_mediaboolean
include_nutritionboolean
meal_id

garmin_search_activities 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…

ParameterTypeDescription
activity_subtype
activity_type
deco_dive
east
end
event_type
exclude_childrenboolean
excluded_activity_subtypes
favorite
limitinteger
max_bottom_time
max_distance
max_duration
max_elapsed_duration
max_elevation
max_max_depth
min_avg_power
min_bottom_time
min_distance
min_duration
min_elapsed_duration
min_elevation
min_max_depth
north
offsetinteger
required_fields
search
sort_by
sort_order
south
start
west

garmin_get_activity 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.

ParameterTypeDescription
activity_id *integer

garmin_get_activity_workouts 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.

ParameterTypeDescription
activity_id *integer

garmin_download_activity Download activity file

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: a subfolder of the download folder to save in, e.g. "races" (default: the download folder itself). The download folder is GARMIN_MCP_DOWNLOAD_DIR, else a garmin folder in the Downloads directory; paths that lead outside it are rejected.

ParameterTypeDescription
activity_id *integer
directory

garmin_get_profile Get profile settings

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 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.

ParameterTypeDescription
generate_defaultsboolean

garmin_get_fitness_age 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.

ParameterTypeDescription
date
full_history_scanboolean

garmin_get_menstrual_cycle 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).

ParameterTypeDescription
date

garmin_get_menstrual_day Get menstrual cycle 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.

ParameterTypeDescription
date
include_analysisboolean
reducedboolean
skip_baby_movementboolean
today