garmin
Provides tools that read Garmin Connect data — daily summary, sleep, HRV, Body Battery, stress, activities, and per-lap activity detail for a date — so the assistant can answer health and training questions and generate charts.
Runs a Telegram bot that lets users chat with the coaching LLM via slash commands or free text and receive generated matplotlib charts as images.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Garmin Coach — Telegram + MCP
English summary. A personal running/health coach on top of your own Garmin Connect data. A Telegram bot lets you chat with an LLM (Gemini by default, any LiteLLM model works) that calls tools to read your sleep, HRV, Body Battery, stress, daily summary and activities — including per-lap detail for any date — and can reply with matplotlib charts (e.g. "compare the pace of my 4×1 km from Nov 18 and 25"). The same tools are exposed as an MCP server for Claude Desktop or any MCP client. Runs locally (Windows-friendly) or on Fly.io. Docs below are in Spanish; the code is small and commented.
Acceso a tus datos de Garmin Connect mientras tu PC está encendida:
bot.py— bot de Telegram. Le escribís y un LLM (Gemini por defecto) responde consultando tus datos reales de Garmin.mcp_server.py— servidor MCP: se conecta a Claude Desktop (por stdio, en la misma PC) o se expone por HTTP a otras máquinas/ChatGPT.garmin_core.py— núcleo: wrapper de Garmin + persistencia de token.charts.py— gráficos PNG (matplotlib) que el bot manda por Telegram.main.py— uso rápido por consola (resumen del día + consejo).start.bat— doble clic para arrancar el bot.run.py,Dockerfile,fly.toml— sólo si algún día lo querés en la nube (ver el final).
Tools disponibles
daily_summary · sleep · activities · activity_detail · body_battery ·
stress · hrv (day = today / yesterday / YYYY-MM-DD; activities
acepta limit; activity_detail trae las actividades de una fecha con todas
sus vueltas y acepta sport, p. ej. running).
El bot además tiene make_chart: le pedís un gráfico ("graficame el ritmo de
las 20 cuestas del 18/11 contra el 25/11") y te lo manda como imagen.
Related MCP server: Garmin MCP Worker
Puesta en marcha (una sola vez)
1. Dependencias
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt2. Configurar .env
copy .env.example .envEditá .env y completá: GARMIN_EMAIL, GARMIN_PASSWORD, GOOGLE_API_KEY,
TELEGRAM_BOT_TOKEN, TELEGRAM_ALLOWED_IDS.
Bot de Telegram: hablá con @BotFather →
/newbot→ copiá el token.Tu ID: hablá con @userinfobot → copiá el número.
3. Login de Garmin (resuelve MFA)
.venv\Scripts\python -m garmin_core --loginCrea garmin_tokens/. Verificá que baja datos (que sleep_score no sea null):
.venv\Scripts\python -m garmin_core --selftestUso diario
Bot de Telegram
Doble clic en start.bat (o .venv\Scripts\python bot.py). Mientras esa
ventana esté abierta, escribile al bot desde el celular: /hoy, /sueno, o
texto libre ("¿entreno hoy?"). Cerrá la ventana para apagarlo.
Para que arranque solo al prender la PC: Win+R → shell:startup → pegá un
acceso directo a start.bat.
Claude Desktop (MCP por stdio — no necesita token ni servidor)
Editá %APPDATA%\Claude\claude_desktop_config.json (reemplazá
C:\\ruta\\a\\garmin por la carpeta donde clonaste el repo):
{
"mcpServers": {
"garmin": {
"command": "C:\\ruta\\a\\garmin\\.venv\\Scripts\\python.exe",
"args": ["C:\\ruta\\a\\garmin\\mcp_server.py", "--stdio"]
}
}
}Reiniciá Claude Desktop. Preguntale "¿cuántos pasos di hoy?" y usa la tool.
(Claude arranca y para el proceso solo; no hace falta start.bat para esto.)
Consola
.venv\Scripts\python main.py
.venv\Scripts\python main.py --day yesterday --no-aiMantenimiento
El token de Garmin se refresca solo (~1 año). Si el bot empieza a devolver errores de auth, repetí el paso 3.
Cambiar de modelo:
MODEL_NAMEen.env(formato LiteLLMproveedor/modelo)la API key correspondiente.
Opcional: correrlo en la nube (PC apagada)
Si más adelante querés que ande sin la PC, están run.py (bot + MCP juntos),
Dockerfile y fly.toml para deploy en Fly.io con volumen persistente para el
token. Resumen: fly launch --no-deploy → fly volumes create garmin_data --size 1 → fly secrets set ... (incluí MCP_AUTH_TOKEN) → fly deploy →
sembrar garmin_tokens/garmin_tokens.json en /data/garmin_tokens/ con
fly ssh sftp. El login con MFA se hace local; en la nube
sólo se refresca el token.
Créditos y aviso
El acceso a Garmin Connect usa python-garminconnect (MIT), de Ron Klinkien.
No es un proyecto oficial de Garmin ni está afiliado a Garmin. Usa la API no oficial de Garmin Connect, que puede cambiar o limitar el acceso sin aviso. Usalo sólo con tu propia cuenta.
Licencia
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes Garmin Connect health data (steps, sleep, HR, HRV, stress, activities, etc.) as tools for MCP-compatible clients like Claude.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other MCP clients to read a user's Garmin Connect data through Garmin's official Personal API, supporting queries about recovery, sleep, HRV, activities, heart rate, stress, and related wellness metrics.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other remote MCP clients to query a user's Garmin Connect data—including sleep, HRV, Body Battery, stress, heart rate, and activities—through Garmin's official read-only Personal API with OAuth sign-in.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude and other remote OAuth-capable MCP clients to query a user's Garmin Connect health, sleep, HRV, Body Battery, stress, heart-rate, and activity data read-only through Garmin's official Personal API, including from mobile apps.MIT