garmin-mcp
Provides access to Garmin Connect data, including sleep, heart rate, stress, training load, HRV, and activities, with the ability to create workouts, edit activities, and export files.
Click on "Install 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-mcpPull my sleep and resting heart rate for the last five days."
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-mcp
An MCP server that gives Claude read access to your Garmin Connect data — sleep, heart rate, stress, training load, HRV, activities — plus a small number of writes (create a structured workout, edit an activity, export a file).
TypeScript, plain node. No uvx, no Python, no Docker.
Setup
npm install
npm run auth # one-time Garmin login; caches tokens
npm run buildnpm run auth prompts for your Garmin email and password, exchanges them for
OAuth tokens, and writes ~/.garmin-mcp/tokens.json with 0600 permissions.
Your password is never stored. The tokens last roughly 30 days, after which you
re-run the command.
Accounts with two-factor authentication are not supported — the underlying library cannot answer an MFA challenge.
Related MCP server: Garmin Workouts MCP Server
Connecting Claude Desktop
Find claude_desktop_config.json:
OS | Path |
Windows |
|
macOS |
|
You can also reach it from Claude Desktop: Settings → Developer → Edit Config. Create the file if it doesn't exist.
Option A — cached token file (recommended)
Nothing secret goes in the config; the server reads ~/.garmin-mcp/tokens.json.
{
"mcpServers": {
"garmin": {
"command": "node",
"args": ["C:\\Users\\abhim\\Documents\\garmin-mcp\\dist\\stdio.js"]
}
}
}On macOS the path is plain, with no escaping:
{
"mcpServers": {
"garmin": {
"command": "node",
"args": ["/Users/you/garmin-mcp/dist/stdio.js"]
}
}
}Option B — token string in the environment
For machines where you'd rather not leave a token file, or where the server runs
somewhere without your home directory. Use the GARMIN_TOKENS_BASE64 value
printed by npm run auth.
{
"mcpServers": {
"garmin": {
"command": "node",
"args": ["C:\\Users\\abhim\\Documents\\garmin-mcp\\dist\\stdio.js"],
"env": {
"GARMIN_TOKENS_BASE64": "eyJvYXV0aDEiOnsi..."
}
}
}
}The environment variable wins when both are present, so Option B overrides a cached file rather than racing it. Note that anything in this block sits in a plaintext config file — the token grants full account access until it expires, so Option A is the better default.
Restart Claude Desktop after editing. The tools appear under the plug icon.
If it doesn't connect
Use an absolute path. Claude Desktop does not run the server from your project directory, so a relative path won't resolve.
Run
npm run buildfirst. The config points atdist/stdio.js, not the TypeScript source.Check
nodeis on the GUI PATH. Claude Desktop launches with a minimal environment, not your shell's. Ifnodeisn't found, use its full path (where nodeon Windows,which nodeon macOS).Re-run
npm run authif tools report that Garmin rejected the session.
Try it
Three prompts that exercise the whole suite end to end:
Health
Pull my sleep and resting heart rate for the last five days, along with daily steps and stress. Is my resting heart rate trending up, and does it line up with the nights I slept badly?
Training
What's my current training status, VO2 max and fitness age? Compare my weekly training load against my load target range and tell me whether to push harder or back off this week.
Activity
Find my most recent run, break down the lap splits and time in each heart rate zone, and tell me whether I paced it evenly or went out too fast.
Tools
Health — get_sleep_data, get_heart_rate, get_body_battery,
get_stress_and_respiration, get_daily_summary, get_body_composition
Training — get_training_status, get_hrv_data, get_cycling_metrics,
get_training_plans_and_workouts, create_workout
Activities — list_activities, get_activity_details, update_activity,
download_activity_file
create_workout, update_activity and download_activity_file are marked as
writes, so Claude Desktop will ask before running them.
What your device actually reports
Garmin answers 200 with empty data for metrics your watch doesn't record,
rather than an error. On this account, body battery and HRV come back empty on
every date checked — the tools say so explicitly instead of returning a
confident-looking zero.
Development
npm run build # compile server and serverless handler
npm test # build, then run the assert-based checksTokens live at ~/.garmin-mcp/tokens.json, overridable with
GARMIN_TOKEN_PATH. See .env.example for the full list of variables.
Remote mode
The same tools can run as a hosted connector for Claude Web: a Vercel deployment with an OAuth 2.1 authorization server and Garmin tokens in Upstash Redis. Add one URL in Claude, log in, and the tools appear.
Local stdio stays the simpler option and exposes nothing to the internet. See DEPLOY.md for the hosted setup and its trade-offs.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceExposes personal Garmin wellness data through MCP tools for accessing summary, sleep, HRV, heart rate, stress, body battery, and historical data.Last updatedMIT
- Alicense-qualityDmaintenanceEnables AI agents to access Garmin Connect activities, workouts, and workout templates for querying and creating workout plans.Last updated5MIT
- AlicenseBqualityCmaintenanceExposes personal Garmin Connect data to MCP-capable clients like Claude and Gemini. Enables querying daily stats, heart rate, sleep, activities, and managing workouts.Last updated16MIT
- Flicense-qualityBmaintenanceEnables multi-user Garmin Connect API with local SQLite caching, providing activity, daily summary, and heart rate data via MCP tools.Last updated
Related MCP Connectors
List, fetch, create, edit (replace), delete and schedule structured workouts on Garmin Connect (runn
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AbhimanyuV04/garmin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server