Garmin Health MCP Server

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.

Category
访问服务器

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.json is absolute (starts with / or C:\)
  • Check that index.js exists at that path
  • Ensure you ran npm install in the repo directory

"Authentication failed"

  • Run npm run auth to refresh tokens
  • Check your credentials in the .env file 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_summary tool instead of calling multiple individual tools

Privacy & Security

  • ✅ Credentials stored locally in .env and claude_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

Development

# Run the server directly (for testing)
npm start

# Test authentication
npm run auth

# Run tests
npm test

License

MIT © EversonL

Credits

Built with:


💖 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!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选