# Garmin Connect (unofficial)

> Garmin Connect (unofficial) is an MCP server for health and science. Read-only access to your Garmin Connect sleep, HRV, stress and recovery data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/sasha-sup/garmin-mcp
- **MCP Registry name:** io.github.sasha-sup/garmin-mcp
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-23

## About

This unofficial server lets Claude or another MCP client read your own Garmin Connect data through Garmin's Personal API. It is not affiliated with Garmin. You create a personal API key in Garmin Connect (shown once, with an expiry of 30 days to a year), and the server never writes anything back.

The focus is sleep and wellbeing advice. Beyond fetching records, the server computes averages, sleep regularity, weekly sleep shortfall, social jetlag, deviations from your own 28-day baseline and links between a day's stress or late workouts and the following night. The Personal API has no Training Readiness or VO2max trend, so `garmin_recovery_status` builds comparable signals itself and labels them as computed by the server, not by Garmin.

It installs as a Claude Desktop bundle, a Claude Code plugin, a Go binary or a Docker image, and ships ready-made prompts for sleep review, wellbeing review and readiness check.

## Features

- **Sleep analysis:** Duration against Garmin's sleep need, onset spread, stage shares and previous-day factors.
- **Recovery snapshot:** Compares HRV, resting heart rate and stress with your own previous 28 days.
- **Activity and body data:** Workouts, heart rate zones, weight, Body Battery and daily summaries.
- **Raw endpoint access:** An allow-listed raw JSON tool for extra data such as hourly SpO2 and hydration.
- **Sensitive data gate:** Nutrition and menstrual-cycle endpoints stay off unless `GARMIN_ALLOW_SENSITIVE=1`.
- **Local caching:** Caches responses on disk, with a setting to turn the cache off.

## Good for

- Review a month of sleep and get concrete suggestions
- Decide whether today suits a hard workout
- Track resting heart rate and HRV over six months
- Find out whether stress or late workouts hurt your sleep more

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add garmin-mcp --env GARMIN_API_KEY='<GARMIN_API_KEY>' -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add garmin-mcp --env GARMIN_API_KEY='<GARMIN_API_KEY>' -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.garmin-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GARMIN_API_KEY", "ghcr.io/sasha-sup/garmin-mcp:0.1.1"]
env = { GARMIN_API_KEY = "<GARMIN_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GARMIN_API_KEY='<GARMIN_API_KEY>' garmin-mcp docker -- run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "garmin-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GARMIN_API_KEY",
        "ghcr.io/sasha-sup/garmin-mcp:0.1.1"
      ],
      "env": {
        "GARMIN_API_KEY": "<GARMIN_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 13 tools read data; 11 names don't say. From the server's own tool labels and tool names; not verified by us.

- `garmin_sleep_analysis`: Analyses sleep duration, regularity, stages and contributing factors.
- `garmin_sleep`: Returns per-night sleep records.
- `garmin_recovery_status` (name suggests: reads): One-day readiness snapshot against your own baseline.
- `garmin_trends`: Weekly or monthly averages of key metrics.
- `garmin_daily_summary`: Per-day steps, distance, calories, heart rate and stress.
- `garmin_hrv`: Overnight HRV with baseline band and status.
- `garmin_body_battery`: Body Battery charge, drain and events.
- `garmin_heart_rate`: Heart rate for one day in chosen intervals.
- `garmin_activities`: Lists workouts with load and training effect.
- `garmin_activity`: Full summary of one workout.
- `garmin_profile`: Time zone, heart rate zones, Fitness Age and latest weight.
- `garmin_weight`: Weigh-ins with BMI, body fat and muscle mass.
- `garmin_api_get` (name suggests: reads): Raw JSON from an allow-listed endpoint, truncated at 100 KB.

## FAQ

### Is Garmin Connect (unofficial) official?

No. The README says it is not affiliated with, endorsed by or supported by Garmin.

### Can Garmin Connect (unofficial) change my Garmin data?

No. It is read-only.

### What do I need?

A Garmin Personal API key and, optionally, your IANA time zone in `GARMIN_TZ`.

### Which date does a night of sleep belong to?

The wake-up date, so the night of 10 to 11 November is filed under 11 November.

### How do I add Garmin Connect (unofficial) to Claude Code?

Run this command in your terminal: claude mcp add garmin-mcp --env GARMIN_API_KEY='<GARMIN_API_KEY>' -- docker run -i --rm -e GARMIN_API_KEY ghcr.io/sasha-sup/garmin-mcp:0.1.1

### What are the best alternatives to Garmin Connect (unofficial)?

The closest alternatives to Garmin Connect (unofficial) are Tooluniverse, Oya Browser, BasalFit, KidneyWatch Renal Diet (CKD) Food Check and Alpha-Gal Watch: Alpha-Gal Syndrome Food Check.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.
- [KidneyWatch Renal Diet (CKD) Food Check](https://ai-powered.com/mcp/kidneywatch-renal-diet-ckd-food-check): KidneyWatch Renal Diet (CKD) Food Check is an MCP server for mcp data access.
- [Alpha-Gal Watch: Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/alpha-gal-watch-alpha-gal-syndrome-food-check): Alpha-Gal Watch: Alpha-Gal Syndrome Food Check is an MCP server for food and drink.
- [Renal Diet (CKD) and Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/renal-diet-ckd-and-alpha-gal-syndrome-food-check): Renal Diet (CKD) and Alpha-Gal Syndrome Food Check is an MCP server for mcp data access.
- [Diochi — bylinné přípravky, kluby a Sféra](https://ai-powered.com/mcp/diochi-bylinne-pripravky-kluby-a-sfera): Diochi — bylinné přípravky, kluby a Sféra is an MCP server for health and science.
- [ClinicalTrials.gov Biotech Sponsor & PI Emails MCP](https://ai-powered.com/mcp/clinicaltrials-gov-biotech-sponsor-and-pi-emails-mcp): ClinicalTrials.gov Biotech Sponsor & PI Emails MCP is a paid MCP server for sales and crm.

---
Source: https://ai-powered.com/mcp/garmin-connect-unofficial
