# Strava MCP server

> Query your Strava activities, stats, segments and routes in plain language from an AI assistant.

- Listing: https://mcp.tc/i/strava
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [Utilities](https://mcp.tc/c/utilities)
- Vendor: r-huijts
- Repository: <https://github.com/r-huijts/strava-mcp>
- Package: npm `strava-mcp-server`

## About

A community MCP server that connects to the Strava API. It lets an assistant read your profile, recent activities, laps, heart rate and power data, athlete stats, shoes, training zones and starred segments, and export routes as GPX or TCX files.

It runs locally over stdio through npx. You create a free Strava API application and supply its Client ID and Client Secret, then authorize your account in the browser. Credentials and tokens are stored locally in a config file.

## What it can do

- Connect and disconnect your Strava account
- List recent activities with filters
- Get detailed activity data, laps and time-series streams
- View athlete stats and personal records
- List shoes and heart rate or power training zones
- Browse starred segments and explore nearby segments
- Export routes as GPX or TCX files

## Example prompts

- "How many kilometers did I run this month?"
- "Analyze my last cycling workout, including power and heart rate."
- "Show my starred segments."
- "Export my Sunday morning route as a GPX file."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio strava --env "STRAVA_CLIENT_ID=<YOUR_STRAVA_CLIENT_ID>" --env "STRAVA_CLIENT_SECRET=<YOUR_STRAVA_CLIENT_SECRET>" --env "STRAVA_ACCESS_TOKEN=<YOUR_STRAVA_ACCESS_TOKEN>" -- npx -y strava-mcp-server
```

2. Start Claude Code and type `/mcp`. **strava** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

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

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=strava&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInN0cmF2YS1tY3Atc2VydmVyIl0sImVudiI6eyJTVFJBVkFfQ0xJRU5UX0lEIjoiPFlPVVJfU1RSQVZBX0NMSUVOVF9JRD4iLCJTVFJBVkFfQ0xJRU5UX1NFQ1JFVCI6IjxZT1VSX1NUUkFWQV9DTElFTlRfU0VDUkVUPiIsIlNUUkFWQV9BQ0NFU1NfVE9LRU4iOiI8WU9VUl9TVFJBVkFfQUNDRVNTX1RPS0VOPiJ9fQ%3D%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

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

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "strava": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "strava-mcp-server"
      ],
      "env": {
        "STRAVA_CLIENT_ID": "<YOUR_STRAVA_CLIENT_ID>",
        "STRAVA_CLIENT_SECRET": "${input:strava-client-secret}",
        "STRAVA_ACCESS_TOKEN": "${input:strava-access-token}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "strava-client-secret",
      "description": "STRAVA_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "strava-access-token",
      "description": "STRAVA_ACCESS_TOKEN",
      "password": true
    }
  ]
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

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

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add strava --env "STRAVA_CLIENT_ID=<YOUR_STRAVA_CLIENT_ID>" --env "STRAVA_CLIENT_SECRET=<YOUR_STRAVA_CLIENT_SECRET>" --env "STRAVA_ACCESS_TOKEN=<YOUR_STRAVA_ACCESS_TOKEN>" -- npx -y strava-mcp-server
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.strava]
command = "npx"
args = ["-y", "strava-mcp-server"]
env = { STRAVA_CLIENT_ID = "<YOUR_STRAVA_CLIENT_ID>", STRAVA_CLIENT_SECRET = "<YOUR_STRAVA_CLIENT_SECRET>", STRAVA_ACCESS_TOKEN = "<YOUR_STRAVA_ACCESS_TOKEN>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "STRAVA_CLIENT_ID=<YOUR_STRAVA_CLIENT_ID>" -e "STRAVA_CLIENT_SECRET=<YOUR_STRAVA_CLIENT_SECRET>" -e "STRAVA_ACCESS_TOKEN=<YOUR_STRAVA_ACCESS_TOKEN>" strava npx -- -y strava-mcp-server
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

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

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Recent changes

- 2026-10-18 04:21 UTC: Tracking started: version 1.2.0. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/strava#history (Atom feed: https://mcp.tc/i/strava/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 1.2.0
- Last checked: 2026-10-18
- Listed: 2026-10-18
- Updated: 2026-10-18

---
Source: https://mcp.tc/i/strava (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
