MCP server for Garmin Connect health and fitness data
Project description
mcp-garmin
MCP server for Garmin Connect health and fitness data. Read-only access to daily health metrics, activities, workouts, and body composition via the python-garminconnect library.
Prerequisites
- Python 3.14+
- uv
- A Garmin Connect account
Authentication
Garmin Connect uses email/password authentication with optional MFA. The library persists session tokens to ~/.garminconnect/garmin_tokens.json after initial login.
First-time setup
Run the interactive login command to establish tokens. This handles MFA prompts:
# Set credentials (or the CLI will prompt you)
export GARMIN_EMAIL="you@example.com"
export GARMIN_PASSWORD="your-password"
# Interactive login -- prompts for MFA if enabled
uvx mcp-garmin-login
Running the server
The MCP server requires GARMIN_EMAIL and GARMIN_PASSWORD environment variables. It reuses tokens saved by the login step and refreshes them automatically.
export GARMIN_EMAIL="you@example.com"
export GARMIN_PASSWORD="your-password"
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"garmin": {
"command": "uvx",
"args": ["mcp-garmin"],
"env": {
"GARMIN_EMAIL": "you@example.com",
"GARMIN_PASSWORD": "your-password"
}
}
}
}
Claude Code
claude mcp add garmin -- uvx mcp-garmin
Set GARMIN_EMAIL and GARMIN_PASSWORD in your shell environment.
Tools
All date parameters use ISO format (YYYY-MM-DD).
Daily Health
| Tool | Description |
|---|---|
get_daily_summary |
Steps, calories, distance, active minutes |
get_heart_rates |
Heart rate data |
get_sleep_data |
Sleep stages and metrics |
get_stress_data |
Detailed stress levels |
get_all_day_stress |
All-day stress summary |
get_body_battery |
Body Battery (energy) levels |
get_steps_data |
Detailed step data |
get_hrv_data |
Heart Rate Variability |
get_spo2_data |
Blood oxygen saturation |
get_respiration_data |
Respiratory rate |
get_training_readiness |
Training readiness score |
get_intensity_minutes |
Intensity minutes |
get_resting_heart_rate |
Resting heart rate |
Activities
| Tool | Description |
|---|---|
get_activities |
List recent activities (paginated) |
get_activities_by_date |
Activities within a date range |
get_activities_for_date |
All activities for a specific date |
get_last_activity |
Most recent activity |
get_activity |
Single activity by ID |
get_activity_details |
Detailed metrics (laps, charts) |
get_activity_splits |
Split/lap data |
get_activity_weather |
Weather during activity |
get_activity_hr_zones |
Heart rate zone distribution |
get_activity_gear |
Equipment used |
get_activity_exercise_sets |
Strength training sets |
Workouts
| Tool | Description |
|---|---|
get_workouts |
List saved workout templates |
get_workout |
Single workout by ID |
Body Composition
| Tool | Description |
|---|---|
get_body_composition |
Body composition over a date range |
get_weigh_ins |
Weight measurements over a date range |
Profile & Fitness
| Tool | Description |
|---|---|
get_user_profile |
Profile information |
get_max_metrics |
VO2 max and fitness metrics |
get_fitness_age |
Calculated fitness age |
get_training_status |
Training status |
get_personal_records |
Personal bests |
Development
uv sync
uv run pytest tests/ -x -q
uv run ruff check src/ tests/
uv run pyright src/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_garmin-0.3.0.tar.gz.
File metadata
- Download URL: mcp_garmin-0.3.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2c2380a1f43e8faff7318808d639a5be33261324448b69c2c4d4deb86e689a
|
|
| MD5 |
99947faa66e12fdcd3d1ee48fb333924
|
|
| BLAKE2b-256 |
1a4b4e3c1e693dc0748451af709c1df7beb6c6809a97547875d42251a038cc95
|
Provenance
The following attestation bundles were made for mcp_garmin-0.3.0.tar.gz:
Publisher:
release.yml on obrien-matthew/mcp-garmin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_garmin-0.3.0.tar.gz -
Subject digest:
bd2c2380a1f43e8faff7318808d639a5be33261324448b69c2c4d4deb86e689a - Sigstore transparency entry: 1456874631
- Sigstore integration time:
-
Permalink:
obrien-matthew/mcp-garmin@b5e6099437ee3266845ac6a37ef4e3ef711d00f6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obrien-matthew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5e6099437ee3266845ac6a37ef4e3ef711d00f6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_garmin-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mcp_garmin-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
434ecf968ddff9b6886ab381e6ddd4b8ad3350641b9095353b5c244d31b68072
|
|
| MD5 |
be9a34e1493c041f209a632e85381c7e
|
|
| BLAKE2b-256 |
1e0643af7efc01f86359e4092a2e36500b014898f06138f4bca25c9a8c16dc78
|
Provenance
The following attestation bundles were made for mcp_garmin-0.3.0-py3-none-any.whl:
Publisher:
release.yml on obrien-matthew/mcp-garmin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_garmin-0.3.0-py3-none-any.whl -
Subject digest:
434ecf968ddff9b6886ab381e6ddd4b8ad3350641b9095353b5c244d31b68072 - Sigstore transparency entry: 1456874792
- Sigstore integration time:
-
Permalink:
obrien-matthew/mcp-garmin@b5e6099437ee3266845ac6a37ef4e3ef711d00f6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obrien-matthew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b5e6099437ee3266845ac6a37ef4e3ef711d00f6 -
Trigger Event:
push
-
Statement type: