G

Garmin MCP

by endurancetools · io.github.endurancetools/garmin-mcp

Enables AI assistants to answer training questions from a user's own Garmin Connect data — training load, form, ACWR, HRV-based morning readiness, activities, sleep and health — using locally cached data and cited sports-science methods. Also turns requests into structured workouts that can be previewed, scheduled to the Garmin calendar and synced to the watch.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-endurancetools-garmin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "garmin-mcp-server"
      ],
      "env": {
        "GARMIN_DATA_DIR": "~/.garmin-mcp",
        "GARMIN_REGION": "global",
        "GARMIN_ENABLE_DESTRUCTIVE": "false",
        "GARMIN_EMAIL": "<VALUE>",
        "GARMIN_REDACT": "true",
        "GARMIN_MCP_HOST": "127.0.0.1",
        "GARMIN_MCP_PORT": "8000",
        "GARMIN_PASSWORD": "<VALUE>",
        "GARMIN_TIMEZONE": "system",
        "GARMIN_LOG_LEVEL": "info",
        "GARMIN_AUTO_FETCH": "true",
        "GARMIN_APP_VERSION": "built in",
        "GARMIN_CONCURRENCY": "4",
        "GARMIN_TOKENS_FILE": "$GARMIN_DATA_DIR/tokens.json",
        "GARMIN_BROWSER_PATH": "detected",
        "GARMIN_SSO_STRATEGY": "auto",
        "GARMIN_SYNC_PAUSE_S": "1-11",
        "GARMIN_DI_CLIENT_IDS": "built in",
        "GARMIN_ENABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_TRANSPORT": "stdio",
        "GARMIN_APP_USER_AGENT": "built in",
        "GARMIN_DISABLED_TOOLS": "<VALUE>",
        "GARMIN_MCP_HTTP_TOKEN": "<VALUE>",
        "GARMIN_SYNC_CHUNK_DAYS": "7",
        "GARMIN_FIT_DOWNLOAD_DIR": "$GARMIN_DATA_DIR/downloads",
        "GARMIN_HTTP_ALLOWED_HOSTS": "<VALUE>",
        "GARMIN_MIN_REQUEST_INTERVAL_MS": "250",
        "GARMIN_SYNC_MAX_REQUESTS_PER_DAY": "600"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GARMIN_DATA_DIR No tokens, database, config.json Default: ~/.garmin-mcp
GARMIN_REGION No Region; 'cn' switches all three hosts. Default: global
GARMIN_ENABLE_DESTRUCTIVE No Enable delete tools and workout overwrite. Default: false
GARMIN_EMAIL No Email for first login only.
GARMIN_REDACT No get_activity full leaves out name, profile/photo URLs, device and sensor serials and GPS; false returns raw as sent. Default: true
GARMIN_MCP_HOST No Host for streamable HTTP. Default: 127.0.0.1
GARMIN_MCP_PORT No Port for streamable HTTP. Default: 8000
GARMIN_PASSWORD No Password for first login only.
GARMIN_TIMEZONE No IANA zone for 'today'. Default: system
GARMIN_LOG_LEVEL No Log level for pino JSON on stderr. Default: info
GARMIN_AUTO_FETCH No Read tools download missing data themselves; false means only explicit syncs. Default: true
GARMIN_APP_VERSION No Override mobile app version (for when Garmin changes the mobile app identity). Default: built in
GARMIN_CONCURRENCY No Parallel connectapi requests. Default: 4
GARMIN_TOKENS_FILE No Path to tokens file. Default: $GARMIN_DATA_DIR/tokens.json
GARMIN_BROWSER_PATH No Chrome/Edge/Brave/Chromium used for the sign-in window. Default: detected
GARMIN_SSO_STRATEGY No SSO strategy: auto (browser if installed, else terminal), browser, curl, fetch, import. Default: auto
GARMIN_SYNC_PAUSE_S No Pause between sync chunks in seconds; a random range or a fixed number. Default: 1-11
GARMIN_DI_CLIENT_IDS No Override mobile app client IDs (for when Garmin changes the mobile app identity). Default: built in
GARMIN_ENABLED_TOOLS No Comma-separated allow list of tools.
GARMIN_MCP_TRANSPORT No Transport: stdio or streamable-http. Default: stdio
GARMIN_APP_USER_AGENT No Override mobile app user agent (for when Garmin changes the mobile app identity). Default: built in
GARMIN_DISABLED_TOOLS No Comma-separated deny list of tools.
GARMIN_MCP_HTTP_TOKEN No Bearer token for streamable HTTP authentication; without it only binds to 127.0.0.1.
GARMIN_SYNC_CHUNK_DAYS No Sync chunk size in days. Default: 7
GARMIN_FIT_DOWNLOAD_DIR No Directory for downloaded activity files. Default: $GARMIN_DATA_DIR/downloads
GARMIN_HTTP_ALLOWED_HOSTS No Comma-separated hostnames (no port, IPv6 in brackets) accepted in Host/Origin on top of localhost, 127.0.0.1, [::1]; others get 403.
GARMIN_MIN_REQUEST_INTERVAL_MS No Spacing between request starts (±25% jitter). Default: 250
GARMIN_SYNC_MAX_REQUESTS_PER_DAY No Maximum requests per day for syncs. Default: 600

Similar servers