garmin-mcp
A read-only MCP bridge to your live Garmin Connect account, exposing activities, daily health metrics, training/recovery stats, and workout/training-plan data as Claude Desktop tools.
Activities: list recent activities (paginated, optional type filter), fetch full detail with per-metric time series, and pull lap/split data by activity ID.
Daily health: heart rate (resting + intraday timeline), daily stats (steps, calories, floors, intensity minutes), sleep stages/score, HRV, all-day stress, Body Battery over a date range, and resting-HR trends.
Training & performance: training readiness score, Fitness Age, max metrics (e.g. VO2max), running lactate threshold (latest or ranged with daily/weekly/monthly/yearly aggregation), latest cycling FTP, FTP history by sport, and personal records.
Profile: identity/unit preferences, personal settings (max HR, resting HR, weight, height, VO2max), and configured HR and power zones per sport.
Workouts: list saved workout templates (paginated), get full structure (segments, targets, intervals), list scheduled workouts for a month, and get a scheduled workout instance.
Training plans: list plans, get details for a specific plan, and get details for an adaptive plan.
Conventions: all date params are
YYYY-MM-DDand default to today; auth uses a cached token, so expired sessions fail with a prompt to re-runscripts/setup_auth.py.Note: the schema omits several README-documented tools —
get_activity_km_splits,get_training_status,get_race_predictions, and the only write tool,create_workout— so as implemented here the server is entirely read-only.
Provides tools for interacting with Garmin Connect data, enabling access to activities, health metrics (sleep, heart rate, HRV, stress, body battery), training data (training readiness, lactate threshold, FTP, VO2max, personal records), workouts, scheduled workouts, and training plans.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@garmin-mcp What was my sleep score last night?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
garmin-mcp
A local MCP server that exposes your Garmin Connect activity, health, and training data (activities, HRV, sleep, heart rate, stress, body battery, training readiness, HR/power zones, lactate threshold, FTP, VO2max, personal records, race predictions, workouts, scheduled workouts, and training plans) as tools inside Claude Desktop.
It talks directly to the live Garmin Connect API via the
garminconnect
library. Data is read-only, except create_workout, which adds a workout to
your Garmin account.
How auth works
Garmin login happens in two separate places on purpose:
scripts/setup_auth.py— an interactive script you run yourself in a terminal. It logs in with your email/password, prompts you for an MFA code if Garmin asks for one, and saves the resulting session token to~/.garmin_mcp/tokens.The MCP server (
src/garmin_mcp/server.py), launched headlessly by Claude Desktop, only ever loads and silently refreshes that cached token. It never prompts for MFA — Claude Desktop gives it no terminal to prompt on, and blocking on stdin there would hang tool calls. If the cached session is missing or has expired, tool calls fail with an error telling you to re-runsetup_auth.py.
Your Garmin password is stored in the macOS keychain (item/service
garmin-mcp, viewable in Keychain Access), never written to a file. Only
your Garmin login email (not secret) is saved, in ~/.garmin_mcp/config.json.
Related MCP server: garmin-connect-mcp-server
Setup
Install dependencies:
cd garmin_mcp uv syncRun the one-time interactive login:
uv run python scripts/setup_auth.pyEnter your Garmin Connect email and password (the password is then stored in the keychain for next time). Enter the MFA code when prompted. On success you'll see a confirmation and the token cache path.
Register the server with Claude Desktop by editing
~/Library/Application Support/Claude/claude_desktop_config.jsonand adding (alongside any othermcpServersentries):{ "mcpServers": { "garmin": { "command": "uv", "args": ["run", "--project", "/absolute/path/to/garmin_mcp", "garmin-mcp"] } } }Fully quit Claude Desktop (Cmd+Q, not just close the window) and reopen it. The tools/hammer icon should list the
garmintools.
Tools
Tool | Description |
| Recent activities, most recent first (paginated, optional type filter) |
| Full detail for one activity: summary + per-metric time series |
| Lap/split data for one activity |
| Per-kilometer time, pace, HR, cadence, power and elevation |
| Daily resting HR + intraday HR timeline |
| Steps, calories, resting HR, distance, floors, intensity minutes |
| Sleep stages, duration, sleep score |
| Heart rate variability |
| Body Battery energy reserve over a date range |
| All-day stress level |
| Training Readiness score and contributing factors |
| Fitness trend, acute/chronic training load & ACWR, VO2max, and 4-week Load Focus breakdown |
| Identity, unit prefs, personal settings (max HR, resting HR, weight, height, VO2max), HR zones and power zones per sport |
| Running lactate threshold: heart rate, power, and speed |
| Latest cycling Functional Threshold Power |
| Historic FTP for a sport over a date range |
| Max-metric data (e.g. VO2max) over a date range |
| Daily resting heart rate trend over a date range |
| Garmin Fitness Age for a given date |
| Personal records |
| Predicted race times for 5K, 10K, half marathon, marathon |
| Saved workout templates, most recent first (paginated) |
| Full structure of one workout: segments, targets, intervals |
| Create a workout (skipped if one with the same name exists); can also schedule it |
| Calendar of workouts scheduled for a given month |
| Detail for one scheduled workout instance |
| Training plans |
| Details for a specific training plan |
| Details for a specific adaptive training plan |
All date parameters take YYYY-MM-DD and default to today.
Troubleshooting
A tool call returns a "Garmin session error" / "run setup_auth.py" message. Your cached refresh token expired or was revoked (this happens occasionally, e.g. after a password change or long period of inactivity). Re-run:
uv run python scripts/setup_auth.pyRate limited. Garmin Connect will occasionally rate-limit rapid requests; the underlying library retries transient failures automatically, but if you see a rate-limit error, wait a bit and try again.
Verifying the server directly, outside Claude Desktop:
uv run mcp dev src/garmin_mcp/server.pyopens the MCP Inspector so you can call each tool by hand and check its output/schema.
Project layout
garmin_mcp/
pyproject.toml
src/garmin_mcp/
auth.py # keychain + token-cache helpers
server.py # FastMCP server and tool definitions
scripts/
setup_auth.py # interactive one-time/occasional loginAvailable Tools
25 toolsget_activityA
Get full detail for a single activity: summary plus per-metric time series (pace/HR/power/elevation, GPS-derived stats, etc.).
Args: activity_id: The Garmin activity ID, as returned by list_activities.
Inputs: activity_id (required).
get_activity_splitsA
Get lap/split data for a single activity.
Args: activity_id: The Garmin activity ID, as returned by list_activities.
Inputs: activity_id (required).
get_adaptive_training_planB
Get details for a specific adaptive training plan.
Args: plan_id: The adaptive training plan ID, as returned by list_training_plans.
Inputs: plan_id (required).
get_body_batteryB
Get Body Battery (energy reserve) data over a date range.
Args: start_date: Start date as YYYY-MM-DD. Defaults to today. end_date: End date as YYYY-MM-DD. Defaults to start_date.
Inputs: end_date, start_date.
get_cycling_ftpA
Get the athlete's latest cycling Functional Threshold Power (FTP).
Inputs: no named parameters.
get_daily_statsA
Get a day's overall stats summary: steps, calories, resting HR, distance, floors climbed, intensity minutes, etc.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_fitness_ageA
Get the athlete's Garmin Fitness Age for the given date.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_ftp_historyA
Get historic Functional Threshold Power for a sport over a date range.
Args: start_date: First date in the range, as YYYY-MM-DD. end_date: Last date in the range, as YYYY-MM-DD. sport: Garmin sport key, e.g. "RUNNING", "CYCLING". aggregation: One of "daily", "weekly", "monthly", "yearly".
Inputs: end_date (required), start_date (required), sport, aggregation.
get_heart_rateA
Get a day's heart rate data: resting HR and an intraday HR timeline.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_hrvB
Get heart rate variability (HRV) data for the given date.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_lactate_thresholdA
Get running lactate threshold data (heart rate, power, and speed).
Args: latest: If True, return the latest lactate threshold info. If False, query a range instead (requires start_date). start_date: Start date as YYYY-MM-DD. Required if latest is False; ignored if latest is True. end_date: End date as YYYY-MM-DD. Defaults to today. Ignored if latest is True. aggregation: One of "daily", "weekly", "monthly", "yearly".
Inputs: latest, end_date, start_date, aggregation.
get_max_metricsA
Get max-metric data (e.g. VO2max) over a date range.
Args: start_date: Start date as YYYY-MM-DD. Defaults to today. end_date: End date as YYYY-MM-DD. Defaults to start_date.
Inputs: end_date, start_date.
get_personal_recordsC
Get the athlete's personal records.
Inputs: no named parameters.
get_profileA
Get the athlete's profile: identity/unit preferences, personal settings (including max HR, resting HR, weight, height, VO2max), configured heart rate zones per sport, and configured power zones per sport.
Inputs: no named parameters.
get_resting_heart_rateA
Get the daily resting heart rate trend over a date range.
Args: start_date: Start date as YYYY-MM-DD. Defaults to today. end_date: End date as YYYY-MM-DD. Defaults to start_date.
Inputs: end_date, start_date.
get_scheduled_workoutA
Get detail for one scheduled workout instance.
Args: scheduled_workout_id: The scheduled-workout ID, as returned by get_scheduled_workouts.
Inputs: scheduled_workout_id (required).
get_scheduled_workoutsA
Get the calendar of workouts scheduled for a given month. This is the primary way to find out what's coming up next in training.
Args: year: Four-digit year, e.g. 2026. month: Month number, 1-12.
Inputs: year (required), month (required).
get_sleepA
Get sleep data for the night ending on the given date: sleep stages, duration, sleep score, and related metrics.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_stressA
Get all-day stress level data for the given date.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_training_planB
Get details for a specific training plan.
Args: plan_id: The training plan ID, as returned by list_training_plans.
Inputs: plan_id (required).
get_training_readinessA
Get Garmin's Training Readiness score and contributing factors for the given date.
Args: date_str: Date as YYYY-MM-DD. Defaults to today.
Inputs: date_str.
get_workoutA
Get the full structure of one workout: segments, targets, intervals.
Args: workout_id: The workout ID, as returned by list_workouts or get_scheduled_workout.
Inputs: workout_id (required).
list_activitiesA
List recent Garmin activities, most recent first.
Args: limit: Maximum number of activities to return. start: Number of most-recent activities to skip (for pagination). activity_type: Optional Garmin activity type filter, e.g. "running", "cycling", "swimming". Leave unset to include all types.
Inputs: limit, start, activity_type.
list_training_plansB
List training plans.
Inputs: no named parameters.
list_workoutsA
List the athlete's saved workouts (templates), most recent first.
Args: limit: Maximum number of workouts to return. start: Number of most-recent workouts to skip (for pagination).
Inputs: limit, start.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Each tool targets a distinct Garmin data resource (activities, sleep, HRV, workouts, plans). A few metrics overlap—get_heart_rate vs get_resting_heart_rate and daily stats including resting HR—but descriptions clarify the unit (intraday day vs range trend). No two tools are truly interchangeable.
All tools follow a consistent get_/list_ + noun pattern, with clear singular/plural distinctions like get_scheduled_workout vs get_scheduled_workouts. The few compound names (get_cycling_ftp, get_lactate_threshold) are readable and fit the pattern.
25 tools is at the heavy end of the range; each represents a specific endpoint but the set could be streamlined (e.g., range-based metrics could share a generic pattern). Still, the count is justified by Garmin's many distinct data categories and remains navigable.
The read-side surface is broad: activities, daily wellness, training metrics, workouts, scheduled workouts, and training plans are all covered. Missing write/management operations (activity uploads, workout creation, plan enrollment) and some niche metrics keep it from a 5.
Maintenance
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin Connect MCP server for ChatGPT, Claude and any AI agent: list activities, download FIT file, read sleep and HRV, get training status, create workout and schedule workout in your own Garmin Connect account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Garmin Connect yourself; Cotlet does not store your password and you need no Garmin Connect API key. About the official Garmin Connect API: Yes, in part (checked 27 Oct 2026). Garmin reopened its Connect Developer Program on 21 Oct 2026. Setup and FAQ: https://cotlet.dev/integrations/garmin-api-mcp-server
Pace is a remote MCP server that exposes wearable and fitness data to Claude via the Model Context Protocol. It connects to Garmin, Oura, Whoop, Polar, Fitbit and 20+ devices and provides 15 tools for querying sleep, activity, recovery, and training data. Hosted on Google Cloud Run, OAuth 2.1 authentication, Streamable HTTP transport. Instructions: First you need to create an account at: https://pacetraining.co and connect your wearables. After that you can connect the remote Server via Custom Connector in Claude and OAuth 2.1 Flow startet.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis Model Context Protocol (MCP) server connects to Garmin Connect and exposes your fitness and health data to Claude and other MCP-compatible clients.1MIT
- AlicenseAqualityDmaintenanceA read-only MCP server that gives Claude Desktop access to your Garmin Connect data — daily health metrics, sleep, activities, training status, and body composition.6MIT
- AlicenseNot gradedqualityBmaintenanceA local, single-user, read-only MCP server that gives Claude Code access to your Garmin health and training data, exposing tools for health snapshots, training status, run details, body metrics, and training analysis.1MIT
- AlicenseNot gradedqualityDmaintenanceA local, read-only MCP server that gives Claude access to your Garmin health and training data, exposing tools for health snapshots, training status, run details, body metrics, and training analysis.MIT