EN FR GitHub

Your Garmin data, in Claude.

One command installs a small connector on your own machine.

curl -fsSL https://raw.githubusercontent.com/devfrp/mcp-garmin-for-ia/main/get.sh | sh

Where your Garmin email and password go

  1. 1Your browserthe setup page
  2. 2That machinegarmin-mcp, under your own user
  3. 3GarminGarmin SSO

And nowhere else. No hosting provider, and not this project, can ever see them.

Nothing in the middle

Most connectors ask you to hand your Garmin credentials to somebody else’s server. This one runs on hardware you control. The installer sets everything up under your own user, registers the connector as a service that starts with the machine (systemd or launchd) and prints the sign-in links.

Runs on

  • a laptop
  • a home server
  • a Proxmox container
  • a VPS

Works with

  • Claude Code
  • Claude Desktop
  • claude.ai in the browser
  • any other MCP client

Keeps

  • OAuth tokens in ~/.config/garmin-mcp/
  • the password: never stored

What Claude can read

Nine tools, straight from the Garmin Connect API, read-only.

  • Training

    Activities

    The activity list, and the full detail of any single one: splits, laps, the whole record.

  • Day

    Daily summary

    Steps, calories, intensity minutes, floors: the day at a glance.

  • Recovery

    Sleep

    Stages, duration and sleep score, night by night.

  • Cardio

    Heart rate

    Resting heart rate and the intraday series.

  • Energy

    Body Battery

    The charge/drain curve across the day.

  • Load

    Stress & HRV

    Stress levels and heart-rate variability: the two that say whether to push or rest.

  • Account

    User profile

    The profile behind the numbers, so the figures get read in context.

  • Any client

    Plain MCP

    No Claude-only trick: any MCP client can point at the same endpoint.

Install

Linux and macOS. One self-contained binary, written in Rust: no Python, no runtime. The script installs Tailscale or NetBird when it needs it (--tailscale, --tailscale-serve, --funnel, --netbird) and --no-sudo forbids any privilege escalation, implicit when running as root.

Personal machine
curl -fsSL https://raw.githubusercontent.com/devfrp/mcp-garmin-for-ia/main/get.sh | sh
Home server / LXC / VPS
# LAN + Tailscale (home server)
… | sh -s -- --server
# bind to the Tailscale IP only (VPS with a public IP)
… | sh -s -- --server --tailscale
# same with NetBird (netbird.io or self-hosted)
… | sh -s -- --server --netbird
# unattended / self-hosted: NETBIRD_SETUP_KEY=… and
# --netbird-management-url=https://netbird.example.com
# + a permanent HTTPS URL, private to your tailnet, for local clients
# you run yourself (Claude Code etc), NOT for claude.ai, see warning
… | sh -s -- --tailscale-serve
# + a permanent HTTPS URL, PUBLIC, required for claude.ai’s connector
… | sh -s -- --funnel
Sign in to Garmin
# open the page printed by the installer
http://127.0.0.1:8765/setup        # local
http://<server-ip>:8765/setup      # LAN / tailnet

MFA is supported. Sign-in endpoints only ever answer on private addresses, never on the public HTTPS entry points.

CLI
garmin-mcp               # start the connector
garmin-mcp login         # sign in from the terminal
garmin-mcp url           # print your MCP URL
garmin-mcp tunnel        # Cloudflare quick tunnel
garmin-mcp logout        # disconnect Garmin
garmin-mcp rotate-token  # new token, old URLs die

Connect a client

Local clients call the connector directly and can use a private URL. claude.ai’s “Add custom connector” is called from Anthropic’s own servers instead, so it always needs a public HTTPS address.

ClientWhat to useTransport
Claude Codeclaude mcp add -s user --transport http garmin "<URL>"token
Claude Desktoplocal MCP server confighttp://…:8765/garmin/?token=…token
claude.ai (browser) / Desktop“Add custom connector” dialoghttps://<machine>.<tailnet>.ts.net/garmin/ (public only)OAuth
  1. Get a public HTTPS address

    Only needed for the “Add custom connector” row above. --funnel at install time gives a permanent https://<machine>.<tailnet>.ts.net that survives reboots (see the warning below). The Create HTTPS link button on the setup page gives a Cloudflare quick tunnel instead, also public, and its URL changes at every restart. Claude Code / Desktop’s local config can instead use a private --tailscale-serve address or the plain token URL: no public exposure needed there.

  2. Add the connector

    Paste the HTTPS base URL followed by /garmin/, with no token.

  3. Authorize

    claude.ai opens the connector’s authorization page: paste the access token from garmin-mcp url or the setup page, and approve. The authorization persists.

Funnel and quick tunnels are public

Anyone who obtains the access token can call the MCP endpoint through them: the token is the only gate (sign-in, health and disconnect stay private, unknown paths 404). --tailscale-serve is private but cannot be used for claude.ai’s/Desktop’s “Add custom connector” at all: that flow is always called from Anthropic’s servers, never your tailnet.

If it fails: DNS still propagating

If claude.ai cannot reach the server right after enabling Funnel, wait a few minutes. If it persists, rename the machine in the Tailscale admin console (a fresh DNS name resolves immediately) and re-run the installer.

How it works

One process on your machine, two ways in, and only one of them is reachable from the internet.

  • browser

    Signs in on the setup page: the password goes straight to Garmin SSO and is never stored

  • garmin-mcp

    The connector, on your machine. OAuth tokens in ~/.config/garmin-mcp/. Talks to Garmin SSO + the Connect API

  • /garmin/

    MCP endpoint: the per-install token as ?token=, as a path prefix /t/<token>/garmin/, or as a Bearer header. Local clients, direct: Claude Code, Desktop’s local config, or --tailscale-serve for any client on your tailnet

  • public HTTPS entry

    Funnel or quick tunnel: only the MCP endpoint and the OAuth surface answer; sign-in, health and disconnect stay private, everything else returns 404. claude.ai / “Add custom connector”, called from Anthropic’s servers (OAuth 2.1 + PKCE)

With Funnel or a quick tunnel, internet scanners probing the public address are normal: everything they touch returns 404. --tailscale-serve skips this entirely for direct local clients, but it’s a separate, private address that claude.ai’s “Add custom connector” can never reach: that flow always needs the public one.

Proxmox LXCWhat to do
Runs as rootwithout ever calling sudoInstalls a system-wide systemd unit that starts with the CT.
Tailscale and NetBird need /dev/net/tunIf the container lacks it, the script stops and prints the exact two lines to add to /etc/pve/lxc/<CTID>.conf on the Proxmox host.
Nothing elseThe connector is a static binary: no Python, no packages to install first.