Skip to main content
Glama
Garmin Connect MCP

Garmin Connect MCP

by graiola

A personal, read-only MCP connector for the official Garmin Connect Personal API, supporting MCP over stdio and local Streamable HTTP. Built to help explore workouts and fitness trends—not to diagnose medical conditions.

Free, MIT-licensed, and self-hosted. You supply one Garmin Personal API key; the connector manages Garmin's temporary access tokens automatically. Never paste your key into chat, an agent configuration, or the repository.

Quick start (Linux/macOS)

1. Create your Garmin key

In Garmin Connect Web, open Profile & Account → Account Settings → Personal API Key → Create Key. Review Garmin's terms, choose an expiry, and keep the key private: Garmin displays it only once. See the official instructions. Already have a working key on this machine? Reuse it; no need to create another.

2. Install and run guided setup

With uv and Git installed, run these commands in your own terminal:

uv tool install --python 3.12 git+https://github.com/graiola/garmin-connect-mcp.git
garmin-connect-mcp setup

uv manages the isolated environment and downloads Python 3.12 if needed; you do not need to change your system Python or activate a virtual environment. If the command is not found, follow uv's PATH instructions (uv tool update-shell, then open a new terminal). This installs from this repository, not a same-name PyPI entry.

setup asks for the key with hidden input, checks Garmin authentication and one activity read, then saves a valid new key outside the repository with restricted permissions. It reuses an existing configured key when run again. It prints no key or activity records and creates no HTTP token for the normal local connection.

Already installed from a clone, or prefer plain Python? See installation and updates.

3. Connect your local AI client

Setup prints a configuration containing the actual Python path and a path to the key file, never the key. Merge its garmin entry into your client's local MCP settings, preserving existing servers. To print it again or choose another format:

Client/configuration

Command

Claude Code / Cursor (mcpServers JSON)

garmin-connect-mcp client-config

VS Code (servers JSON)

garmin-connect-mcp client-config --format vscode

Codex (config.toml)

garmin-connect-mcp client-config --format codex

Follow the client-specific locations, approve the server in your client, then ask: "Show my three latest Garmin activities." Compare one result with Garmin Connect. The local client starts the server for you; no separate stdio terminal or public port is needed. The configuration belongs on the same machine as the connector and key.

Using ChatGPT in a browser instead? A local JSON configuration is not enough. Follow the separate private ChatGPT connection guide. That route requires a supported account/workspace and an OpenAI Secure MCP Tunnel; its runtime key is separate from the Garmin key.

Setup verifies Garmin access, not the AI-client connection. Installing the companion skill from Agensi does not perform either connection step.

Related MCP server: Garmin Connect MCP Server

Available tools

Tool

Data returned

garmin_list_activities

Paginated activities, optionally filtered by date and type

garmin_get_activity

Raw activity summary and details

garmin_get_activity_workouts

Associated workouts, containing only fields actually returned by Garmin

garmin_get_health_range

Weight, steps, stress, sleep, HRV, Body Battery, and daily summaries

garmin_get_day_detail

Sleep, HRV, or heart-rate details for a day

garmin_connector_status

Capabilities, local date, and version; does not validate credentials

Dates are explicit (YYYY-MM-DD), with Europe/Rome as the default time zone. Health ranges are capped at 31 inclusive days, and activities at 50 per page. There are no Garmin write operations, deletions, workout planning, or uploads.

Strength-training limitation: Garmin's official workouts endpoint does not guarantee actual performed sets, edited exercise names, weights, or reps. This connector does not decode FIT files or fabricate missing data. Compare one of your own strength sessions against Garmin Connect before relying on it instead of a detailed export. Loads on different machines are not automatically comparable.

Key renewal and troubleshooting

Temporary Garmin access tokens are renewed automatically while your Personal API key is valid. When that key expires or is revoked, create a replacement in Garmin Connect and run this in your own terminal:

garmin-connect-mcp setup --replace-key

A failed check does not replace the previous key. Restart the connector through your client after a successful replacement. To check the current key without changing it, run garmin-connect-mcp doctor.

See setup and troubleshooting for environment/secret-manager overrides, timezones, optional HTTP, and developer installation.

Repository and security

The GitHub repository is currently public. Do not push any Garmin key, OpenAI token, personal health data, FIT export, or captured response. The scripts/publish_github.sh helper only bootstraps a new private repository and intentionally refuses to overwrite an existing one; it is not used for updates to this repository.

  • Only allowlisted official Garmin endpoints are called; no scraping, password login, reverse-engineered sessions, cookies, or arbitrary URLs.

  • Keys are exchanged for short-lived tokens when needed; tokens remain in memory. A 401 triggers at most one fresh exchange and retry.

  • Requests have bounded timeouts, concurrency, retries, and response sizes.

  • GPS coordinates and selected identifiers are filtered recursively. This is not full anonymization: activity names and free-form notes can contain personal information.

  • The connector does not independently send data to an LLM. When you call its tools from ChatGPT, responses pass through the connected services and chat.

  • Errors are sanitized; authorization headers and response bodies are not logged.

  • The lightweight, tools-only MCP transport does not implement persistent SSE, OAuth, resources, prompts, or experimental tasks.

  • Requests run on demand; there is no background monitoring or scraping.

Read SECURITY.md, the API contract, and the verification record. This is a single-user personal connector, not a multiuser or public health-data service.

Free companion skill and Agensi preparation

Garmin Connect MCP Assistant teaches an agent to use these six tools with bounded reads, explicit dates, missing-data handling and privacy safeguards. It is MIT-licensed and does not change the server. It does not include credentials, host a connector, install one automatically, or provide medical diagnoses or guaranteed performed strength sets.

The skill source is available now. An Agensi listing is prepared, not submitted or approved. Users loading it there will still need their own configured Garmin MCP connection in the same agent. Compatibility with specific third-party clients must be verified by a real read; local mocked tests are not sufficient.

Build the exact six-file, text-only upload package with Python 3.11+:

python scripts/build_agensi_package.py --check
python scripts/build_agensi_package.py

The ZIP and SHA-256 checksum are written under dist/agensi/. After successful CI, the agensi-launch-bundle Actions artifact also contains the upload ZIP, existing 512 × 512 logo and prepared listing materials. Extract that outer artifact before uploading the inner skill ZIP; do not upload the whole repository.

See the launch guide, listing description, synthetic demonstration, and acceptance checklist.

Acceptance prompts after connecting

  1. "Show my three latest activities without making fitness conclusions."

  2. "Open activity X and show only measurements that are actually available."

  3. "Compare two swims, separating moving time, elapsed time, and rest."

  4. "Read my last 14 days of weigh-ins, preserve original units, and flag gaps."

Verify at least one activity against Garmin Connect. Passing local mocked tests does not prove real data accuracy or compatibility with your ChatGPT account.

Verification status: the maintainer reported a successful local doctor on November 5, 2026 (authentication and one activity read). This was not independently repeated here. The version 0.2.0 onboarding has synthetic regression tests; live AI-client, Secure MCP Tunnel, and Agensi acceptance remain separate checks.

Available Tools

6 tools
garmin_connector_statusA
Read-onlyIdempotent

Report connector capabilities and local date without contacting Garmin or revealing any key. This does not validate authentication or account coverage.

Inputs: no named parameters.

garmin_get_activityA
Read-onlyIdempotent

Read the original Garmin summary/details for an activity ID from garmin_list_activities. Preserve units, elapsed versus moving time, and session structure. Do not infer swimming continuity from average pace.

Inputs: activity_id (required).

garmin_get_activity_workoutsB
Read-onlyIdempotent

Read Garmin's workouts associated with an activity. Availability and schema vary: this is NOT a guarantee of executed sets, edited exercise names, reps or weights. Return only what the API supplies; do not invent missing strength records.

Inputs: activity_id (required).

garmin_get_day_detailA
Read-onlyIdempotent

Read original sleep, HRV or heart-rate data for one explicit calendar date. A missing measurement is not zero. HRV/heart rate alone cannot diagnose recovery or health.

Inputs: date (required), metric (required).

garmin_get_health_rangeA
Read-onlyIdempotent

Read weight (including BIA estimates if supplied), steps, stress, sleep summaries, HRV summaries, Body Battery, or daily summaries over at most 31 inclusive calendar days. Preserve original units; values are device estimates, not diagnoses or proof of muscle gain/loss.

Inputs: metric (required), end_date (required), start_date (required).

garmin_list_activitiesA
Read-onlyIdempotent

Read a page of Garmin activities. Use offset/limit for pagination; stop when fewer than limit records are returned. Dates use the account's calendar dates. activity_type is Garmin's type key (e.g. running, lap_swimming, strength_training), not an exercise name. No inferred fitness conclusions.

Inputs: limit, offset, end_date, start_date, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools map to distinct resources/actions (list vs. get activity, workouts tied to an activity, connector status). The only real overlap is between garmin_get_health_range and garmin_get_day_detail, since both can return sleep/HRV data for a single day; the descriptions distinguish summaries from original per-date data, which mostly resolves it.

    Naming Consistency4/5

    All names share the garmin_ prefix and follow a verb_noun pattern (get_activity, list_activities, get_health_range, get_day_detail). garmin_connector_status is a minor deviation lacking a verb, but it is still clearly readable and predictable.

    Tool Count4/5

    Six tools is a lean, well-scoped surface for a read-only Garmin data connector, and each tool covers a distinct access pattern. Slightly thin, but no tool feels redundant.

    Completeness4/5

    The core read lifecycle is covered: status, activity listing/pagination, activity details, activity workouts, and ranged/per-day health metrics. Minor gaps exist (no explicit workout library, device/profile info, or dedicated splits/streams access), but agents can work around them via garmin_get_activity.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • 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 MCP-capable AI apps to query a user's own Garmin sleep, HRV, stress, Body Battery, heart-rate, activity, and body-metric data through Garmin's official Personal API in a read-only, locally run setup.
      14
      39 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Gives MCP clients read-only access to Garmin Connect data through Garmin's official Personal API, exposing daily metrics, sleep, activities, body composition, and related wellness endpoints via OAuth-protected remote tools.
      MIT