Get the FREE Ultimate OpenClaw Setup Guide →

strava

A Model Context Protocol (MCP) server that connects to Strava API, providing tools to access Strava data through LLMs

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio r-huijts-strava-mcp npx -y @r-huijts/strava-mcp-server

How to use

This Strava MCP Server lets Claude talk to your Strava data. After you connect your Strava account, you can ask Claude natural-language questions about your workouts, routes, and progress, and receive structured insights such as totals, breakdowns by activity, heart-rate zones, and route details. The toolset supports tracking your activity totals, analyzing individual workouts, exploring segments and routes, and receiving coaching-style insights about training load and performance. You can interact with Claude to fetch recent activities, get detailed analysis of a ride, export routes as GPX, and view segment details or your starred segments.

To use it, first ensure the MCP server is configured in Claude as shown in the Quick Start. Then connect your Strava account when Claude prompts you, authorize the app in the browser, and begin asking questions like: "How many kilometers did I run this month?", "Analyze my last cycling workout", or "Export my Sunday morning route as GPX". Claude will relay queries to the Strava MCP server and present results in a readable format, including summaries, charts, and downloadable files where supported.

How to install

Prerequisites:

  • Node.js and npm installed on your system
  • Internet access to download the MCP server package via npx or npm

Option A: Just Use It (Recommended)

  • No local installation is required beyond using the Quick Start npx command.

Option B: Install Globally

  1. Install the MCP server globally:
npm install -g @r-huijts/strava-mcp-server
  1. Update Claude config to use the global executable:
{
  "mcpServers": {
    "strava": {
      "command": "strava-mcp-server"
    }
  }
}

Note: Although the package name is @r-huijts/strava-mcp-server, the executable remains strava-mcp-server for backward compatibility.


Option C: Build from Source
1) Clone the repository and install dependencies:

```bash
git clone https://github.com/r-huijts/strava-mcp.git
cd strava-mcp
npm install
npm run build
  1. Point Claude to your local build:
{
  "mcpServers": {
    "strava": {
      "command": "node",
      "args": ["/path/to/strava-mcp/dist/server.js"]
    }
  }
}

Prerequisites recap:
- Node.js (recommended LTS) and npm installed
- Access to the internet for package downloads or local build tooling
- Optional: Claude configuration access to add the MCP server

Additional notes

Tips: If you ever need to reconnect Strava, you can say or select to reconnect in Claude. Your Strava credentials are stored locally (e.g., under ~/.config/strava-mcp/config.json) and persist across sessions. If you switch machines or environments, you may need to re-authenticate. For troubleshooting, verify that the MCP server URL/command is accessible and that Claude has permission to launch the npx/strava-mcp-server process. If you encounter latency, ensure your network can reach Strava's API endpoints and that your Strava app credentials are valid. The available tools cover Accounts & Profiles, Activities, Segments, Routes, and Coaching Insights, so you can build complex queries like "Show my starred segments near Denver" or "Analyze my training load this week".

Related MCP Servers

Sponsor this space

Reach thousands of developers