Garmin Connect API logo

Garmin Connect API

by happyc0der

Read Garmin health and activity data, plan workouts, log sessions, correct sets, and record weigh-ins through MCP.

Install Garmin Connect API

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "happyc0der-garmin-connect-api": {
      "command": "uvx",
      "args": [
        "--from",
        "garmin-connect-api",
        "garmin"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 38 tools correctly ().

Overview

happyc0der/garmin-connect-api connects MCP clients to Garmin Connect for reading activities, health data, workouts, trends, personal records, and weigh-ins. It also writes planned workouts, completed strength sessions, set corrections, activity metadata, and body-composition readings. Authentication is completed once through the Garmin CLI, which stores tokens locally for subsequent MCP calls. Reach for it when an agent needs to inspect or update personal Garmin data, with the caveat that it uses unofficial private endpoints.

Use cases

  • Review recent activities with detailed strength sets and swim or run pacing
  • Compare health metrics and resting heart rate across two years
  • Create and schedule targeted workouts for a Garmin watch
  • Log completed strength sessions with exercise-by-exercise sets
  • Record weigh-ins and body-composition measurements

Key features

  • Reads activities, laps, strength sets, health data, trends, and personal records
  • Creates and schedules strength, run, ride, and swim workouts
  • Uploads completed strength sessions as Garmin activities
  • Corrects activity sets and edits activity metadata
  • Records weight and full body-composition readings
  • Searches Garmin's offline exercise catalogue

Tools38

What Garmin Connect API lets your agent do. Expand a tool for its parameters.

Verified live~10.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 33d

What it can do

From the 38 tools this server returned when we ran it; 38 declare their own safety hints.

Can delete or modify data · 9Handles credentials · 1Makes network requests · 37Read-only tools · 29
Network at startup2 connections
Files written at startupNone

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · garmin-connect-api (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed38Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Garmin Connect API works

What happyc0der/garmin-connect-api MCP server does

happyc0der/garmin-connect-api gives an MCP client read and write access to a personal Garmin Connect account. Its read operations cover activities by type and date, detailed strength-training sets, running and cycling laps, pool-swim lengths and pace, daily health measurements, longer-term trends, named personal records, planned workouts, the workout calendar, and weigh-ins with body composition.

Write operations include creating and scheduling strength, running, cycling, and pool-swimming workouts; sending workouts to a watch; uploading completed strength sessions; correcting the sets in an existing session; renaming activities or changing descriptions; deleting activities, workouts, or weigh-ins; and recording weight-scale data. A completed strength session is uploaded as a FIT activity, so it appears in Garmin Connect as a strength-training activity.

The package also includes model-oriented tools. garmin_status checks local authentication, find_exercise searches Garmin's exercise naming, and recent_strength_sessions and week_summary combine common queries into single responses. The server provides 38 tools in total, with annotations indicating read, add, and delete or overwrite behavior.

How it works

The server uses the same private endpoints as the Garmin Connect website through python-garminconnect. Garmin does not provide a public API for individual users, so this is an unofficial connection intended for personal accounts and personal data. These endpoints can change, and use is not sanctioned by Garmin's terms.

MCP responses are returned as structured summaries. Python library responses use Pydantic models with snake_case fields, kilograms instead of grams, and timezone-aware timestamps; the underlying Garmin payload remains available through raw for fields that are not mapped. The package can also run as a local HTTP service on 127.0.0.1:8765 with garmin serve, or be used directly from Python.

Setup and configuration

Python 3.12 or newer and uv are required for the documented setup. Authenticate once from a terminal:

bash
uvx --from garmin-connect-api garmin login

The login flow asks for the Garmin email, password, and any multi-factor code, then stores tokens in ~/.garmin-api/default with user-only readability. MCP calls use those tokens and do not prompt for the password. Without tokens, tools instruct the user to run the login command.

A stdio configuration for Claude Desktop uses uvx and the package's @latest tag:

config.json
{
  "mcpServers": {
    "garmin": {
      "command": "uvx",
      "args": ["garmin-connect-api@latest"]
    }
  }
}

Claude Code can add the same server with claude mcp add --scope user --transport stdio garmin -- uvx garmin-connect-api@latest. The command-line package can also be installed with uv tool install garmin-connect-api.

Tools and capabilities

  • Query activities and filter them by sport and date.
  • Inspect strength exercises, repetitions, weights, volume, running and riding laps, and pool-swim lengths.
  • Retrieve daily steps, heart rate, stress, Body Battery, sleep, HRV, and readiness data.
  • Aggregate twelve trend metrics over daily, weekly, or monthly periods for ranges of up to two years.
  • Search Garmin's offline catalogue of 1,527 exercises and use Garmin exercise names in writes.
  • Build and schedule strength, run, ride, and swim workouts with targets, including sending them to a watch.
  • Log completed strength sessions, revise their sets, and record plain weigh-ins or full body-composition readings.

Workout and body-composition uploads require a timezone offset. Exercise names are checked against Garmin's catalogue for most writes, with suggestions for near matches. Raw workout DTO input is the exception to that catalogue validation.

Limitations and notes

Garmin Connect may share uploaded activities automatically when the account is linked to Strava or another service. Removing an activity from Garmin does not remove copies already sent elsewhere.

Garmin applies Cloudflare protections and per-account rate limits to login and account access. Failed logins are not retried, and a rate-limit response stops the relevant call path; waiting is required before trying again. Repeating a completed-session upload creates a duplicate activity, while uploading the same session with changed sets is not the correction workflow. Use the set-editing operation for corrections.

The project is unofficial, depends on private Garmin endpoints, and is intended for an individual's own account and data. Garmin can change those endpoints without notice. An encoded FIT session can be imported manually through the Garmin Connect website instead of uploading it through the package.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Garmin Connect API

happyc0der/garmin-connect-api is an MCP server that connects to Garmin Connect through its private website endpoints and exposes tools for reading activities, strength sets, laps, health data, trends, and personal records, while also writing workouts, completed strength sessions, set corrections, weigh-ins, and body-composition readings.

Install and run it with `uvx`, using Python 3.12 or newer and `uv`. Authenticate with `uvx --from garmin-connect-api garmin login`, then add the stdio command `uvx garmin-connect-api@latest` to an MCP client such as Claude Desktop or Claude Code.

It authenticates through the `garmin login` command, which asks for the Garmin email, password, and any multi-factor code once. Tokens are stored in `~/.garmin-api/default`, and later tool calls use those tokens without prompting for the password.

Yes, it can upload a completed strength session with its exercises and sets as a FIT activity. The activity appears in Garmin Connect as Strength Training, and existing sets should be corrected rather than uploading the session again.

Yes, it works with Claude Desktop through a stdio entry that runs `uvx` with `garmin-connect-api@latest`. The configuration belongs in Claude Desktop's `claude_desktop_config.json` file.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGarmin Connect API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/happyc0der-garmin-connect-api?style=directory)](https://allmcps.com/mcp/happyc0der-garmin-connect-api)
HTML Embed
<a href="https://allmcps.com/mcp/happyc0der-garmin-connect-api"><img src="https://allmcps.com/api/badge/happyc0der-garmin-connect-api?style=directory" alt="Garmin Connect API on AllMCPs" /></a>