Connects to Garmin Connect to access fitness and health data, including activity listings, detailed activity information, health metrics (steps, heart rate, sleep), and body composition data.
Garmin MCP Server
This Model Context Protocol (MCP) server connects to Garmin Connect and exposes your fitness and health data to Claude and other MCP-compatible clients.
Features
List recent activities
Get detailed activity information
Access health metrics (steps, heart rate, sleep)
View body composition data
Related MCP server: Intervals.icu MCP Server
Setup
Install the required packages on a new environment:
Running the Server
Configuration
Your Garmin Connect credentials are read from environment variables:
GARMIN_EMAIL: Your Garmin Connect email addressGARMIN_EMAIL_FILE: Path to a file containing your Garmin Connect email addressGARMIN_PASSWORD: Your Garmin Connect passwordGARMIN_PASSWORD_FILE: Path to a file containing your Garmin Connect password
File-based secrets are useful in certain environments, such as inside a Docker container. Note that you cannot set both GARMIN_EMAIL and GARMIN_EMAIL_FILE, similarly you cannot set both GARMIN_PASSWORD and GARMIN_PASSWORD_FILE.
With Claude Desktop
Create a configuration in Claude Desktop:
Edit your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add this server configuration:
Replace the path with the absolute path to your server file.
Restart Claude Desktop
With MCP Inspector
For testing, you can use the MCP Inspector from the project root:
Usage Examples
Once connected in Claude, you can ask questions like:
"Show me my recent activities"
"What was my sleep like last night?"
"How many steps did I take yesterday?"
"Show me the details of my latest run"
Security Note
Troubleshooting
If you encounter login issues:
Verify your credentials are correct
Check if Garmin Connect requires additional verification
Ensure the garminconnect package is up to date
For other issues, check the Claude Desktop logs at:
macOS:
~/Library/Logs/Claude/mcp-server-garmin.logWindows:
%APPDATA%\Claude\logs\mcp-server-garmin.log
Garming Connect one-time code
If you have one-time codes enabled in your account, you need to login at the command line first to set the token in the interactive cli.
The app expects either the env var GARMIN_EMAIL or GARMIN_EMAIL_FILE. You can store these in files with the following command.
Then you can manually run the login script.
You will likely see
After setting the token at the cli, you can use the following in Claude, without the env vars because the Oauth tokens have been set.