Skip to main content
Glama
connect-personal-mcp

connect-personal-mcp

by jojomango

connect-personal-mcp

An unofficial, read-only MCP server for your own Garmin Connect™ data, built on Garmin's official Personal API. Ask Claude (or any MCP client) about your sleep, HRV, Body Battery, runs and more.

繁體中文說明

IMPORTANT

Not affiliated with or endorsed by Garmin. You need your own Garmin Personal API key, and its use is governed by Garmin's terms: the key is for your own use only, must never be shared, and Garmin may rate-limit or revoke it. Read the Garmin terms summary (paraphrased from Garmin) before you start.

  • Bring your own key. Runs on your computer and talks only to Garmin. No shared server, no telemetry.

  • Read-only. 23 tools, none of which change anything in your Garmin account.

  • Attributed. Every result is labelled data_source: "Garmin", per Garmin's API Brand Guidelines.

  • Standard library only for the Garmin client; the single dependency is the MCP Python SDK.

1. Create your Personal API key

  1. Sign in to Garmin Connect on the web and open Personal API Key.

  2. Select Create Key, accept the terms, choose an expiry (30, 90 or 180 days, or 1 year) and Create.

  3. Copy the key. Garmin shows it only once. Garmin emails you about a week before it expires.

Related MCP server: garmin-mcp

2. Install

Option A: Claude Desktop extension (one click)

Install the connect-personal-mcp extension, then paste your key into the extension's settings. The key is kept in your operating system's secure storage. (Directory listing pending; until then, download the .mcpb file from the Releases page and open it with Claude Desktop.)

Option B: from source (Claude Code, Claude Desktop or any MCP client)

Requires uv.

git clone https://github.com/jojomango/connect-personal-mcp.git
cd connect-personal-mcp
uv run connect-personal-mcp-setup     # paste your key; it is verified, then saved outside the repo

Claude Code:

claude mcp add garmin --scope user -- uv run --directory "$PWD" connect-personal-mcp

Use --scope user so the configuration lives in your home directory, not in the repository.

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "garmin": {
      "command": "uv",
      "args": ["run", "--directory", "/absolute/path/to/connect-personal-mcp", "connect-personal-mcp"]
    }
  }
}

Then try: "How did I sleep this week?" or "Compare the heart rate of my last three runs."

Tools

Tool

Data

daily_summary

Steps, calories, resting HR, stress, Body Battery, intensity minutes (one day or a range)

sleep

Sleep stages and score (one night or a range)

heart_rate

All-day heart rate for one day

hrv

HRV status and baseline (one day or a range)

body_battery, stress, steps, hydration

Daily statistics for a range

spo2_acclimation

Pulse Ox and altitude acclimation

weight, weight_goal

Weight, body composition and goals

vo2max, fitness_age, heart_rate_zones

Fitness metrics

nutrition

Food log

menstrual_cycle

Cycle summary or day view

user_settings

Units, profile and sleep schedule

activities

Search workouts, with pace, HR zones, cadence and stride in compact mode

activity_detail, activity_workouts

One workout in detail

activity_summary_range

Wellness activities such as breathwork (not workouts)

activity_types

Valid activity type keys

download_activity_file

Save the original FIT file to ~/Downloads/garmin

Dates accept YYYY-MM-DD, today or yesterday. Training readiness, training status and respiration are not available in the Personal API, so they are not included.

Configuration

Variable

Default

Purpose

GARMIN_API_KEY

—

Use this key instead of the saved file

GARMIN_REGION

global

Set to cn for China-region (garmin.cn) accounts

GARMIN_CACHE_TTL

300

Seconds to reuse identical results (0 disables)

GARMIN_DOWNLOAD_DIR

~/Downloads/garmin

Where download_activity_file saves files

GARMIN_MCP_CONFIG_DIR

~/.config/connect-personal-mcp

Where the setup command stores the key

Security and privacy

  • Your key never enters this repository. If you ever expose it, delete it on Garmin Connect at once: every token issued from it stops working immediately.

  • Data flows only between Garmin and your computer, then to the MCP client you choose. See PRIVACY.md.

Development

uv run python -m unittest discover -s tests   # offline tests against a mock Garmin API
npx @anthropic-ai/mcpb pack                    # build the desktop extension (.mcpb)

License

MIT. Garmin, Garmin Connect and Body Battery are trademarks of Garmin Ltd. or its subsidiaries. This project is not affiliated with or endorsed by Garmin.

Available Tools

23 tools
activitiesSearch activitiesA
Read-onlyIdempotent

Search activities, newest first. activity_type e.g. running, cycling, swimming (see activity_types). compact=True returns the common fields, including pace, heart rate zone seconds, cadence, stride and training effect; compact=False returns every field (including the owner's name and GPS start/end points). Use activity_detail for laps.

Inputs: limit, search, compact, end_date, +2 more.

activity_detailActivity detailB
Read-onlyIdempotent

Full summary of one activity: splits, heart rate, pace, training effect.

Inputs: activity_id (required).

activity_summary_rangeWellness activitiesA
Read-onlyIdempotent

Wellness activity records (e.g. breathwork) in a date range. This is NOT a workout summary; use activities for runs, rides and other workouts.

Inputs: start (required), end.

activity_typesActivity typesA
Read-onlyIdempotent

All supported activity types (the typeKey works as activities' activity_type).

Inputs: no named parameters.

activity_workoutsActivity workoutsC
Read-onlyIdempotent

Workouts linked to one activity.

Inputs: activity_id (required).

body_batteryBody BatteryC
Read-onlyIdempotent

Daily Body Battery reports (charged, drained, highs and lows).

Inputs: end, start.

daily_summaryDaily summaryB
Read-onlyIdempotent

Daily overview: steps, distance, calories, resting heart rate, stress, Body Battery, intensity minutes, floors. Give only start for one day, or start+end for a daily list.

Inputs: end, start.

download_activity_fileDownload activity fileA
Idempotent

Download one activity's original file (FIT, usually zipped) to the local Downloads/garmin folder and return its path. Writes a local file only; nothing changes in Garmin Connect.

Inputs: activity_id (required).

fitness_ageFitness ageC
Read-onlyIdempotent

Fitness age and the factors behind it.

Inputs: day.

heart_rateHeart rateB
Read-onlyIdempotent

One day of heart rate: resting, max, min and the all-day time series.

Inputs: day.

heart_rate_zonesHeart rate zonesC
Read-onlyIdempotent

The user's configured heart rate zones.

Inputs: no named parameters.

hrvHeart rate variabilityA
Read-onlyIdempotent

HRV: overnight average, baseline range and status. Only start: single-day detail; start+end: daily summaries.

Inputs: end, start.

hydrationHydrationC
Read-onlyIdempotent

Daily hydration logs for a date range.

Inputs: start (required), end.

menstrual_cycleMenstrual cycleB
Read-onlyIdempotent

Menstrual cycle summary; detailed=True returns the detailed day view.

Inputs: day, detailed.

nutritionNutrition logB
Read-onlyIdempotent

Food log and nutrition goals for one day.

Inputs: day.

sleepSleepA
Read-onlyIdempotent

Sleep: duration, deep/light/REM/awake stages, sleep score and feedback. The date is the day you woke up. Only start: detailed single night; start+end: summaries for the range.

Inputs: end, start.

spo2_acclimationPulse Ox and acclimationC
Read-onlyIdempotent

Blood oxygen (SpO2) and altitude acclimation for one day.

Inputs: day.

stepsStepsB
Read-onlyIdempotent

Daily steps, distance and step goal for a date range.

Inputs: start (required), end.

stressStressC
Read-onlyIdempotent

Daily stress statistics for a date range.

Inputs: start (required), end.

user_settingsUser settingsB
Read-onlyIdempotent

User settings: units, height, weight, birth date, sleep schedule, etc.

Inputs: no named parameters.

vo2maxVO2 maxA
Read-onlyIdempotent

Daily VO2 max (MaxMET) values. Optional sport filter, e.g. ["RUNNING"] or ["CYCLING"]. Readings are only recorded on some days, so use a wide date range.

Inputs: start (required), end, sport.

weightWeight and body compositionC
Read-onlyIdempotent

Weight and body composition entries for a date range.

Inputs: start (required), end.

weight_goalWeight goalC
Read-onlyIdempotent

Weight goals in effect during a date range.

Inputs: start (required), end.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 23 tools

    Disambiguation4/5

    Each tool maps to a distinct health metric or activity operation, and descriptions actively disambiguate tricky pairs (e.g. activity_summary_range explicitly says it is NOT a workout summary; activities vs activity_detail clarified by pointing to detail for laps). Minor overlap exists where daily_summary and steps both return step data, and the four 'activity_*' tools require careful reading, but boundaries are workable.

    Naming Consistency4/5

    All names use snake_case, which keeps the set predictable. However, the mix of bare noun names (sleep, stress, weight, hydration, nutrition, activities) with verb-led names (download_activity_file) and inconsistent singular/plural prefixes (activities vs activity_detail/activity_types) prevents a perfect score.

    Tool Count3/5

    23 tools is on the heavy side and at the upper end of the acceptable band. The count is largely justified because each tool corresponds to a genuinely different Garmin data type, but a few activities-* tools could plausibly be consolidated into one parameterized tool.

    Completeness4/5

    Coverage of read-side personal health data is very broad: sleep, HR, HRV, stress, body battery, SpO2, weight, VO2max, nutrition, menstrual cycle, activities, and even raw file download. Gaps exist on the write side (no logging of hydration, food, or weight, and no profile update despite user_settings), which limits it to a read-only surface.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Exposes personal Garmin wellness data through MCP tools for accessing summary, sleep, HRV, heart rate, stress, body battery, and historical data.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables retrieval of Garmin Connect data such as activities, sleep, heart rate, and body battery levels using unofficial API through MCP tools.
      4
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Provides read-only access to your Garmin Connect health data, including sleep, HRV, body battery, stress, training readiness, and activities, through an MCP server.
      14
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables an MCP client to read and write a personal Garmin Connect account: activities with per-set strength detail, daily health metrics (sleep, HRV, stress, steps, readiness), planned and completed workouts, and weigh-ins with body composition. It also logs finished strength sessions and body-composition readings as FIT files so they appear in Garmin Connect like natively recorded ones.
      38
      89 PyPI
      2
      MIT