Garmin Open MCP
Provides tools to interact with Garmin Connect, enabling access to health data, activities, sleep, training status, body metrics, and more.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Garmin Open MCPshow my latest running activity"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Garmin Open MCP
An unofficial, free, self-hosted bridge from Garmin Connect to MCP clients and ChatGPT mobile.
Not affiliated with or endorsed by Garmin. This project uses undocumented Garmin Connect consumer endpoints. They can change or stop working without notice.
Features
Interactive Garmin login with MFA through
python-garminconnectGarmin credentials are discarded after login; session tokens are stored with private filesystem permissions
Local SQLite cache for health summaries and activities
11 focused MCP tools over Streamable HTTP or stdio
REST/OpenAPI adapter for ChatGPT GPT Actions on iOS and Android
Static single-user API key protecting remote endpoints
Docker, systemd, and native Python deployment options
Related MCP server: Garmin Connect MCP Server
Quick start
Requires Python 3.12+ and uv.
git clone <repository-url> garmin-open-mcp
cd garmin-open-mcp
uv sync
uv run garmin-open-mcp init
uv run garmin-open-mcp login
uv run garmin-open-mcp sync --days 7
uv run garmin-open-mcp serveOpen http://localhost:8000.
Private data defaults to:
~/.local/share/garmin-open-mcp/
├── api-key
├── garmin.sqlite3
└── tokens/Override it with GARMIN_MCP_DATA_DIR.
CLI
garmin-open-mcp init
garmin-open-mcp login
garmin-open-mcp logout
garmin-open-mcp status --verify
garmin-open-mcp doctor
garmin-open-mcp sync --days 7
garmin-open-mcp show-api-key
garmin-open-mcp serve
garmin-open-mcp stdioThe login command accepts the Garmin password only in the local terminal. The password is not written to config, logs, or SQLite. Garmin session token files are set to mode 0600 where the platform supports it.
MCP
Local stdio
{
"mcpServers": {
"garmin": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/garmin-open-mcp",
"run",
"garmin-open-mcp",
"stdio"
]
}
}
}Remote Streamable HTTP
Endpoint:
https://your-server.example/mcpSend the key printed by garmin-open-mcp show-api-key as either:
Authorization: Bearer YOUR_KEYor:
X-API-Key: YOUR_KEYThe initial release uses a static single-user bearer key, not a full OAuth authorization server. MCP clients that cannot supply custom authorization headers should use stdio or the REST/GPT Actions adapter.
ChatGPT mobile setup
Custom MCP servers are not currently available directly in the ChatGPT mobile app. The included OpenAPI adapter exposes the same service to a private custom GPT:
Deploy this server at a stable HTTPS URL.
On ChatGPT web, create a GPT.
Add an Action and import
https://your-server.example/openapi.json.Select API key authentication.
Configure a custom header named
X-API-Key.Enter the value from
garmin-open-mcp show-api-key.Use
https://your-server.example/privacyas the privacy-policy URL.Keep the GPT private, save it, then open it from ChatGPT on iOS or Android.
Suggested GPT instructions are in GPT_INSTRUCTIONS.md.
REST API
Interactive docs are at /docs. Useful endpoints include:
GET /api/v1/status
POST /api/v1/sync
GET /api/v1/day/{day}
GET /api/v1/sleep/{day}
GET /api/v1/activities
GET /api/v1/activities/{activity_id}
GET /api/v1/training/{day}
GET /api/v1/body
GET /api/v1/trends
GET /api/v1/compare
GET /api/v1/recentAll /api/v1 endpoints require X-API-Key.
MCP tools
garmin_connection_statusgarmin_syncgarmin_get_daygarmin_get_sleepgarmin_list_activitiesgarmin_get_activitygarmin_get_training_statusgarmin_get_body_metricsgarmin_get_trendsgarmin_compare_periodsgarmin_recent_overview
The MVP is read-only with respect to Garmin. garmin_sync writes only to the local cache.
Configuration
Environment variable | Default | Purpose |
|
| Private data and token directory |
|
| Bind address |
|
| HTTP port |
| unset | Public HTTPS URL and MCP Host allowlist |
| generated file | Override the single-user API key |
|
| Maximum days per sync |
|
| Log level |
Set GARMIN_MCP_PUBLIC_URL when deploying remotely. MCP DNS-rebinding protection allows the hostname from this URL plus local development hosts.
Docker
Login once using a mounted data directory, then start the service:
docker compose run --rm garmin-open-mcp login
docker compose run --rm garmin-open-mcp sync --days 7
docker compose up -dDevelopment
uv sync --dev
uv run ruff check .
uv run ruff format --check .
uv run pytestTests use fake Garmin responses and never contact Garmin.
Troubleshooting
Login prints mobile+cffi returned 429
python-garminconnect tries several login strategies. Garmin may rate-limit one or more strategies by IP address while a later widget or portal strategy still succeeds. If the command ends with Connected: and garmin-open-mcp status --verify reports connected: true, the saved session is valid.
Do not repeatedly run login after success. Normal server requests load and refresh the saved token session instead of performing another password login. If every strategy is rate-limited and no token is saved, stop retrying and wait for Garmin's cooldown.
Security model
This is designed as a single-user service.
Do not publish your API key or commit the data directory.
Do not make a GPT containing your API key public.
Put the service behind HTTPS.
Back up the SQLite database only if you are comfortable storing a copy of health data.
Logout deletes Garmin session tokens but leaves cached health data. Delete the data directory to erase everything.
See SECURITY.md for reporting vulnerabilities.
License
MIT. See LICENSE.
Maintenance
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
- Alicense-qualityDmaintenanceThis Model Context Protocol (MCP) server connects to Garmin Connect and exposes your fitness and health data to Claude and other MCP-compatible clients.1MIT
- AlicenseAqualityAmaintenanceA Model Context Protocol (MCP) server for Garmin Connect integration. Access your activities, health data, training metrics, and more through Claude and other LLMs.2250MIT
- Alicense-qualityBmaintenanceMCP server to interact with Garmin Connect, enabling retrieval of health, activity, and device data through natural language.63MIT
- Flicense-qualityDmaintenanceMCP server that connects AI assistants to Garmin Connect health and fitness data, enabling natural language queries about workouts, sleep, heart rate, and more.
Related MCP Connectors
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/limited/garmin-connect-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server