Garth (Garmin Connect) MCP server

Integrates with Garmin Connect to provide access to fitness and health data including sleep statistics, daily stress, and intensity minutes with customizable date ranges.
Back to servers
Setup instructions
Provider
Matin Tamizi
Release date
May 18, 2025
Stats
20 stars

The garth-mcp-server is a Model Context Protocol server that provides access to Garmin Connect data. Based on the garth library, it allows you to retrieve various health metrics, activity data, and device information directly from your Garmin account through an MCP interface.

Installation

To install the garth-mcp-server, use pip:

pip install garth-mcp-server

After installation, you'll need to authenticate with your Garmin account:

uvx garth login

This command will provide you with a token that you'll need for the next step.

Configuration

Add the garth-mcp-server to your MCP configuration:

{
  "mcpServers": {
    "Garth - Garmin Connect": {
      "command": "uvx",
      "args": [
        "garth-mcp-server"
      ],
      "env": {
        "GARTH_TOKEN": "<output of `uvx garth login`>"
      }
    }
  }
}

Important: Make sure to use the full path for the uvx command as MCP doesn't use the same PATH as your shell. On macOS, the typical path is /Users/{username}/.local/bin/uvx.

Available Tools

Health and Wellness Data

The server provides access to various health metrics:

  • Sleep Data: Access detailed sleep information and movement data

    • nightly_sleep - Detailed sleep data with movement tracking
    • daily_sleep - Daily sleep summary
  • Stress Monitoring:

    • daily_stress - Daily stress levels
    • weekly_stress - Weekly stress summary
  • Activity Metrics:

    • daily_intensity_minutes / weekly_intensity_minutes - Exercise intensity
    • daily_steps / weekly_steps - Step count tracking
  • Physiological Metrics:

    • daily_body_battery - Energy level tracking
    • daily_hydration - Hydration tracking
    • daily_hrv / hrv_data - Heart rate variability
  • User Information:

    • user_profile - Personal profile data
    • user_settings - User preferences

Activity Tracking

Retrieve information about your workouts and activities:

  • get_activities - List activities with optional filtering
  • get_activities_by_date - Activities for a specific date
  • get_activity_details - Detailed activity information
  • get_activity_splits - Lap and split data
  • get_activity_weather - Weather conditions during activities

Additional Health Metrics

Access specialized health data:

  • get_body_composition - Weight, BMI, and body composition
  • get_respiration_data - Breathing rate information
  • get_spo2_data - Blood oxygen saturation
  • get_blood_pressure - Blood pressure readings

Device and Gear Management

Information about your Garmin devices and equipment:

  • get_devices - Connected Garmin devices
  • get_device_settings - Device configuration
  • get_gear - Registered equipment
  • get_gear_stats - Usage statistics for gear

Utility Tools

Additional helpful tools:

  • monthly_activity_summary - Monthly activity overview
  • snapshot - Data snapshots for specified date ranges
  • get_connectapi_endpoint - Direct access to any Garmin Connect API endpoint

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "Garth-Garmin-Connect" '{"command":"uvx","args":["garth-mcp-server"],"env":{"GARTH_TOKEN":"<output of `uvx garth login`>"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "Garth - Garmin Connect": {
            "command": "uvx",
            "args": [
                "garth-mcp-server"
            ],
            "env": {
                "GARTH_TOKEN": "<output of `uvx garth login`>"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your 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

2. Add this to your configuration file:

{
    "mcpServers": {
        "Garth - Garmin Connect": {
            "command": "uvx",
            "args": [
                "garth-mcp-server"
            ],
            "env": {
                "GARTH_TOKEN": "<output of `uvx garth login`>"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later