garmin-mcp
개인 Garmin MCP
Garmin Connect에서 구조화된 운동을 생성하고 일정을 예약하기 위한 로컬 MCP 서버로, 비공식 Garmin 엔드포인트를 사용합니다.
이는 실험적인 개인 프로젝트입니다. Garmin은 엔드포인트를 변경하거나 요청을 속도 제한하거나 세션을 사전 통지 없이 해지할 수 있습니다. 별도의 인증을 추가하지 않고 서버를 인터넷에 노출하지 마십시오.
기능
저장된 Garmin 세션을 검증합니다;
변경 없이 Garmin JSON을 미리 봅니다;
운동을 생성하고 선택적으로 캘린더에 추가합니다;
운동 라이브러리와 캘린더를 나열합니다;
완료된 활동, 간결한 요약, 랩/구간 지표를 읽습니다;
사용 가능한 수면, HRV, Body Battery, Training Readiness, Training Status를 읽습니다;
운동을 삭제하고 캘린더에서 운동을 제거합니다;
달리기, 사이클링, 걷기, 하이킹을 지원합니다;
시간, 거리,
lap button단계를 지원합니다;인터벌 반복을 지원합니다;
페이스, 심박수, 파워, 케이던스 목표를 지원합니다;
모든 변경에는
confirm=true가 필요합니다.
Related MCP server: Garmin Connect MCP
설치
Docker Compose — 권장
로컬 사용에는 Compose 지원이 포함된 Docker가 필요합니다. 저장소 루트에서 이미지를 빌드하세요:
docker compose build빌드는 uv.lock에서 uv로 Python 의존성을 엄격하게 설치합니다.
대화형 로그인을 한 번 실행하세요. 비밀번호와 MFA 코드는 컨테이너에 직접 입력되며
저장되지 않습니다. OAuth 토큰은 개인 garmin-mcp_garmin_tokens 명명된 볼륨에 저장됩니다:
docker compose --profile login run --rm garmin-loginMCP 서버를 시작하세요:
docker compose up -d garmin-mcp
docker compose ps엔드포인트는 http://127.0.0.1:8000/mcp에서 사용할 수 있습니다. 다른 로컬 포트를 사용하려면:
GARMIN_MCP_PORT=8765 docker compose up -d garmin-mcp로그를 보거나 서버를 중지하세요:
docker compose logs -f garmin-mcp
docker compose downdocker compose down은 Garmin 토큰을 보존합니다. docker compose down -v를 실행하면
볼륨과 토큰이 삭제됩니다.
Docker 없이 로컬 설치
Python 3.12+ 및 uv가 필요합니다.
cd /path/to/garmin-mcp
uv sync --extra dev일회성 로그인
uv run garmin-mcp-login스크립트는 필요할 때 이메일 주소, 비밀번호, MFA 코드를 대화형으로 요청합니다.
비밀번호는 저장되지 않습니다. OAuth 토큰은 제한된 권한으로
.garmin-tokens/garmin_tokens.json에 저장됩니다. 해당 디렉터리는 이미
.gitignore에 포함되어 있습니다.
토큰을 다른 위치에 저장하려면:
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcp-loginstdio를 통한 로컬 MCP
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcpMCP 클라이언트 구성 예시:
{
"mcpServers": {
"garmin": {
"command": "/absolute/path/to/garmin-mcp/.venv/bin/garmin-mcp",
"env": {
"GARMIN_TOKEN_DIR": "/safe/private/path/garmin-tokens"
}
}
}
}ChatGPT용 Streamable HTTP
export GARMIN_MCP_TRANSPORT=streamable-http
export GARMIN_MCP_HOST=127.0.0.1
export GARMIN_MCP_PORT=8000
export GARMIN_TOKEN_DIR=/safe/private/path/garmin-tokens
uv run garmin-mcp엔드포인트: http://127.0.0.1:8000/mcp.
ChatGPT는 HTTPS를 통해 엔드포인트에 도달할 수 있어야 합니다. 개인 테스트를 위해 보호된 터널을 사용할 수 있습니다. 이 MVP를 인터넷에 직접 노출하지 마십시오: 의도적으로 MCP 서버 자체에 대한 액세스를 위한 별도의 OAuth 리소스 서버를 포함하지 않습니다.
preview_workout 인자 예시
{
"workout": {
"name": "6 x 800",
"sport": "running",
"description": "Controlled intervals",
"blocks": [
{
"steps": [
{
"step_type": "warmup",
"duration_type": "time",
"duration_value": 900
}
]
},
{
"repeat": 6,
"steps": [
{
"step_type": "interval",
"duration_type": "distance",
"duration_value": 800,
"target_type": "pace_seconds_per_km",
"target_low": 250,
"target_high": 260
},
{
"step_type": "recovery",
"duration_type": "time",
"duration_value": 120
}
]
},
{
"steps": [
{
"step_type": "cooldown",
"duration_type": "time",
"duration_value": 600
}
]
}
]
}
}페이스 값은 킬로미터당 초 단위로 지정됩니다: 250 = 4:10/km, 260 =
4:20/km. 서버는 이를 Garmin Connect에서 사용하는 m/s 값으로 변환합니다.
미리 본 후, 동일한 객체, YYYY-MM-DD 형식의 날짜, confirm=true를 사용하여
create_workout을 호출하세요.
읽기 전용 훈련 컨텍스트
서버는 완료된 작업에 맞춰 향후 계획을 조정하기 위한 간결한 읽기 전용 도구를 제공합니다:
list_activities는 포함된 날짜 범위의 활동을 나열하며, 선택적 Garmin 활동 유형 필터가 있습니다;get_activity_summary는 하나의 활동에 대한 계획 지표를 반환합니다;get_activity_splits는 간결한 랩 및 인터벌 지표를 반환합니다;get_recovery_status는 한 날짜에 대한 사용 가능한 수면, HRV, Body Battery, Training Readiness, Training Status를 집계합니다.
활동 응답은 의도적으로 GPS 좌표와 소유자 세부 정보를 생략합니다. 회복 지표는 Garmin 기기, 계정, 날짜에 따라 다릅니다. 누락된 소스는 사용 불가로 반환되며 전체 회복 요청이 실패하지 않습니다.
검사
uv run --extra dev pytest
uv run --extra dev ruff check .단위 테스트는 Garmin에 연결하지 않으며 자격 증명이 필요하지 않습니다.
중요한 제한 사항
이는 공식 Garmin Training API가 아닙니다.
빈번한 로그인은 HTTP 429 응답을 받을 수 있습니다; 저장된 토큰을 재사용하세요.
토큰은 Garmin Connect에 대한 액세스를 제공하며 비밀번호처럼 보호해야 합니다.
생성은 성공했지만 일정 예약이 실패하면 도구는
created_not_scheduled및workout_id를 반환합니다; 생성된 운동은 라이브러리에 남아 있습니다.정기적으로 사용하기 전에 Garmin Connect와 특정 시계 모델에서 간단한 운동 하나를 테스트하세요.
Available Tools
11 toolsconnection_statusARead-onlyIdempotent
Verify that saved Garmin tokens can authenticate.
Inputs: no named parameters. Returns: object
create_workoutA
Create a Garmin workout and optionally schedule it on YYYY-MM-DD.
Call with confirm=false for a non-mutating confirmation response. Set confirm=true only after the user explicitly approves the preview and date.
Inputs: workout (required), confirm, schedule_date. Returns: object
delete_workoutADestructiveIdempotent
Permanently delete a workout template after explicit confirmation.
Inputs: workout_id (required), confirm. Returns: object
get_activity_splitsARead-onlyIdempotent
Get compact lap and interval metrics for one completed Garmin activity.
Inputs: activity_id (required). Returns: object
get_activity_summaryARead-onlyIdempotent
Get compact summary metrics for one completed Garmin activity.
Inputs: activity_id (required). Returns: object
get_recovery_statusARead-onlyIdempotent
Get available sleep, HRV, Body Battery, readiness, and training status for a date.
Inputs: date (required). Returns: object
list_activitiesARead-onlyIdempotent
List completed Garmin activities in an inclusive YYYY-MM-DD date range.
Returns compact planning metrics and omits GPS coordinates and owner details.
activity_type is an optional Garmin type key such as running or cycling.
Inputs: start_date (required), limit, end_date, activity_type. Returns: object
list_scheduled_workoutsBRead-onlyIdempotent
List Garmin calendar entries for a year and month.
Inputs: year (required), month (required). Returns: object
list_workoutsARead-onlyIdempotent
List workout templates from the user's Garmin Connect library.
Inputs: limit. Returns: result
preview_workoutARead-onlyIdempotent
Validate and preview Garmin JSON without changing Garmin Connect.
Inputs: workout (required). Returns: object
unschedule_workoutADestructiveIdempotent
Remove a scheduled workout from the calendar without deleting its template.
Inputs: scheduled_workout_id (required), confirm. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The tools are generally distinct: connection_status, preview_workout, list/workout types, get_activity_summary vs splits, recovery, and create/delete/unschedule. There is slight overlap between list_workouts and list_scheduled_workouts, but descriptions clarify that one is templates and the other is calendar entries. The naming also helps distinguish them.
All tools follow a consistent verb_noun pattern: connection_status, preview_workout, list_workouts, list_scheduled_workouts, list_activities, get_activity_summary, get_activity_splits, get_recovery_status, create_workout, delete_workout, unschedule_workout. The pattern is uniform and predictable.
With 11 tools, the server covers a reasonable scope for a Garmin integration: connection check, workout preview/CRUD, activity listing/retrieval, and recovery status. Each tool serves a distinct function, and the count is within the typical range for a domain-specific server.
The surface appears complete for common Garmin workflows: managing workouts (create, delete, unschedule), viewing activities (list, summary, splits), checking recovery, and verifying connection. It includes both list and get operations, plus scheduling. There is a minor gap for updating workouts, but that may be acceptable given the preview/confirm workflow. Overall, it covers the primary user needs.
Maintenance
Related MCP Connectors
Garmin Connect MCP server for ChatGPT, Claude and any AI agent: list activities, download FIT file, read sleep and HRV, get training status, create workout and schedule workout in your own Garmin Connect account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Garmin Connect yourself; Cotlet does not store your password and you need no Garmin Connect API key. About the official Garmin Connect API: Yes, in part (checked 27 Oct 2026). Garmin reopened its Connect Developer Program on 21 Oct 2026. Setup and FAQ: https://cotlet.dev/integrations/garmin-api-mcp-server
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenancePersonal MCP server for interacting with your Garmin Connect data. Exposes 62 tools across 11 domains including activities, health, training, and workouts.1MIT
- AlicenseBqualityCmaintenanceExposes personal Garmin Connect data to MCP-capable clients like Claude and Gemini. Enables querying daily stats, heart rate, sleep, activities, and managing workouts.16MIT
- AlicenseAqualityDmaintenanceMCP server for reading and querying Garmin Connect data, including activities, strength history, recovery, trends, and optionally creating workouts.12MIT
- FlicenseAqualityDmaintenanceProvides read-only access to your Garmin Connect health data, including sleep, HRV, body battery, stress, training readiness, and activities, through an MCP server.14-