Garmin Connect MCP Server
Provides tools to retrieve daily health, fitness, and activity statistics from Garmin Connect, including steps, heart rate, sleep, stress, hydration, respiration, SpO2, body composition, activity history, and device information.
Click on "Deploy 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 Connect MCP Server what were my steps yesterday?"
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 Connect MCP Server
Languages: English | 日本語 (Japanese) | 简体中文 (Simplified Chinese)
A Model Context Protocol (MCP) server designed to retrieve daily health, fitness, and activity statistics from Garmin Connect and expose them to Large Language Models (LLMs).
Built on Python's FastMCP, this server features robust authentication token persistence to protect your Garmin Connect account from being locked due to repeated login requests.
Features
Token Session Persistence Cache: The Garmin Connect API frequently locks accounts if too many login requests are made in a short time. This server automatically caches your session tokens locally (defaults to
~/.garminconnector configured path) upon the first successful login, reusing them for subsequent requests.15 Rich Data Tools: Access steps, heart rate, sleep scores, stress, hydration, respiration, SpO2, body composition (weight/body fat), activity history, connected devices, and more.
Strict Type Safety & Testing: Fully compliant with
mypy --strictandruff, with a comprehensive mock-based test suite.
Related MCP server: Garmin Connect MCP
Setup Instructions
Prerequisites
Python 3.12 or higher
uv (fast Python package and project manager)
1. Installation
Clone this repository and install it in editable mode:
git clone https://github.com/rmc8/rmc_garmin_mcp.git
cd rmc_garmin_mcp
uv pip install -e .2. Environment Configuration
Copy .env.example to create a .env file and configure your Garmin credentials:
cp .env.example .envEdit the .env file:
# Garmin Connect Login Email
GARMIN_EMAIL=your_email@example.com
# Garmin Connect Login Password
GARMIN_PASSWORD=your_password
# (Optional) Change the token directory path
# GARMINTOKENS=/path/to/tokens3. Multi-Factor Authentication (MFA) Setup (Optional)
If your Garmin Connect account has MFA (Multi-Factor Authentication) enabled, you cannot log in directly from the MCP server as it runs in the background and cannot prompt for inputs.
Instead, run the interactive login helper command once in your terminal before launching the server:
uvx --with rmc-garmin-mcp rmc-garmin-login(Or uv run rmc-garmin-login if you have cloned the source locally).
Enter your credentials and the MFA verification code. Once authentication is successful, the session tokens will be cached locally, and the MCP server will start up seamlessly in the background without prompting you again.
Running the Server
Via uvx (Recommended)
You can run the server directly without manual cloning or installation using uvx:
uvx rmc-garmin-mcpStdio Mode (From Local Source)
If you have cloned the repository locally, you can run the server using uv:
uv run rmc-garmin-mcpTesting with MCP Inspector
You can test the exposed tools using the interactive MCP Inspector GUI:
npx @modelcontextprotocol/inspector uv run rmc-garmin-mcpAfter executing, open the URL provided in your browser to run test executions of the tools.
MCP Client Configuration
To configure the server for MCP clients (such as Claude Desktop), add the following to your configuration file (e.g. claude_desktop_config.json):
Using uvx (Recommended)
This method executes the server directly from PyPI without requiring a local clone.
{
"mcpServers": {
"rmc-garmin-mcp": {
"command": "uvx",
"args": ["rmc-garmin-mcp"],
"env": {
"GARMIN_EMAIL": "your_email@example.com",
"GARMIN_PASSWORD": "your_password"
}
}
}
}Using Local Source (via uv)
If you prefer to run the server from a cloned local repository, configure it like this:
{
"mcpServers": {
"rmc-garmin-mcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/rmc_garmin_mcp",
"run",
"rmc-garmin-mcp"
],
"env": {
"GARMIN_EMAIL": "your_email@example.com",
"GARMIN_PASSWORD": "your_password"
}
}
}
}Replace
/absolute/path/to/rmc_garmin_mcpwith the actual absolute path to the directory where you cloned the repository.If you have MFA enabled, ensure you run the interactive login helper (
uvx --with rmc-garmin-mcp rmc-garmin-login) once in your terminal to cache the tokens before launching Claude Desktop.
Exposed MCP Tools
Tool Name | Description | Key Arguments |
| Fetch detailed step readings for a date. |
|
| Fetch heart rate data for a date. |
|
| Fetch summarized daily steps for a date range. |
|
| Fetch Body Battery data for a date range. |
|
| Fetch hydration logs for a date. |
|
| Fetch details of the most recent logged activity. | None |
| Fetch sleep scores and stages analysis for a date. |
|
| Fetch detailed stress readings for a date. |
|
| Fetch all-day stress records for a date. |
|
| Fetch daily summary (steps, calories, resting HR). |
|
| Fetch respiration rates (breaths per minute) for a date. |
|
| Fetch SpO2 (blood oxygen) logs for a date. |
|
| Fetch body composition (weight, body fat, muscle). |
|
| List logged fitness activities with pagination. |
|
| List registered Garmin devices on the account. | None |
All date parameters must be strings inYYYY-MM-DD format.
Development and Verification
Code Formatting and Linting
uv run ruff format .
uv run ruff check . --fixType Checking (Mypy Strict)
uv run mypy src testsRunning Unit Tests (Pytest)
uv run pytestTests mock the Garmin Connect API to verify validator logic and tool execution behavior without hitting real endpoints.
Available Tools
15 toolsget_activitiesB
Get a list of logged fitness activities with pagination.
Args:
start: Offset index to start retrieving activities. Defaults to 0.
limit: Maximum number of activities to return. Defaults to 20.
Inputs: limit, start.
get_all_day_stressB
Get comprehensive all-day stress readings for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_body_batteryB
Get Body Battery data for a specified period.
Args:
start: Start date in YYYY-MM-DD format.
end: Optional end date in YYYY-MM-DD format.
Inputs: start (required), end.
get_body_compositionB
Get body composition data for a date range.
Includes weight, body fat, muscle mass, and hydration.
Args:
startdate: Start date in YYYY-MM-DD format.
enddate: Optional end date in YYYY-MM-DD format.
Defaults to startdate if not provided.
Inputs: startdate (required), enddate.
get_daily_stepsC
Get summarized daily steps over a specified period.
Args:
start: Start date in YYYY-MM-DD format.
end: End date in YYYY-MM-DD format.
Inputs: end (required), start (required).
get_devicesA
Get a list of all registered Garmin devices connected to the account.
Inputs: no named parameters.
get_heart_ratesB
Get heart rate readings for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_hydration_dataA
Get hydration intake data for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_last_activityB
Get information about the most recent logged activity.
Inputs: no named parameters.
get_respiration_dataA
Get daily respiration rate readings (breaths per minute).
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_sleep_dataB
Get detailed sleep analysis and scoring for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_spo2_dataC
Get daily SpO2 (blood oxygen saturation) measurements.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_steps_dataC
Get detailed steps data for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_stress_dataC
Get stress level details for a specific date.
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
get_user_summaryB
Get the user's daily activity summary (steps, calories, heart rate ranges, etc.).
Args:
cdate: Target date in YYYY-MM-DD format.
Inputs: cdate (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools target distinct health metrics, but get_daily_steps vs get_steps_data and get_stress_data vs get_all_day_stress could confuse an agent due to overlapping purposes.
All tools use snake_case with a consistent 'get_<resource>' pattern. Minor deviations like 'get_all_day_stress' vs 'get_stress_data' are inconsequential.
15 tools is slightly above the typical sweet spot but still reasonable for covering diverse health metrics without feeling overly burdensome.
The tool set covers many health metrics but lacks write operations (e.g., logging activities) and misses common Garmin data like workouts or courses, leaving notable gaps.
Related MCP Connectors
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Explore Garmin activity and health data with your AI assistant.
Unofficial Garmin Connect access: sleep, HRV, training, activities, workouts and weight.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes Garmin Connect data and workout management to AI agents, supporting tools, resources, and prompts for health data, workout creation, and coaching workflows.1-
- AlicenseBqualityNot gradedmaintenanceExposes personal Garmin Connect data to MCP-capable clients like Claude and Gemini. Enables querying daily stats, heart rate, sleep, activities, and managing workouts.16MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying your Garmin Connect data including recent activities, detailed metrics, and daily stats through natural language.-
- FlicenseNot gradedqualityDmaintenanceExposes Garmin Connect health data (steps, sleep, HR, HRV, stress, activities, etc.) as tools for MCP-compatible clients like Claude.-