Logo vun Garmin Personal MCP

Garmin Personal MCP

Communautéit
Mason-Levyy

MCP server for Garmin Connect on Garmin's official Personal API: sleep, HRV, body battery, activities, and more from Claude or any MCP client

EditeurMason-Levyy
Repositorygarmin-personal-mcp
SproochPython
Forks
7
Stären
55
Disponibel Tools
0
Transporttypstdio, streamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Garmin Personal MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    55 Stären an 7 Forks aus dem verlinkte Repository.

Garmin Personal MCP

Ask your AI about your Garmin data, on Garmin's official API.

Mason-Levyy/garmin-personal-mcp MCP server PyPI CI Python GitHub stars License: MIT

Install in Cursor Install in VS Code Install in VS Code Insiders

Quickstart · Tools · Authentication · Changelog

Garmin Personal MCP is a free, open-source MCP server that connects your Garmin Connect account to Claude, Cursor, VS Code, or any other MCP client. Ask about last night's sleep, HRV trends, Body Battery, stress, training load, weight, or a specific run, all from your real Garmin account. It runs on Garmin's official Personal API with a revocable key, so it never needs your Garmin password, and it's read-only.

Published on PyPI as garmin-personal-mcp and in the official MCP Registry as io.github.Mason-Levyy/garmin-personal-mcp.

Unofficial project, official API. This isn't made by Garmin, but it only talks to Garmin's documented Personal API through Garmin's own Python client.

How is this different from other Garmin MCP servers?

Most Garmin MCP servers sign in with your Garmin password through the unofficial garminconnect library, which breaks whenever Garmin changes its login. In October 2026 Garmin opened a Personal API for individuals. This server uses it:

  • No password, no scraping: a revocable Personal API key you create in Garmin Connect, exchanged for short-lived tokens
  • The whole Personal API: every working endpoint in Garmin's reference has a tool, with every documented filter
  • Any date range: ranges longer than an endpoint allows (28 days for steps, 31 for sleep, and so on) are split into requests for you
  • Model-sized responses: all-day sample arrays are left out unless you ask for them
  • Read-only: the Personal API can't change your account, and neither can this server

Quickstart

  1. Save your Personal API key (one-time; see Authentication):

    bash
    uvx garmin-personal-mcp auth
  2. Add the server to your client. The install buttons at the top do this in one click for Cursor and VS Code.

    Claude Code

    bash
    claude mcp add garmin -- uvx garmin-personal-mcp

    Or install it as a plugin, which asks for your key in place of step 1:

    /plugin install garmin-personal-mcp --marketplace Mason-Levyy/garmin-personal-mcp

    Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json), and Cline (cline_mcp_settings.json) all take the same entry:

    json
    {
      "mcpServers": {
        "garmin": {
          "command": "uvx",
          "args": ["garmin-personal-mcp"]
        }
      }
    }

    VS Code (or use the button above):

    bash
    code --add-mcp '{"name":"garmin","command":"uvx","args":["garmin-personal-mcp"]}'

    Codex CLI:

    bash
    codex mcp add garmin -- uvx garmin-personal-mcp

    Gemini CLI:

    bash
    gemini mcp add garmin uvx garmin-personal-mcp
  3. Ask it something: "how did I sleep last night?", "is my HRV trending down this month?", "compare my last three long runs".

Requires uv. Any MCP client that speaks stdio or streamable HTTP works, not just Claude.

Finding this useful? A ⭐ on GitHub helps other Garmin users find it.

Authentication

  1. Sign in to Garmin Connect on the web and open Settings → Personal API.
  2. Create a key and choose how long it lasts (30 days to a year). Garmin shows it once.
  3. Run garmin-personal-mcp auth and paste it at the hidden prompt. The server checks it with Garmin before saving it to ~/.config/garmin/connect-personal-api-key with owner-only permissions.

Where there's no terminal to prompt in (a script, or a shell an agent runs), pipe the key in instead, e.g. pbpaste | garmin-personal-mcp auth.

garmin-personal-mcp auth --check reports whether the saved key still works, without prompting. Garmin emails you about a week before a key expires: create a new one and run auth again. No restart is needed; the server reads the key on every call.

Instead of the key file you can set GARMIN_PERSONAL_API_KEY, which takes precedence. The key file and bearer-token cache are the same ones Garmin's gc-personal CLI uses, so a key saved by either works for both.

Docker Compose

Run the server as a background HTTP service using the prebuilt image. Save this as compose.yaml:

yaml
services:
  garmin:
    image: ghcr.io/mason-levyy/garmin-personal-mcp:latest
    command: ["--http", "--host", "0.0.0.0"]
    environment:
      - GARMIN_PERSONAL_API_KEY
    ports:
      - "127.0.0.1:8491:8491"
    volumes:
      - garmin-config:/home/garmin/.config/garmin
      - ./downloads:/home/garmin/Downloads/garmin
    restart: unless-stopped

volumes:
  garmin-config:

latest is the newest release, the same version PyPI serves. To stay on one version, use a version tag such as :0.2.0 instead.

From the directory containing compose.yaml, create the downloads folder and pull the image:

bash
mkdir -p downloads
docker compose pull

Activity files from garmin_download_activity land in ./downloads. The tool reports the path inside the container (/home/garmin/Downloads/garmin/...), which is the same file. The container runs as uid 1000, so on Linux, if your uid isn't 1000, run sudo chown 1000 downloads.

Don't mount an existing ~/.config/garmin from the host into the container. The key file there is readable only by its owner, so the container can't read it unless your uid is 1000. Use one of the options below instead.

The container paths above and uid 1000 stay the same across releases.

Authentication

Choose one of these authentication options:

1. Add your API key to a .env file

Create .env next to compose.yaml and add your Personal API key:

dotenv
GARMIN_PERSONAL_API_KEY='your-personal-api-key'

Compose loads this file automatically. You do not need to run auth.

2. Use the interactive auth command

Leave GARMIN_PERSONAL_API_KEY unset in your shell and .env, then run:

bash
docker compose run --rm garmin auth

Paste your Personal API key at the prompt. It is saved for subsequent starts.

Start the server

bash
docker compose up -d

In your MCP client, add a Streamable HTTP server with the URL http://127.0.0.1:8491/mcp.

The server only accepts requests addressed to 127.0.0.1 or localhost, and it has no authentication. To reach it from another machine, keep the port on 127.0.0.1, put an authenticating proxy or tailnet in front (see Remote / HTTP mode), and add the hostname clients use to command:

yaml
    command: ["--http", "--host", "0.0.0.0", "--allowed-host", "garmin.example.ts.net"]

Without --allowed-host, requests to any other hostname are rejected.

Build from source

Clone the repository and use compose.yaml in its root, which builds the image from source. From the repository directory, run:

bash
docker compose build

Then follow the authentication and startup steps above. After updating the source, rebuild and restart with:

bash
docker compose up --build -d

Tools

All tools take dates as YYYY-MM-DD. Range tools default to the 7 days ending today. Tools that return a list wrap it as {"results": [...]}.

ToolWhat it returns
garmin_get_dayOne day at a glance: summary, sleep, HRV, Body Battery, stress, and activities
garmin_get_daily_summaryEvery all-day wellness total for one date
garmin_get_daily_summariesDaily summaries across a range (trends over weeks or months)
garmin_get_stepsDaily steps, distance, and goal
garmin_get_stressDaily stress level and time in each stress band
garmin_get_hydrationDaily intake, goal, and sweat loss
garmin_get_body_batteryDaily charge/drain and the events behind it; chunks for intraday lows/highs
garmin_get_heart_rateResting/min/max HR, 7-day resting average, abnormal HR alerts; samples on request
garmin_get_spo2Pulse ox averages, hourly averages, acclimation; readings on request
garmin_get_wellness_activitiesWellness activities with summary values and time in zones
garmin_get_sleepOne night in full: score, stages, timings, overnight vitals
garmin_get_sleep_summariesNightly sleep records across a range
garmin_get_hrvOne night of HRV with every reading
garmin_get_hrv_summariesNightly HRV, weekly average, baseline, and status across a range
garmin_get_weightDaily weight summaries, range average, and adjacent weigh-ins; every weigh-in with include_all
garmin_get_weight_goalsWeight goals in effect and their target ranges
garmin_get_food_logGarmin Connect nutrition log: foods, nutrients, goals, meals
garmin_search_activitiesActivities with every filter Garmin supports (type, dates, distance, power, area, dives, ...)
garmin_get_activityOne activity in full, with splits
garmin_get_activity_workoutsThe structured workout followed during an activity
garmin_download_activitySave an activity's original file (ZIP with the .fit) on the server's machine
garmin_get_profileUnits, formats, time zone, and training-day preferences
garmin_get_heart_rate_zonesZone floors per sport and the HRs they're based on
garmin_get_fitness_ageFitness age, achievable fitness age, and its components
garmin_get_menstrual_cycleCycle phase, day, fertile window, and predictions
garmin_get_menstrual_dayOne day's logged symptoms, flow, and cycle detail

Weights are in grams, distances in meters, and durations in seconds, as Garmin returns them.

Remote / HTTP mode

The default transport is stdio. For network clients:

bash
garmin-personal-mcp --http --host 127.0.0.1 --port 8491

This serves streamable HTTP at /mcp. There is no built-in authentication. Never expose it to the internet. Bind to localhost and front it with something that authenticates for you: a VPN or tailnet (e.g. tailscale serve), an authenticating reverse proxy, or an OAuth-aware MCP gateway. Behind a proxy, pass --allowed-host <proxy hostname> (repeatable) so the DNS-rebinding check accepts its Host header.

Configuration

VariablePurposeDefault
GARMIN_PERSONAL_API_KEYPersonal API key; overrides the saved key file–
GARMIN_MCP_DOWNLOAD_DIRWhere garmin_download_activity saves files; the tool can't write outside it~/Downloads/garmin (platform downloads dir)

Troubleshooting

  • "Garmin rejected the Personal API key": the key expired or was deleted. Create a new one and run garmin-personal-mcp auth.
  • "No usable Garmin Personal API key was found": run garmin-personal-mcp auth, or set GARMIN_PERSONAL_API_KEY in the client config.
  • {"no_data": ...}: Garmin has nothing for that date yet (today's HRV before you've slept, for example), or your device doesn't record that metric.
  • HTTP 400 on a long range: an endpoint without a documented limit rejected the range. Ask for a shorter one.

FAQ

Is this the official Garmin API? Yes. It uses Garmin's Personal API, which anyone with a Garmin Connect account can enable without applying, through Garmin's Apache-licensed Python client. The project itself is independent.

Can it change my Garmin data? No. The Personal API is read-only. The one tool that writes anything, garmin_download_activity, saves a file on your own machine.

Which MCP clients does it work with? Any client that runs a stdio or streamable HTTP server, including Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and VS Code. AI coding agents can follow llms-install.md.

Where does my data go? The server talks only to Garmin. Your key and bearer token stay in ~/.config/garmin/. Tool results go to whichever MCP client and model you connect it to.

Can I use it for other people's accounts? No. Garmin's Personal API is for your own data. Apps serving other users need Garmin's business developer program.

How it works

  • garmin-personal-mcp auth saves the key; each call exchanges it for a bearer token through Garmin's PersonalApiAuthenticator, which caches the token until an hour before it expires. A token rejected early gets one retry with a fresh exchange.
  • Each tool maps to one endpoint on personal.connectapi.garmin.com (garmin_get_day combines several). Ranges longer than an endpoint's documented maximum are fetched in consecutive windows and concatenated.
  • Bulky per-minute sample arrays are dropped by default to keep responses readable for a model; include_samples or chunks bring them back.

Development

bash
git clone https://github.com/Mason-Levyy/garmin-personal-mcp
cd garmin-personal-mcp
uv sync
uv run pytest

Tests run against synthetic fixtures; no account needed. Lint and formatting are enforced with ruff (uv run ruff check ., uv run ruff format .).

Contributing

Issues and pull requests are welcome, especially when Garmin adds endpoints to the Personal API. See CONTRIBUTING.md for setup, style, and the PR checklist, and SECURITY.md for how to report vulnerabilities privately. Release history is in CHANGELOG.md.

Support the project

If this server saves you time, please star the repo. Stars are how other Garmin users find it in GitHub search and MCP directories. Bug reports and endpoint requests are just as welcome in issues.

License

MIT. Garmin and Garmin Connect are trademarks of Garmin Ltd. or its subsidiaries; this project is not affiliated with or endorsed by Garmin.

Installatioun

TypingMind
{
  "mcpServers": {
    "garmin-personal-mcp": {
      "command": "uvx",
      "args": [
        "garmin-personal-mcp"
      ]
    }
  }
}

Garmin Personal MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Garmin Personal MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dir kënnt MCP lokal op Ärem Apparat ausféieren oder Iech mat enger Remote-MCP-Server-URL verbannen.

Optioun 1: De lokale Connector benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Garmin Personal MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Garmin Personal MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "garmin-personal-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Garmin Personal MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Garmin Personal MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Garmin Personal MCP?
Garmin Personal MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Garmin Personal MCP fonnt.

Optioun 2: Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann Garmin Personal MCP scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat Garmin Personal MCP an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat Garmin Personal MCP als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu Garmin Personal MCP ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu Garmin Personal MCP ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Garmin Personal MCP?
Garmin Personal MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Garmin Personal MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Garmin Personal MCP benotzt?

Garmin Personal MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Garmin Personal MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Garmin Personal MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Garmin Personal MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Garmin Personal MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Garmin Personal MCP MCP mat TypingMind?

Dir kënnt Garmin Personal MCP iwwer de lokale MCP-Connector oder iwwer d'URL vun engem Remote-MCP-Server mat TypingMind verbannen. Benotzt de lokale Connector, wann de Server Zougrëff op Fichieren, Apps oder privat Ressourcen op Ärem Apparat brauch, an eng Server-URL, wann de MCP-Server op Distanz gehost gëtt.

Wéi eng Tools stellt Garmin Personal MCP MCP an TypingMind zur Verfügung?

Garmin Personal MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Garmin Personal MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Garmin Personal MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇