garmin-personal-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GARMIN_TZ | No | IANA time zone used for "today" and local times. Defaults to the system time zone. Set it to your Garmin profile's zone if they differ; get_api_status warns you if so. | |
| LOG_LEVEL | No | One of debug, info, warn or error. Logs go to stderr only. | info |
| TOKEN_CACHE | No | Where the 24 h access token is cached (mode 0600). Set to "off" to disable the disk cache. | ~/.garmin-mcp/token.json |
| GARMIN_REGION | No | Set to "cn" for Garmin Connect China accounts. One region per deployment. | global |
| GARMIN_API_KEY | Yes | Your Garmin Personal API key (required). Treat it like a password: anyone with it can read your Garmin data. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only access to the user's own Garmin Connect data (sleep, HRV, Body Battery, stress, heart rate, activities, VO2 max, body composition) via Garmin's official Personal API. For weekly reviews or check-ins always start with weekly_checkin, then drill down with the other tools. Dates are YYYY-MM-DD in the user's local time zone. If a tool reports an authentication problem, call get_api_status.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| weekly_checkinA | START HERE for weekly health and fitness reviews or check-ins. One call returns a compact report for a Monday–Sunday week compared with the week before: a per-day table (sleep, sleep score, HRV, resting HR, Body Battery high/low, average stress, steps), weekly averages with deltas, every activity of the week, the VO2 max change, and data-quality notes (missing or partial days, metrics Garmin does not provide). Defaults to the most recent completed week. Drill down afterwards with get_sleep, get_activity, get_body_battery_and_stress, get_heart_rate or get_fitness_metrics. |
| get_daily_summaryA | Get one day's wellness summary: steps, calories, resting/min/max heart rate, stress (average, max, time in each band), Body Battery (high, low, charged, drained, at wake), intensity minutes, floors, SpO2, respiration and time asleep/active/sedentary. Use for questions about a single day ("how was yesterday?", "steps today?"). For several days use the range tools; for a weekly review start with weekly_checkin. Today's data is partial until the watch syncs. |
| get_sleepA | Get nightly sleep for a date range (max 31 nights, default last 7): duration, deep/light/REM/awake time and share, bedtime and wake time, respiration, resting heart rate, plus sleep score, sleep need, naps and overnight HRV when Garmin provides them. Each night is labelled with the date you woke up (the night of Jan 5→6 is 2025-01-06). Use for sleep questions; for a full weekly review start with weekly_checkin. |
| get_hrvA | Get overnight heart-rate variability (HRV) for a date range (max 31 nights, default last 7): nightly average, highest 5-minute value, 7-day average, personal baseline (balanced range) and HRV status. Nights are labelled with the wake-up date. Returns status "no_hrv_data" when the device or account has no HRV. |
| get_body_battery_and_stressA | Get daily Body Battery (high, low, charged, drained, end of day) and stress (average, max, time in rest/low/medium/high) for a date range (max 31 days, default last 7), with Body Battery events when Garmin provides them. Set include_samples=true only when the user asks how a day unfolded (e.g. "when did my Body Battery drop?"): adds 15-minute Body Battery low/high samples (max 7 days). Garmin's API has no intraday stress series. |
| get_heart_rateA | Get daily resting, minimum and maximum heart rate for a date range (max 31 days, default last 7) plus the heart-rate zones configured in Garmin Connect. Set include_intraday=true for a 15-minute series (avg/min/max bpm per bucket, max 7 days) when the user asks about heart rate at particular times of day. Use for resting-HR trends, max HR and zone questions. |
| get_fitness_metricsA | Get VO2 max (running, and cycling if available) with its trend, the latest fitness age and what drives it, and heart-rate zones. Garmin only records a new VO2 max after qualifying outdoor activities, so the response gives the latest value, the value at the start of the range and every update within it. Defaults to the last 90 days; max 365. Use for "is my fitness improving?" questions. |
| list_activitiesA | List recorded activities (workouts) between two dates (max 90 days, default last 7), oldest first: id, type, name, start time, duration, distance, pace or speed, heart rate, calories, training effect and minutes per HR zone, plus totals by type. Optional |
| get_activityA | Get details for one activity by id (ids come from list_activities or weekly_checkin): duration, distance, pace/speed, elevation, heart rate, calories, training effect and load, cadence, power, respiration, stress and Body Battery impact, splits, and the structured workout if one was followed. Never includes GPS tracks or raw FIT data. |
| get_body_compositionA | Get weigh-ins and body composition (weight, BMI, body fat, body water, muscle and bone mass, etc.) for a date range (max 364 days, default last 90), the weight trend across the range, the last weigh-in before the range and the weight goal if one is set. |
| get_api_statusA | Check the connection to Garmin: whether the API key works, access-token age and expiry, region, time zones and any key problems (for example an expired key, and how to replace it). Use when other tools fail with authentication errors or the user asks whether Garmin is connected. Never reveals the key. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool targets a distinct Garmin data domain (sleep, HRV, heart rate, Body Battery/stress, activities, body composition, fitness metrics) and descriptions explicitly route the agent between them, including when to start with weekly_checkin. Minor overlap remains: heart-rate zones are returned by both get_heart_rate and get_fitness_metrics, and weekly_checkin repackages data also available from the range tools.
Ten of eleven tools follow a clean verb_noun pattern (get_daily_summary, get_sleep, list_activities, get_activity, get_api_status), all sharing the get_/list_ prefix. weekly_checkin drops the verb prefix but is still readable and unambiguous, making this a minor deviation rather than an inconsistency.
Eleven tools is well within the sweet spot and each one maps to a real user question (weekly review, single day, sleep, HRV, stress, HR, fitness, activities, body composition, connectivity). Nothing looks redundant or like a thin wrapper.
The read-only surface covers the full wellness lifecycle from daily summary through weekly aggregate with drill-downs for every core metric, plus an auth/status escape hatch. Gaps are modest and mostly API-imposed: no intraday stress series, no GPS/FIT access, and no nutrition, hydration, workout creation, or personal-record queries.