Garmin Connect (unofficial)
Read-only access to your Garmin Connect sleep, HRV, stress and recovery data
Garmin Connect (unofficial) is an MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.1.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a 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.1Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.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>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
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.1Or add to config.toml
Add to ~/.codex/config.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>" }Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
GARMIN_API_KEYGarmin Personal API key from https://connect.garmin.com/app/settings/personalApiTokenRequiredGARMIN_TZYour IANA time zone, e.g. Europe/Berlin (default: UTC in the container)GARMIN_API_KEYGarmin Personal API key from https://connect.garmin.com/app/settings/personalApiTokenRequiredGARMIN_TZYour IANA time zone, e.g. Europe/Berlin (default: system zone)
About Garmin Connect (unofficial)
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.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
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_statusName 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_getName suggests: reads
- Raw JSON from an allow-listed endpoint, truncated at 100 KB.
What it does
- 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
Garmin Connect (unofficial) 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.
