Skip to main content
Glama

Garmin MCP

npm CI MCP registry

Ask your AI assistant how your training is really going. Garmin MCP is an unofficial, open-source MCP server for your Garmin Connect data: training load, form and morning readiness computed on your machine with methods from published sports-science literature, with citations; 21 tools designed around the questions athletes ask, not a mirror of Garmin's API; a local SQLite cache that downloads only what a question needs; and structured workouts that go from the answer to your Garmin calendar and watch. It also reads activities, health, sleep, training status, body composition, gear, devices and the workout library.

Terminal recording of Claude Code with Garmin MCP. Asked "Can I train hard today?", it advises a modified session, citing resting heart rate, sleep and training load. Asked to build 6x400 m with 90 s rest for Thursday, it shows the workout steps and asks before saving anything.

Works with Claude Code, Claude Desktop, Codex, Antigravity CLI, opencode and any other MCP client (stdio or streamable HTTP).

Documentation: endurancetools.github.io/garmin-mcp (getting started per client, what to ask, configuration, troubleshooting). Contributing and development: DEVELOPMENT.md.

Unofficial. Garmin and Garmin Connect are trademarks of Garmin Ltd. or its subsidiaries; this project is not affiliated with or endorsed by Garmin. The training analytics (get_load, get_readiness) are training information, not medical advice.

Why Garmin MCP

  • Answers you can check. Training load (TSS from power, pace, heart rate or session RPE), fitness, fatigue and form (CTL/ATL/TSB), ACWR, intensity distribution and morning readiness from your own HRV, resting heart rate, sleep and load against your own baselines, with methods from published sports-science literature, with citations. Every answer returns the values and rules it used, and you can change them. Methods and evidence

  • Designed tools, not an API mirror. 21 tools built around questions like "review my week" or "can I train hard today?", so one call answers one question. The whole tool list costs the model about 9,700 tokens of context, and in the last full tool-selection eval the first tool call was the right one in 96 of 96 scenarios. Designed tools

  • Local and private. You sign in on Garmin's own page, so your password never passes through the tool. What it downloads stays in a local database on your computer, answers come back from it in milliseconds, downloads are paced to stay gentle with Garmin, and tool answers go only to the AI client you connect. What is stored where

  • From answer to watch. Ask for "6×400 m with 90 s rest on Thursday": you see the steps and estimated duration first, nothing is saved until you agree, and then it goes to your Garmin calendar and syncs to the watch. Workouts and calendar

Related MCP server: garmin-mcp

Getting started

Requirements: Node.js 22 or newer, a Garmin Connect account, and Chrome, Edge, Brave or Chromium for the sign-in window (there is a terminal fallback).

1. Add the server to your client.

Client

Configuration

Claude Code

claude mcp add garmin -- npx -y garmin-mcp-server

Claude Desktop

install garmin-mcp-<version>.mcpb from the GitHub release, or add to claude_desktop_config.json: {"mcpServers":{"garmin":{"command":"npx","args":["-y","garmin-mcp-server"]}}}

Codex

~/.codex/config.toml: [mcp_servers.garmin] command = "npx" args = ["-y", "garmin-mcp-server"]

Antigravity CLI

agy mcp add garmin npx -y garmin-mcp-server

opencode

opencode.json: {"mcp":{"garmin":{"type":"local","command":["npx","-y","garmin-mcp-server"],"enabled":true}}}

Any other client

command npx, arguments -y garmin-mcp-server, transport stdio

2. Sign in when it asks. The first question that needs Garmin opens Garmin's own sign-in page in your browser; sign in there (MFA included) and ask again if the assistant says it is still waiting. Your password never passes through the tool; only the tokens Garmin issues are stored, in ~/.garmin-mcp. To sign in beforehand, or where the server cannot open a browser (Docker, a remote HTTP server, GARMIN_AUTO_LOGIN=false), use the terminal:

npx -y garmin-mcp-cli login

3. Ask. Nothing is downloaded until a question needs it. For example:

  • "How did I sleep this week?" or "How did my HRV trend over the summer?"

  • "Review my training week" or "Summarise my block from 2026-08-04 to 2026-09-28"

  • "Am I fatigued? What is my form right now?"

  • "When is my next race?" or "What is planned this week?"

  • "Build me 6×400 m with 90 s rest for Thursday" (you see the steps first, nothing is saved until you agree)

  • "Rename activity 21001 to Parkrun PB", "Mark Saturday's trail run as a race" or "Put my new Speedgoats on yesterday's run"

Optional: pre-load a range so the first questions answer instantly.

npx -y garmin-mcp-cli sync --scope all --from 2026-07-01 --to 2026-09-30

How it fetches data

Logging in and starting the server download nothing. When a question needs days that are not in the local database, the tool downloads exactly that range, waits up to 20 s and answers; anything left keeps downloading in the background and the answer says so (meta.source is partial). Everything downloaded stays in the local database: stored days are never downloaded again unless you pass --force, so repeating a question costs nothing.

To stay gentle with Garmin, long ranges go in 7-day chunks, newest first, with a random 1-11 s pause after each chunk that actually downloaded something, at most 600 requests per day. A 429 or a Cloudflare challenge pauses all downloads for 6 h. An interrupted sync continues where it left off.

With GARMIN_AUTO_FETCH=false nothing is downloaded unless you run garmin sync or the garmin_sync tool; read tools then return the missing range in meta.sync_hint and the model asks you first.

Measured on a real account: a 90-day sync took 433 requests. It took about an hour with the 5-minute pause between chunks used before the first release, almost all of it waiting; with today's 1-11 s pause, a sync of 433 requests took under 4 minutes. Answers come from the local database in 1-110 ms.

Tools

Tool

Purpose

get_activities

dense activity list with cursor paging (GAP, cadence, NP, Training Effect label, temperature when downloaded); type takes a Garmin type key (all keys in garmin://activity-types), plus event_type (e.g. race), name, min_duration_min/max_duration_min and a pace range

get_activity

one activity: summary (with running dynamics, breathing, stamina, run/walk/stand time, HR source), splits (laps with dynamics and workout steps, plus typed splits: run, walk, stand and ClimbPro climbs, with totals per type), hr_zones, power_zones, weather, exercise_sets (strength sets), stream_summary (stream per km, 5 min, half, quarter or climb, climbs with VAM and W/kg), power_curve (best power for 1 s to 60 min from the FIT file, in W and W/kg), or full (all sections plus the raw stream, 50 KB pages, optional metrics and downsample_s)

update_activity

name, type, event type (race, training...), description, RPE, feel, privacy, and the gear used (add_gear, remove_gear by name or uuid); without id it adds a manual activity (type, local start, duration, optionally distance), shown to you before it is saved

download_activity_file

FIT (unzipped), GPX, TCX, KML, CSV to the download directory (GARMIN_FIT_DOWNLOAD_DIR)

query_health

steps (with daily distance), resting HR (with daily min/max HR), HRV (with status and baseline), sleep, stress, body battery, respiration, SpO2, intensity minutes, calories (burned, and eaten when a food log is linked), floors, hydration (water drunk, goal, sweat loss); per day or week, with 7/28-day trends, or per hour for up to 3 days with the peak and lowest hour and Body Battery events

get_sleep

one night with stages and its timeline (stage segments, awakenings, lowest heart rate, HRV and SpO2 with their times), or a range with averages

get_training_status

VO2max, readiness, recovery time, Garmin status, load and load focus, garmin_load_model (CTL/ATL/TSB from Garmin's training load, optionally the daily series); race predictions, endurance/hill score, fitness age, personal records, acclimation

get_body_composition

weigh-ins in kg with trend

get_period_summary

week, month or any from..to range up to 366 days: volume per sport, HR zones, rest days, longest/hardest, garmin_load_model at the end, health and energy averages

list_workouts, get_workout

workout library, scheduled workouts and the workouts of a Garmin Coach or other training plan (with the plan's phase, dates and target event), races and events (with the course of a race) from the calendar in any date range (default: next 60 days), readable steps

create_workout, schedule_workouts

workouts from presets (run intervals, walk/run, easy Z2, strength circuit) or a typed definition (nestable repeats, HR/pace/power targets); create_workout with dry_run: true shows the steps and estimated duration without saving; schedule_workouts puts workouts on the calendar and takes them off again

get_gear, get_devices

gear with distance, devices with last sync, settings and, for a solar device, the solar input of the last 7 days

garmin_sync

explicit download of a scope (all/activities/health/training/reference) and date range, with progress notifications

get_load

own load model (TSS per activity from power, pace, heart rate or RPE, with the thresholds valid on each date): CTL/ATL/TSB, ACWR 7:28, monotony and strain, flags with overridable thresholds, ISO weeks per sport, 3-zone intensity split; optional daily series, per-activity TSS/IF/load source/EF and running dynamics, monthly EF trend, monthly running dynamics at a reference pace

compare_activities

sessions side by side (ids), or the ones similar to an activity (similar_to: same type, duration and pace, optionally same route or easy only): pace, GAP, HR, power (best 5 and 20 min once the power curve is stored), EF, decoupling, TSS, dynamics, weather

get_readiness

morning GO / MODIFY / REST from HRV, resting HR, sleep hours and load, with Garmin's Training Readiness, Body Battery, stress and sleep score shown, not counted; overridable rules, every signal with value, reference and rating

get_thresholds, set_threshold

threshold history per date (LTHR per sport, LT1, HRmax, FTP, VO2max...; Garmin profile changes and Garmin's own lactate threshold and FTP history recorded automatically), an FTP estimate from stored power curves (shown, not recorded), heart rate and power zones per sport from the Garmin profile, and recording a test result, locally only

delete_activity, delete_workout, delete_weigh_in, overwriting a saved workout (create_workout with workout_id) and replacing the strength sets of an activity (update_activity with exercise_sets) are only available with GARMIN_ENABLE_DESTRUCTIVE=true.

Resources: garmin://profile, garmin://gear, garmin://devices, garmin://activity-types, garmin://sync-status, garmin://today (today's readiness decision, last night in one line and the workouts planned for today, from the local cache without downloading), garmin://courses (your courses with distance and elevation gain), garmin://challenges (how many badges you earned, the 10 latest and the challenges in progress with their progress), and the templates garmin://activity/{id}, garmin://workout/{id} and garmin://course/{id} (a course's profile in 20 stretches and its climbs) with id completion. Prompts: weekly_review, plan_next_week, sleep_report (a range of nights, then the worst one hour by hour), activity_review (one activity, then the sessions similar to it) and race_check (the next race, form and race predictions). Resources and prompts are not part of the tool list, so they add nothing to its context budget.

Every response is { data, meta: { source: cache|live|partial|local, fetched_at, coverage?, sync_hint? } }, as JSON text and as structuredContent matching the tool's outputSchema; failures are { error: { code, message, hint } }.

Formulas, defaults and limits of the analytics tools: docs/analytics.md. Which Garmin Connect data is covered, and what is still missing: docs/coverage.md.

CLI

garmin-mcp-cli shares the core with the server and is handy for setup and checks:

garmin login [--strategy auto|browser|curl|fetch] [--email] [--token-path]
garmin import-tokens <file>          # garmin_tokens.json from python-garminconnect 0.3.x
garmin status [--json]
garmin sync [--scope ...] [--from --to] [--force] [--pause <s>]   # default: last 7 days
garmin activities [--from --to --type --limit --json]
garmin health <metric> [--from --to --week --json]
garmin load [--from --to] [--source auto|hrtss|garmin_load] [--flags <file.json>] [--series] [--activities] [--efficiency] [--by-sport] [--json]
garmin readiness [date] [--rules <file.json>] [--json]          # GO / MODIFY / REST for the morning
garmin thresholds [--date --param --history --json]             # LTHR, LT1, HRmax ... in effect, per sport
garmin thresholds add <date> <param> <value> [--source test|manual] [--note]
garmin thresholds export [--out <file.csv>]                     # date,param,value,source,note
garmin thresholds import <file.csv>
garmin import-activities <file.csv...>                          # Garmin Connect "Activities" CSV exports
garmin upload <file.fit|gpx|tcx...> [--json]                    # new activities to Garmin Connect
garmin course download <id> [--out <file|dir>] [--json]         # a course as GPX
garmin course upload <file.gpx> [--json]                        # a GPX file as a new course
garmin log weight <kg> [--fat <pct>] [--date] [--json]          # measurements to Garmin Connect; --date "YYYY-MM-DD HH:MM"
garmin log bp <systolic/diastolic> [--pulse --note --date --json]
garmin log water <ml> [--date] [--json]
garmin doctor                        # TLS strategy, hosts, permissions, tokens, SQLite driver
garmin serve [--transport stdio|streamable-http] [--port]
garmin logout

load, readiness and thresholds print the same results as the get_load, get_readiness and get_thresholds tools: markdown tables by default, the tool's { data, meta } envelope with --json. They read the local database only and never download; missing days come back as a note with the garmin sync command that fills them. import-activities adds activities from Garmin Connect CSV exports (English or Polish headers) for dates the synced activities do not cover, and thresholds export/import keep a copy of the threshold history in a CSV file.

upload and log write to Garmin Connect. upload sends FIT, GPX or TCX files as new activities and prints each new activity's id; the activity goes into the local database at once. A file Garmin already has is reported as a duplicate and does not fail the command. log adds a weigh-in in kg, a blood pressure reading (120/80, optionally --pulse and --note) or water in ml to a day, now or at --date (a past day without a time is 12:00; nothing in the future). The MCP tools do not write these measurements: a reading tool would no longer be safe to call without asking. course download saves a course as a GPX file and course upload adds a GPX file as a new course.

Run it with npx -y garmin-mcp-cli <command> or install it globally (npm i -g garmin-mcp-cli).

Signing in

The MCP server opens the same window by itself when a tool needs Garmin and nobody is signed in (no tokens yet, or Garmin no longer accepts them): the tool call waits up to 30 s for you, and when you need longer the assistant is told that the window is waiting and to ask again once you are done. This works over stdio, where the server runs on your computer, with a Chromium-based browser installed; GARMIN_AUTO_LOGIN=false turns it off, and then tools report AUTH_NOT_LOGGED_IN until you run garmin login.

garmin login opens Garmin's real sign-in page in your installed Chrome, Edge, Brave or Chromium (a temporary profile, removed afterwards). You sign in there, including MFA or a CAPTCHA if Garmin asks; the tool only catches the one-time ticket Garmin redirects to afterwards and exchanges it for tokens. Cloudflare sees a real browser. Set GARMIN_BROWSER_PATH if your browser is not found.

Without a browser (headless server, Docker) or with --strategy curl|fetch, it asks for e-mail, password and MFA in the terminal and talks to Garmin's mobile login API, trying curl-impersonate (optional cuimp package, downloads its binary on first use) and then plain fetch. If that is blocked too, log in with Python and import the tokens; garmin doctor prints the exact command:

uvx --with "garminconnect>=0.3" python <path>/python-login.py ~/.garmin-mcp/garmin_tokens.json
garmin import-tokens ~/.garmin-mcp/garmin_tokens.json

Tokens and the database are 0600 inside a 0700 directory; the server refuses to start on looser permissions.

Remote and Docker

Streamable HTTP: GARMIN_MCP_TRANSPORT=streamable-http GARMIN_MCP_HTTP_TOKEN=<secret> npx -y garmin-mcp-server serves POST /mcp with Authorization: Bearer <secret>. Without a token it only binds to 127.0.0.1. Requests whose Host or Origin is not localhost, 127.0.0.1 or [::1] get 403 (DNS rebinding protection); behind a public hostname add it with GARMIN_HTTP_ALLOWED_HOSTS=mcp.example.com.

The server speaks MCP 2026-07-28 (server/discover, list results cached for an hour) and the 2025 revisions through the usual initialize handshake, on stdio and on HTTP, so clients on older MCP SDKs connect unchanged.

Docker: docker build -t garmin-mcp . && docker run -i -v garmin-data:/data garmin-mcp (log in with docker run -it -v garmin-data:/data garmin-mcp login).

Configuration

Precedence: CLI flag > environment > <data dir>/config.json > default. ~, $HOME and ${HOME} are always expanded.

Variable

Default

GARMIN_DATA_DIR

~/.garmin-mcp

tokens, database, config.json

GARMIN_TOKENS_FILE

$GARMIN_DATA_DIR/tokens.json

GARMIN_EMAIL, GARMIN_PASSWORD

first login only

GARMIN_REGION

global

cn switches all three hosts

GARMIN_SSO_STRATEGY

auto

auto (browser if installed, else terminal), browser, curl, fetch, import

GARMIN_BROWSER_PATH

detected

Chrome/Edge/Brave/Chromium used for the sign-in window

GARMIN_ENABLED_TOOLS, GARMIN_DISABLED_TOOLS

comma-separated allow/deny lists

GARMIN_ENABLE_DESTRUCTIVE

false

delete tools, workout overwrite and strength set replacement

GARMIN_AUTO_FETCH

true

read tools download missing data themselves; false: only explicit syncs

GARMIN_AUTO_LOGIN

true

the server opens Garmin's sign-in page in your browser when nobody is signed in (stdio only); false: sign in with garmin login

GARMIN_REDACT

true

get_activity full leaves out name, profile/photo URLs, device and sensor serials and GPS; false: raw as sent

GARMIN_FIT_DOWNLOAD_DIR

$GARMIN_DATA_DIR/downloads

GARMIN_MCP_TRANSPORT, GARMIN_MCP_PORT, GARMIN_MCP_HOST, GARMIN_MCP_HTTP_TOKEN

stdio, 8000, 127.0.0.1,

GARMIN_HTTP_ALLOWED_HOSTS

comma-separated hostnames (no port, IPv6 in brackets) accepted in Host/Origin on top of localhost, 127.0.0.1, [::1]; others get 403

GARMIN_LOG_LEVEL

info

pino JSON on stderr

GARMIN_TIMEZONE

system

IANA zone for "today"

GARMIN_CONCURRENCY

4

parallel connectapi requests

GARMIN_MIN_REQUEST_INTERVAL_MS

250

spacing between request starts (±25 % jitter)

GARMIN_SYNC_CHUNK_DAYS / GARMIN_SYNC_PAUSE_S / GARMIN_SYNC_MAX_REQUESTS_PER_DAY

7 / 1-11 / 600

pacing of syncs; the pause is seconds, a random range or a fixed number

GARMIN_DI_CLIENT_IDS, GARMIN_APP_VERSION, GARMIN_APP_USER_AGENT

built in

for when Garmin changes the mobile app identity

More

Available Tools

21 tools
compare_activitiesCompare activitiesA
Read-only

Sessions side by side: pace, GAP, HR, power (best 5/20 min if curve stored), EF, decoupling, IF, TSS, % Z4-5, cadence and running dynamics, temperature, dew point. ids compares those activities; similar_to adds stored sessions like it (same type, duration and pace/GAP within tolerance; optionally same_route, easy_only), newest first with match. Pass exactly one of ids or similar_to, otherwise it returns an error; the similar_to filters combine. For one activity in depth use get_activity. E.g. today vs usual easy runs, progress on a route: {"similar_to":23011268235,"same_route":true}.

Inputs: ids, from, limit, easy_only, +4 more. Returns: data, meta

create_workoutCreate a workoutA

Save a new structured workout to Garmin Connect (then use schedule_workouts to put it on the calendar so it syncs to the watch). Pass exactly one of: preset for a standard session from a few parameters (run_intervals, walk_run, easy_z2, strength_circuit); definition for anything else (typed steps with duration and target, nestable repeats); garmin_json only to copy an existing Garmin workout JSON. Errors name the bad field, e.g. steps[2].steps[0].target. Call with dry_run: true first, show the steps to the user and save only after they agree. dry_run saves nothing and does not contact Garmin: it returns the readable steps and the estimated duration.

Inputs: preset, dry_run, definition, garmin_json. Returns: data, meta

download_activity_fileDownload activity fileA

Download one activity from Garmin Connect and save it as a file on this machine (fit, gpx, tcx, kml or csv), returning its path and size. Use it when the user wants the file itself, e.g. to import into another app; to read an activity's numbers, laps or streams in the answer use get_activity instead. Prefer fit, the original recording, unless the destination needs another format. The file is named . and replaces an earlier download of the same activity and format; every call fetches it from Garmin again.

Inputs: id (required), format, output_dir. Returns: data, meta

garmin_syncSync Garmin dataA

Download data from Garmin Connect into the local cache. Read tools already download missing data by themselves, so call this only when the user asks to sync/refresh or to pre-load a range, or when a tool returned meta.sync_hint (auto fetch turned off) and the user agreed; pass the hint's scope/from/to. Days already stored are skipped. Long ranges continue in the background: this waits at most 20 s and reports progress (also in garmin://sync-status).

Inputs: to, from, force, scope. Returns: data, meta

get_activitiesList activitiesA
Read-only

List workouts/activities (runs, rides, swims, strength...) as dense summaries: id, date, type, name, duration, distance, pace or speed, GAP, HR, power, NP, cadence, training load and Training Effect, temperature (if weather downloaded), event_type when tagged (e.g. race). Use for "what did I do last week", finding an activity id, or comparing sessions. For one activity in depth use get_activity; for weekly/monthly totals use get_period_summary.

Inputs: to, from, name, pace, +7 more. Returns: data, meta

get_activityGet one activityA
Read-only

Details of one activity by id. detail="summary" (default) for the overview incl. description, RPE, feel, GAP, running dynamics (cadence, GCT, balance, VO, VR, stride), breathing rate, stamina, Training Effect label, run/walk/stand time, HR source (strap or watch) and workout_id (for get_workout); "splits" adds laps with the same dynamics, intensity (warmup, active, rest...) and, for a workout, the step as get_workout numbers it (wkt_step) and its compliance, plus typed splits (run, walk, stand, ClimbPro climbs) with totals per type; "hr_zones" adds time in HR zones; "power_zones" adds time in power zones (power meter); "weather" adds temperature, wind and conditions during the activity; "exercise_sets" adds strength sets (exercise, reps, weight, rest); "stream_summary" aggregates the stream per bucket (pace, GAP, HR, power, dynamics, breathing, Performance Condition, elevation, stamina; compares halves or kilometres without raw samples); "power_curve": best power for 1 s to 60 min (W, W/kg) from the FIT file, also running power; "full" adds all sections except power_curve plus the raw stream (HR, pace, power...), 50 KB per page (narrow it with metrics and downsample_s) - only when the user needs raw samples.

Inputs: id (required), bucket, cursor, detail, +2 more. Returns: data, meta

get_body_compositionGet body compositionA
Read-only

Weigh-ins (kg, body fat %, muscle mass, BMI) in a range, each with its time, plus change over the range and trend. Use it for weight and body composition questions; query_health and get_period_summary carry no weight. Days without a weigh-in are simply absent; an empty range returns no weigh-ins, not an error.

Inputs: to, from. Returns: data, meta

get_devicesGet devicesA
Read-only

Garmin devices on the account with model, firmware, last sync time and settings (units, tones, alerts, pulse ox during sleep, alarms). Use it for "is my watch up to date" or "when did it last sync"; shoes and bikes are get_gear. Read from the cache, refreshed from Garmin at most hourly; no devices gives an empty list.

Inputs: no named parameters. Returns: data, meta

get_gearGet gearA
Read-only

List the shoes, bikes and other gear on the Garmin account, active first: uuid, name, type, status (active or retired), total distance and activity count, the distance limit set in Garmin, in use since, retired date and notes. Use it for "how many km on my shoes" or "which shoes to replace", not for watches and sensors (get_devices); name or uuid is what update_activity takes as add_gear/remove_gear. Returns every item, no paging; none recorded gives an empty list.

Inputs: include_activities. Returns: data, meta

get_loadGet training load (own model)A
Read-only

Training load from the server's own transparent model: TSS per activity from power, else pace, else heart rate, else session RPE, with the thresholds in effect on each date. Use it for fitness, fatigue and form trends, ramp rate, weekly volume and intensity distribution (time below LT1, % in Z1, polarisation). Not Garmin's EPOC load: Garmin's status and CTL/ATL/TSB from Garmin's load are get_training_status, a go/no-go for today get_readiness. Returns CTL/ATL/TSB, ACWR, monotony and strain on to (latest), warning flags, ISO weeks per sport (sessions, hours, km, TSS, hrTSS, Garmin load, hours in Z1-2/Z3/Z4-5), the 3-zone split against LT1/LTHR of the last 28 days and the thresholds used; the include_* options add detail.

Inputs: to, from, flags, source, +5 more. Returns: data, meta

get_period_summarySummarise a week, month or rangeA
Read-only

Training week or month at a glance: sessions and volume per sport, time in the Garmin HR zones 1-5 (for the 3-zone Z1/Z2/Z3 split against LT1/LTHR, e.g. time below LT1 or polarisation, use get_load), active vs rest days, longest and hardest session, garmin_load_model at the end (CTL/ATL/TSB from Garmin's daily training load (EPOC); the own TSS model is get_load), and only avg/min/max of sleep, HRV, resting HR, steps, stress and body battery plus average daily kcal. Day-by-day values and other metrics (calorie totals, intensity minutes, floors, respiration, SpO2) come from query_health, weight from get_body_composition. Weeks run Monday-Sunday. Period "range" gives the same for any from..to up to 366 days, e.g. a training block: {"period":"range","from":"2026-08-04","to":"2026-09-28"}.

Inputs: to, from, period, anchor_date. Returns: data, meta

get_readinessMorning readinessA
Read-only

Morning GO/MODIFY/REST decision from HRV, resting HR, sleep hours and load against your own baselines. Returns each signal with its value, reference and rating (ok, yellow, red; unknown when data is missing), rules_used and a recommendation that starts with the signals that decided. Garmin's own scores (Training Readiness, Body Battery, stress; sleep score in the sleep value) are shown as info, not counted. REST needs a red pair, a single red or 2 yellow give MODIFY; rules changes the thresholds and the decision rule. Use for "how am I today" or "can I do a hard session".

Inputs: date, rules. Returns: data, meta

get_sleepGet sleepA
Read-only

Sleep for one night with stages, score, SpO2, respiration, overnight HRV and a timeline (stage segments, awakenings, lowest HR, HRV and SpO2 with times), or for a range a per-night table with averages and trends. Use it for sleep stages and the detail of particular nights; for sleep hours next to other daily metrics, or months by week, use query_health. A night is named by the date of the morning it ended on: the night of 7 to 8 October is 2026-10-08. No arguments returns the last 7 nights; a range can span up to 3 years, one row per night. Nights not in the cache yet are downloaded from Garmin within the daily request limit, and a night without sleep data comes back as sleep null.

Inputs: to, date, from. Returns: data, meta

get_thresholdsGet training thresholdsA
Read-only

Thresholds the analytics use on date (default today): per param its value, the date it applies since and its source (garmin-auto from the Garmin profile and its LTHR, threshold pace and FTP history; test, manual, import), by_sport (run, bike, swim: LTHR and LT1 with a note when a fallback, default or approximation), HRmax and the 28-day resting HR. zones has the HR and power zone floors per sport from the Garmin profile (method, HRmax/rest/LTHR or FTP used, fetched date; current, not historical). estimates.ftp_w: 95 % of best stored 20 min ride power, not saved. history adds every recorded row. Use it to see what get_load and get_readiness compute with; record a new test result with set_threshold. Example: {"param":"lthr_run","history":true}.

Inputs: date, param, history. Returns: data, meta

get_training_statusGet training statusA
Read-only

Fitness and fatigue: VO2max (running/cycling) with trend, training readiness, remaining recovery time, Garmin training status (productive, maintaining, ...), Garmin acute/chronic load and load focus (aerobic low/high, anaerobic vs. targets), and garmin_load_model: CTL/ATL/TSB from Garmin's daily training load (EPOC); the own TSS model (power, pace, HR) is get_load. metrics holds race predictions (5k to marathon), endurance and hill score, fitness age, personal records and heat/altitude acclimation as of the newest training sync on or before to. Set include_series for the daily load curve. Use it for "am I improving", VO2max, race predictions or Garmin's status; for a go/no-go today use get_readiness, for a week or month in numbers get_period_summary.

Inputs: to, from, include_series. Returns: data, meta

get_workoutGet a planned workoutA
Read-only

Steps of one saved workout from the Garmin library in readable form: name, sport, description and one line per step (warm-up, repeats, duration or distance, target in pace/HR/power/cadence), plus estimated duration and distance. Use it to show what a planned session contains, or before changing it with create_workout; to find workouts or what is on the calendar use list_workouts. An id that no longer exists in Garmin Connect returns a NOT_FOUND error.

Inputs: id (required). Returns: data, meta

list_workoutsWorkouts and calendarA
Read-only

List the saved workout library (workouts), the scheduled workouts (upcoming_schedule; Garmin Coach or other training plan ones have source: "plan") and the races or events the user added or subscribed to (upcoming_events). Use it for "my next race", "what is planned this week", "what does my plan say for Saturday" or "which workouts do I have", and to find a workout id or schedule_id. For the steps of one workout use get_workout, to put a workout on the calendar or take it off schedule_workouts, for sessions already done get_activities. sport and limit narrow only the library; from and to set only the calendar window: today and the next 60 days by default, any range up to 3 years, past or future. Calendar months not in the cache yet are downloaded on the way. In events primary marks the goal race of an active training plan; plan gives its phase and target event.

Inputs: to, from, limit, sport. Returns: data, meta

query_healthQuery daily health metricsA
Read-only

For "how did I sleep this week", "calories and intensity minutes this week", "steps yesterday" or any single health metric over days: a table per day or per ISO week plus summary with averages, totals, min/max and 7/28-day trend. steps also returns the daily distance in km, resting_hr the daily min/max HR, hrv the Garmin HRV status and baseline range, calories the kcal burned (total, active) and eaten (calories_consumed_kcal, absent without food log entries), hydration the ml drunk, goal and sweat loss (days without a water entry are left out). Ask for several metrics in one call (e.g. calories and intensity_minutes together). Use get_sleep for sleep stages of particular nights. Example: {"metrics":["hrv","resting_hr","sleep"],"from":"2026-07-01","to":"2026-09-30","granularity":"week"}. "hour" gives hourly HR, stress, Body Battery, steps, respiration and SpO2 with peak and lowest hour and Body Battery events (sleep, activity, stress), for "when was I most stressed yesterday": {"metrics":["stress","body_battery"],"from":"2026-10-09","to":"2026-10-09","granularity":"hour"}.

Inputs: metrics (required), to, from, granularity. Returns: data, meta

schedule_workoutsSchedule workoutsA
Destructive

Put saved workouts on the Garmin calendar (they then sync to the watch), or take them off it. unschedule takes schedule_id values (from list_workouts upcoming_schedule or an earlier schedule_workouts result); the workout stays in the library, only the calendar entry goes. Unschedule only what the user asked to remove. Unscheduling runs first, so moving a workout is one call. Returns a result per item. Examples: {"items":[{"date":"2026-10-10","workout_id":123}]}, {"unschedule":[456]}.

Inputs: items, unschedule. Returns: data, meta

set_thresholdRecord a thresholdA

Record a field test result (LTHR, LT1, HRmax, FTP…) effective from a date; ask the user before saving. Stored in the local database only, never sent to Garmin; a row with the same date, param and source stays as it is (added false). A backdated row recomputes earlier activities from its date on. Returns the row and the value in effect today. Example: {"date":"2026-10-11","param":"lthr_run","value":171,"note":"30 min TT"}.

Inputs: date (required), param (required), value (required), note, +1 more. Returns: data, meta

update_activityEdit or add an activityA

Change an activity in Garmin Connect: name, type, event_type (e.g. race), description (notes), rpe, feel, privacy, or the gear used: add_gear puts shoes or a bike on it, remove_gear takes one off (swap: both in one call). Without id it adds a manual activity (type, start, duration_min; optional distance_km, name, description, rpe, feel, privacy, default private): show the user these values and call after they agree. Only call when the user asked for the change. Returns the activity after the edit.

Inputs: id, rpe, feel, name, +9 more. Returns: data, meta

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 21 tools

    Disambiguation3/5

    Most tools are cleanly separable (get_activity vs get_activities, get_workout vs list_workouts, get_gear vs get_devices), but the analytics cluster is crowded: get_load, get_training_status, get_readiness and get_period_summary all return fitness/fatigue/load data, and get_load vs get_training_status both produce CTL/ATL/TSB, differing only in which model computes them. The descriptions do heavy lifting to explain the split, but an agent can easily misselect between the 'own TSS model' and 'Garmin EPOC model' tools.

    Naming Consistency4/5

    Nearly all tools follow a verb_noun convention (get_sleep, create_workout, set_threshold, compare_activities, schedule_workouts), with clear domains. The main deviations are garmin_sync (server-prefixed, no noun object) and the compound download_activity_file, which break the pattern slightly but remain readable.

    Tool Count3/5

    21 tools is at the heavy end for a single-account fitness server; the surface is broad (activities, sleep, health, workouts, gear, devices, load, thresholds) so most tools earn their place, but several read-only analytics tools could plausibly be merged. It sits in the 16-25 'feels heavy' band rather than being obviously over-scoped.

    Completeness4/5

    Coverage is broad: read/write for activities, workout create/schedule/read, sleep, health metrics, body composition, gear, devices, training analytics and threshold management, with a sync and file export path. Minor gaps remain — no delete_workout from the library, no way to delete an activity or update body composition/gear, and no calendar/race creation — but core lifecycle workflows are workable.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans on Garmin Connect, syncing to the user's watch.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans directly on Garmin Connect, syncing to your watch with guided prompts.
      1
      MIT
    • 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