Skip to content
MCP server

Strava MCP

MCP server that lets AI assistants query your Strava activities, stats and segments

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
macOS, Windows, Linux
Runs
Locally
Version
1.0.1
Listing updated
today

Similar MCP servers

About Strava MCP

Strava MCP is an open-source MCP server for sports data. It runs locally on your machine and is started by your AI client.

The README says this server connects an AI client such as Claude to a Strava account, so training data can be queried in plain language. Typical requests cover totals over a period, lap and heart rate breakdowns for a single workout, personal records, starred segments and saved routes.

Authentication is handled through Strava's OAuth flow: the user enters a Strava API client ID and secret in a browser setup page, authorizes the app, and the server stores the resulting credentials locally in a config file. Environment variables can be used instead, and the server refreshes expired tokens automatically. Routes can be exported as GPX or TCX files, and a workout plan can be converted to a Zwift file.

It suits athletes and coders who already use Strava and want to analyze their own training data from an AI chat. Users need to create a free Strava API application first, and the server runs locally over stdio.

Install

Run in a terminal

claude mcp add strava-mcp --env STRAVA_CLIENT_ID='<STRAVA_CLIENT_ID>' --env STRAVA_CLIENT_SECRET='<STRAVA_CLIENT_SECRET>' --env STRAVA_ACCESS_TOKEN='<STRAVA_ACCESS_TOKEN>' -- npx -y strava-mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "strava-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "<STRAVA_CLIENT_SECRET>",
        "STRAVA_ACCESS_TOKEN": "<STRAVA_ACCESS_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "strava-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "<STRAVA_CLIENT_SECRET>",
        "STRAVA_ACCESS_TOKEN": "<STRAVA_ACCESS_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "strava-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "<STRAVA_CLIENT_SECRET>",
        "STRAVA_ACCESS_TOKEN": "<STRAVA_ACCESS_TOKEN>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "strava-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "<STRAVA_CLIENT_SECRET>",
        "STRAVA_ACCESS_TOKEN": "<STRAVA_ACCESS_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "strava-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "<STRAVA_CLIENT_SECRET>",
        "STRAVA_ACCESS_TOKEN": "<STRAVA_ACCESS_TOKEN>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • STRAVA_CLIENT_IDYour Strava API client IDRequired
  • STRAVA_CLIENT_SECRETYour Strava API client secretRequired
  • STRAVA_ACCESS_TOKENYour Strava API access tokenRequired

What it does

Activity and lap queries
Lists recent workouts, fetches runs by date filter, and shows lap-by-lap breakdowns for a given activity.
Heart rate and stream data
Returns time-series workout data such as heart rate, power and cadence in a compact format for LLM processing.
Stats and personal records
Reports year-to-date and all-time totals by activity type along with personal records like longest ride.
Segments and efforts
Finds segments near a location, stars or inspects segments, and shows the user's own efforts on them.
Route export
Exports saved routes as GPX or TCX files for use on GPS devices.
Automatic token refresh
Renews expired Strava tokens and saves updated credentials to the local config.

Good for

  • Reviewing weekly or monthly training volume from an AI chat
  • Analyzing power, heart rate and pace for a single workout
  • Comparing fitness progress across months or years
  • Finding and starring popular cycling climbs near a location
  • Exporting a planned route to a GPS device
  • Converting a structured workout into a Zwift file

Pricing

Open source

Free, MIT-licensed; requires a free Strava API application.

Strava MCP FAQ

Do I need a Strava API application to use it?

Yes. The README says you create a free Strava API application at strava.com/settings/api and use its Client ID and Client Secret.

Where are my credentials stored?

The README says they are saved locally at ~/.config/strava-mcp/config.json and persist across sessions.

How is the server installed?

The README gives an npx command for Claude Desktop and Claude Code, plus options for a global npm install or building from source.

Which license does it use?

The README states the project is released under the MIT License.

Is Strava MCP free?

Yes. Strava MCP is open source, so you can use and self-host it for free.

How do I add Strava MCP to Claude Code?

Run this command in your terminal: claude mcp add strava-mcp --env STRAVA_CLIENT_ID='<STRAVA_CLIENT_ID>' --env STRAVA_CLIENT_SECRET='<STRAVA_CLIENT_SECRET>' --env STRAVA_ACCESS_TOKEN='<STRAVA_ACCESS_TOKEN>' -- npx -y strava-mcp-server

What are the best alternatives to Strava MCP?

The closest alternatives to Strava MCP are Strava MCP Server and API by Cotlet, Rawwatts Demo and tri-train.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers