Garmin Health MCP Server
The Garmin Health MCP Server enables Claude to securely access, analyze, and visualize your Garmin Connect health and fitness data through natural language queries.
Health Metrics: Retrieve detailed sleep data (duration, stages, quality scores), Body Battery recovery levels (0-100), Heart Rate Variability (HRV) trends, resting/max/min heart rates, stress levels, and comprehensive workout data (type, duration, calories, distance, pace).
Data Analysis: Generate combined health summaries with averages across all metrics, query historical data with customizable date ranges (typically 7-30 days), and ask questions about your health patterns and trends.
Visualizations: Create interactive HTML charts and dashboards for sleep, Body Battery, HRV, activities, or comprehensive multi-metric overviews.
Account Access: View user profile information and connected Garmin device details.
Security: Uses local credential storage with direct connection to Garmin's official API, ensuring no third-party data sharing. Integrates seamlessly with Claude Desktop and Claude Code CLI.
Provides access to Garmin Connect health data including sleep analysis, Body Battery recovery metrics, HRV tracking, and activity summaries.
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 Health MCP Server Summarize my sleep and recovery trends from this past week"
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 Health MCP Server
Access your Garmin Connect health data directly in Claude Desktop and Claude Code CLI
An MCP (Model Context Protocol) server that provides Claude with access to your Garmin wearable health data including sleep, recovery, HRV, workouts, and more.
Features
🛌 Sleep Analysis: Hours, stages (light/deep/REM), quality scores
🔋 Body Battery: Garmin's proprietary recovery metric (0-100)
❤️ HRV Tracking: Heart rate variability trends for recovery monitoring
🏃 Activity Data: Workouts by type, calories, duration, pace
📊 Health Metrics: Resting heart rate, stress levels, VO2 max
📈 Interactive Charts: Generate beautiful HTML dashboards
🔐 Secure: Credentials stored locally, connects only to Garmin's API
Related MCP server: garmin-mcp
Quick Start
Prerequisites
Claude Desktop or Claude Code CLI installed
Node.js 18+ and npm
Python 3.8+
Active Garmin Connect account with a connected device
Installation
# 1. Clone this repository
git clone https://github.com/eversonl/garmin-health-mcp-server.git
cd garmin-health-mcp-server
# 2. Install Node.js dependencies
npm install
# 3. Install Python dependencies
pip3 install garminconnect fitparse gpxpy
# Or on managed systems:
pip3 install --user garminconnect fitparse gpxpy
# 4. Create .env file with your Garmin credentials
cp .env.example .env
# Edit .env and add your GARMIN_EMAIL and GARMIN_PASSWORD
# 5. Authenticate with Garmin Connect
npm run authConfigure Claude Desktop
Edit your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this MCP server configuration:
{
"mcpServers": {
"garmin-health": {
"command": "node",
"args": ["/absolute/path/to/garmin-health-mcp-server/index.js"],
"env": {
"GARMIN_EMAIL": "your-email@example.com",
"GARMIN_PASSWORD": "your-password"
}
}
}
}Important: Replace /absolute/path/to/garmin-health-mcp-server/ with the actual full path where you cloned this repo.
Restart Claude Desktop
Completely quit and restart Claude Desktop for the MCP server to load.
Using with Claude Code CLI
For Claude Code CLI users, this repository includes a .mcp.json configuration file that enables automatic MCP server loading.
Quick Setup for Claude Code
Set environment variables with your Garmin credentials:
# Windows PowerShell setx GARMIN_EMAIL "your-email@example.com" setx GARMIN_PASSWORD "your-password"# Linux/macOS export GARMIN_EMAIL="your-email@example.com" export GARMIN_PASSWORD="your-password"Authenticate with Garmin:
npm run authStart Claude Code from any directory:
claudeVerify the MCP server is loaded:
/mcpYou should see
garmin-healthlisted as connected.Start querying your health data:
"How did I sleep last night?"
"What's my body battery level today?"
📘 For detailed Claude Code setup instructions, see CLAUDE_CODE_SETUP.md.
Note: The .mcp.json file uses environment variable expansion for security. Update the args path if you installed the server in a different location.
Usage
Once configured, ask Claude questions like:
"How did I sleep last night?"
"What's my Body Battery looking like this week?"
"Show me my activities from the past month"
"Is my HRV improving?"
"Generate a health dashboard for the last 30 days"
Claude will use the MCP tools to fetch your Garmin data and provide insights.
Available Tools
The server exposes these tools to Claude:
Tool | Description |
| Sleep hours, stages, quality scores |
| Recovery metric (0-100) |
| Heart rate variability trends |
| Resting, max, min heart rate |
| Workout/exercise data |
| All-day stress tracking |
| Combined health overview |
| Account and device info |
| Create interactive HTML visualizations |
Troubleshooting
"MCP server not found"
Verify the path in
claude_desktop_config.jsonis absolute (starts with/orC:\)Check that
index.jsexists at that pathEnsure you ran
npm installin the repo directory
"Authentication failed"
Run
npm run authto refresh tokensCheck your credentials in the
.envfile or environment variablesTry logging into Garmin Connect website to verify your account
"Tools not appearing in Claude"
Completely quit Claude Desktop (don't just close the window)
Check Console.app (macOS) or Event Viewer (Windows) for MCP errors
Verify Node.js is accessible:
node --versionCheck Python dependencies are installed:
python3 -c "import garminconnect"
"Missing data"
Some metrics require specific Garmin devices (e.g., Body Battery needs HRV-capable watches)
Historical data may have gaps if the device wasn't worn
New accounts may have limited history
"Too many requests" / Rate limiting
Garmin limits API requests - wait a few minutes before retrying
Use the
get_summarytool instead of calling multiple individual tools
Privacy & Security
✅ Credentials stored locally in
.envandclaude_desktop_config.json✅ Session tokens cached locally and auto-refresh
✅ Connects only to Garmin's official API servers
✅ No cloud storage or third-party data sharing
✅ Open source - audit the code yourself
Related Projects
Clawdbot Skill - Automated health monitoring and proactive check-ins for Clawdbot
python-garminconnect - The Python library we use to access Garmin's API
Development
# Run the server directly (for testing)
npm start
# Test authentication
npm run auth
# Run tests
npm testLicense
MIT © EversonL
Credits
Built with:
@modelcontextprotocol/sdk - MCP SDK
python-garminconnect - Garmin API wrapper
fitparse - FIT file parsing
gpxpy - GPX file handling
💖 Support This Project
If you find this MCP server useful, consider supporting its development:
Questions or issues? Open an issue on GitHub!
Available Tools
9 toolsgenerate_chartC
Generate an interactive HTML chart (sleep, body_battery, hrv, activities, or dashboard)
Inputs: chart_type (required), days, output_path.
get_activitiesC
Get workout/activity data including type, duration, calories, and distance
Inputs: days.
get_body_batteryB
Get Body Battery data (Garmin's recovery metric, 0-100)
Inputs: days.
get_heart_rateC
Get resting, max, and min heart rate data
Inputs: days.
get_hrv_dataC
Get Heart Rate Variability (HRV) data in milliseconds
Inputs: days.
get_sleep_dataC
Get sleep data including hours, stages (light/deep/REM), and quality scores
Inputs: days, start_date, end_date.
get_stress_levelsB
Get all-day stress level data
Inputs: days.
get_summaryC
Get combined health summary with averages across all metrics
Inputs: days.
get_user_profileB
Get user profile information and connected devices
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose targeting specific health metrics or functions, with no overlap in scope. The tools cover different data types like activities, body battery, heart rate, HRV, sleep, stress, summaries, and profiles, making them easily distinguishable.
All tools follow a consistent verb_noun pattern with 'get_' or 'generate_' prefixes, using snake_case uniformly. This predictable naming scheme enhances readability and reduces confusion for agents.
With 9 tools, the server is well-scoped for a health data domain, covering key metrics without being overwhelming. Each tool serves a specific, necessary function, making the count appropriate for comprehensive health monitoring.
The toolset provides broad coverage for retrieving health metrics, including core data like activities, sleep, and stress, with a summary tool for aggregation. A minor gap exists in update or management tools for user data, but retrieval operations are largely complete for the domain.
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.
Explore Garmin activity and health data with your AI assistant.
Garmin watch data for AI assistants: activities, sleep, HRV, recovery. Never writes to Garmin.
Related MCP Servers
- AlicenseBqualityBmaintenanceConnects Claude Desktop to Garmin Connect, enabling natural language queries of fitness activity data, health metrics, sleep analysis, workout management, and device information with 94 available tools.1101MIT
- FlicenseNot gradedqualityDmaintenanceConnects Garmin watch data to Claude Desktop, allowing users to ask natural language questions about their health and activity data from Garmin Connect.-
- AlicenseBqualityBmaintenanceEnables users to analyze their own Garmin Connect data—activities, sleep, HRV, Body Battery, training readiness—directly inside Claude Desktop.13864 npm2MIT
- AlicenseBqualityBmaintenanceEnables Claude to access and query your Garmin Connect data—sleep, training, heart rate, and more—through a suite of read-only tools, with an optional write path for creating strength workouts.63MIT