S

Strava MCP Bridge

by millerchou · io.github.millerchou/strava-mcp-bridge

Bridges local stdio MCP clients like Codex and OpenCode to Strava's official MCP endpoint, enabling Strava data access via imported OAuth credentials from Claude Code without a developer app.

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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-millerchou-strava-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-bridge"
      ],
      "env": {
        "STRAVA_MCP_URL": "<VALUE>",
        "STRAVA_MCP_AUTH": "<VALUE>",
        "STRAVA_MCP_DATA_DIR": "<VALUE>",
        "MCP_PROTOCOL_VERSION": "<VALUE>",
        "STRAVA_MCP_ACCESS_TOKEN": "<VALUE>",
        "STRAVA_MCP_ALLOWED_TOOLS": "<VALUE>",
        "STRAVA_MCP_TOKEN_ENDPOINT": "<VALUE>",
        "STRAVA_MCP_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_HELPER": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_BACKEND": "<VALUE>",
        "STRAVA_MCP_OAUTH_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_STREAM_OUTPUT_DIR": "<VALUE>",
        "STRAVA_MCP_NO_CLAIM_ON_IMPORT": "<VALUE>",
        "STRAVA_MCP_KEYCHAIN_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_UPSTREAM_TIMEOUT_MS": "<VALUE>",
        "STRAVA_MCP_REFRESH_SKEW_SECONDS": "<VALUE>",
        "STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE": "<VALUE>",
        "STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE": "<VALUE>"
      }
    }
  }
}

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
STRAVA_MCP_URL No URL of the upstream Strava MCP endpoint. Default: https://mcp.strava.com/mcp
STRAVA_MCP_AUTH No Authentication mode: 'bridge-keychain' (default) or 'env' for STRAVA_MCP_ACCESS_TOKEN.
STRAVA_MCP_DATA_DIR No Directory for bridge-managed local data. Default: ~/Library/Application Support/strava-mcp-bridge/
MCP_PROTOCOL_VERSION No MCP protocol version to use.
STRAVA_MCP_ACCESS_TOKEN No Strava OAuth access token (only used with --auth env or STRAVA_MCP_AUTH=env).
STRAVA_MCP_ALLOWED_TOOLS No Comma-separated list of allowed tools (equivalent to --allow-tool).
STRAVA_MCP_TOKEN_ENDPOINT No Override the OAuth token endpoint URL. Use only for diagnosis.
STRAVA_MCP_CLAIM_ON_IMPORT No When set to 'true', claim the refresh token chain on import.
STRAVA_MCP_KEYCHAIN_HELPER No Path to the Keychain helper executable.
STRAVA_MCP_KEYCHAIN_BACKEND No Keychain backend: 'native' (default, Swift helper) or 'security-cli' (fallback).
STRAVA_MCP_OAUTH_TIMEOUT_MS No Timeout in milliseconds for OAuth operations. Default: 30000
STRAVA_MCP_STREAM_OUTPUT_DIR No Directory for stream file output. Default: <data_dir>/streams/
STRAVA_MCP_NO_CLAIM_ON_IMPORT No When set to 'true', do not claim the refresh token chain on import.
STRAVA_MCP_KEYCHAIN_TIMEOUT_MS No Timeout in milliseconds for Keychain helper calls. Default: 120000
STRAVA_MCP_UPSTREAM_TIMEOUT_MS No Timeout in milliseconds for upstream MCP requests. Default: 30000
STRAVA_MCP_REFRESH_SKEW_SECONDS No Skew in seconds for token refresh timing.
STRAVA_MCP_BRIDGE_KEYCHAIN_SERVICE No macOS Keychain service name for bridge-owned credentials.
STRAVA_MCP_ALLOW_TOKEN_ENDPOINT_OVERRIDE No Must be set to '1' to allow STRAVA_MCP_TOKEN_ENDPOINT override.

Similar servers