# Strava MCP

> Strava MCP is an open-source MCP server for sports data. MCP server that lets AI assistants query your Strava activities, stats and segments. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, CLI, API
- **Repository:** https://github.com/r-huijts/strava-mcp
- **MCP Registry name:** io.github.r-huijts/strava-mcp
- **Categories:** [sports data](https://ai-powered.com/categories/sports-data)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
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
```

### Claude Desktop (claude_desktop_config.json)

```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>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```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>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```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>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## 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.

## Alternatives

- [Strava MCP Server and API by Cotlet](https://ai-powered.com/mcp/strava-mcp-server-and-api-by-cotlet): Strava MCP Server and API by Cotlet is an MCP server for sports data.
- [Rawwatts Demo](https://ai-powered.com/mcp/rawwatts-demo): Rawwatts Demo is a free MCP server for sports data.
- [tri-train](https://ai-powered.com/mcp/tri-train): tri-train is a freemium MCP server for sports data.

---
Source: https://ai-powered.com/mcp/strava-mcp-3
