strava-mcp

v0.4.6
io.github.davidmosiah/strava-mcp Checked 7 hours ago Published 6 months ago

Privacy-first MCP server for Strava activities, streams, routes and training.

Values you need

VariableWhat it is
STRAVA_CLIENT_IDoptional Strava OAuth client ID. Optional when configured with strava-mcp-server setup.
STRAVA_CLIENT_SECREToptional secret Strava OAuth client secret. Prefer strava-mcp-server setup so this secret is stored in ~/.strava-mcp/config.json instead of MCP client config.
STRAVA_REDIRECT_URIoptional Redirect URI configured in the Strava Developer Dashboard. Optional when configured with strava-mcp-server setup.
STRAVA_TOKEN_PATHoptional Optional local path for OAuth tokens. Defaults to ~/.strava-mcp/tokens.json.
STRAVA_PRIVACY_MODEoptional Optional payload mode: summary, structured, or raw. Defaults to structured. raw means full Strava API payloads, not continuous 24/7 raw sensor telemetry.
STRAVA_CACHEoptional Optional SQLite cache toggle. Set to true or sqlite to enable.
STRAVA_CACHE_PATHoptional Optional local SQLite cache path. Defaults to ~/.strava-mcp/cache.sqlite.
STRAVA_NO_CACHEoptional Set to true to bypass the in-memory HTTP response cache (60s TTL for GET only). POST/PUT/DELETE and 4xx/5xx responses are never cached regardless.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add strava-mcp -- npx -y strava-mcp-unofficial@0.4.6
Add to claude_desktop_config.json
{
  "mcpServers": {
    "strava-mcp": {
      "args": [
        "-y",
        "strava-mcp-unofficial@0.4.6"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "strava-mcp": {
      "args": [
        "-y",
        "strava-mcp-unofficial@0.4.6"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "strava-mcp": {
      "args": [
        "-y",
        "strava-mcp-unofficial@0.4.6"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.strava-mcp]
command = "npx"
args = ["-y", "strava-mcp-unofficial@0.4.6"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: strava_data_inventory, strava_agent_manifest, strava_capabilities, strava_quickstart, strava_demo, strava_get_auth_url, strava_exchange_code, strava_get_athlete, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json