Skip to main content
Glama

garmin-mcp

A small MCP server that gives Claude Desktop read-only access to Garmin Connect running, strength-training and calorie data. There are three tools and it takes roughly fifteen minutes to set up.

I built this because I wanted to track progress, amongst other things, and to analyse some data from my own training (e.g. how has my easy-run pace changed, or what did I lift on the days I also ran) without exporting CSVs by hand. It talks directly to Garmin's Connect API, so there is no third-party service in the middle and nothing is uploaded anywhere.

The tools

  • list_runs(limit, start): date, run type, distance, time, average pace, average and max HR, cadence, temperature. Covers treadmill runs too.

  • list_strength(limit, start): date, session name, duration, sets, reps, gross and active calories, average and max HR.

  • daily_calories(days, end): per-day total, active and BMR calories, plus steps and resting heart rate.

start is a row offset and end is a date, so Claude can page back through years of history rather than only the last few entries.

Everything is read-only. The library underneath (garth-ng) does expose write endpoints, but nothing here calls them: that is the only thing making this safe, since the tokens themselves grant full account access.

Requirements

Python 3.12+, uv, Claude Desktop, and a Garmin Connect account. The commands below assume a Unix shell, so macOS or Linux; Windows works too, but the paths differ. Claude Desktop itself runs on macOS, Windows, and Linux (beta, on Ubuntu and Debian). This will not work in the Claude mobile app or in claude.ai, because a local stdio server has no URL for them to connect to.

Setup

  1. Change your Garmin password to something you do not use anywhere else, since you are about to type it into a script.

  2. Clone and install:

git clone https://github.com/SuvirRathore/garmin-mcp-public.git
cd garmin-mcp-public
uv sync
  1. Authenticate once. This exchanges your password for OAuth tokens saved in ~/.garth, after which the password is never needed again:

cd garmin-mcp-public
uv run auth_setup.py

Enter your MFA code if prompted. The OAuth1 token lasts about a year and the OAuth2 one refreshes itself, so this is roughly an annual chore. Treat ~/.garth as a credential: anyone holding it can read your entire Garmin account.

  1. Test the tools directly, before involving Claude. A failure here is an auth or endpoint problem rather than an MCP problem, and it is far quicker to debug at this level than through Desktop's logs:

cd garmin-mcp-public
uv run python -c "import server; print(server.list_runs(3))"
uv run python -c "import server; print(server.list_strength(3))"
uv run python -c "import server; print(server.daily_calories(7))"
  1. Find the two absolute paths the config needs:

cd garmin-mcp-public
which uv
pwd
  1. Create or edit Claude Desktop's config file and paste in the block below, replacing the two paths with the output from step 5. Pasting your real paths also removes both instances of YOUR_USERNAME. The file lives at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows; on the Linux beta, check Anthropic's Claude Desktop documentation for the current location.

{
  "mcpServers": {
    "garmin": {
      "command": "/Users/YOUR_USERNAME/.local/bin/uv",
      "args": ["--directory", "/Users/YOUR_USERNAME/path/to/garmin-mcp-public",
               "run", "server.py"]
    }
  }
}

Both paths must be absolute. Desktop launches the server with a minimal PATH, so a bare uv fails even though it works in your shell. If you already have other servers configured, add the garmin entry alongside them rather than replacing the object. If you edit this file in TextEdit, turn smart quotes off first: curly quotes are invalid JSON.

  1. Quit Claude Desktop completely (Cmd-Q, not just closing the window) and reopen it. The config is only read at launch. Then ask it something like "show me my last five runs and my calorie burn this week" and approve the tool calls.

If it does not work

Validate the JSON first, then read the server's stderr. These paths are the macOS ones; adjust for your platform:

cd garmin-mcp-public
uv run python -m json.tool ~/Library/Application\ Support/Claude/claude_desktop_config.json
tail -50 ~/Library/Logs/Claude/mcp-server-garmin.log

Errors on every call usually mean the tokens expired: re-run auth_setup.py. The "add custom connector" dialog inside Claude is not relevant here, since it expects a remote HTTPS URL.

Notes for anyone extending this

Garmin's Connect API is undocumented and its field names drift, so when something comes back empty, inspect one real object rather than guessing. Save this as probe.py in the repo and run it with uv run probe.py, rather than pasting it into a shell:

import garth

garth.resume("~/.garth")
a = garth.connectapi(
    "/activitylist-service/activities/search/activities",
    params={"start": 0, "limit": 1},
)[0]
print(sorted(a))

Two behaviours worth knowing before you add a tool. The activityType filter accepts parent categories only: running works and quietly includes treadmill_running, while strength_training returns HTTP 400 and has to be requested as fitness_equipment then filtered in Python. And each activity carries about a hundred fields, so map them down to the handful you need: returning raw Garmin JSON floods the context window on every call.

Keep the number of tools small for the same reason. Three focused tools with descriptive docstrings work better than a dozen vague ones, because the docstrings are what Claude reads when choosing which tool to call.

MIT licensed.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    C
    maintenance
    A local, read-only MCP server that allows Claude Desktop to access Garmin Connect data such as activities and recovery metrics, enabling AI-assisted running plan creation and adjustment.
  • A
    license
    A
    quality
    B
    maintenance
    Local MCP server that connects Claude Desktop with Garmin and Apple Health data to read training and recovery, estimate heart rate and pace zones, analyze performance, and create structured workouts.
    22
    MIT

View all related MCP servers

Related MCP Connectors

  • Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.

  • MCP server for Withings health data — sleep, activity, heart, and body metrics.

  • Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SuvirRathore/garmin-mcp-public'

If you have feedback or need assistance with the MCP directory API, please join our Discord server