Garmin Health MCP Server
Enables Claude Desktop to access and analyze Garmin wearable health data including sleep, HRV, Body Battery, and activity metrics. Users can query their health trends, track recovery, and generate interactive HTML dashboards using natural language.
README
Garmin Health MCP Server
Access your Garmin Connect health data directly in Claude Desktop
An MCP (Model Context Protocol) server that provides Claude Desktop 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
Quick Start
Prerequisites
- Claude Desktop 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 auth
Configure Claude Desktop
Edit your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.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.
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 |
|---|---|
get_sleep_data |
Sleep hours, stages, quality scores |
get_body_battery |
Recovery metric (0-100) |
get_hrv_data |
Heart rate variability trends |
get_heart_rate |
Resting, max, min heart rate |
get_activities |
Workout/exercise data |
get_stress_levels |
All-day stress tracking |
get_summary |
Combined health overview |
get_user_profile |
Account and device info |
generate_chart |
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 path - Ensure you ran
npm installin the repo directory
"Authentication failed"
- Run
npm run authto refresh tokens - Check your credentials in the
.envfile or environment variables - Try 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 --version - Check 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 test
License
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:
<a href="https://buymeacoffee.com/leeev" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
Questions or issues? Open an issue on GitHub!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.