drio
Open app

Strava MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

Strava MCP Server is a Model Context Protocol (MCP) server designed to interact with the Strava API, enabling users to manage and access their Strava data seamlessly.

To use the Strava MCP Server, you need to set up a Strava API application, obtain a refresh token, configure the MCP settings with your Strava API credentials, and then build and start the server.

  • Retrieve activities for the authenticated athlete. - Get details of specific activities. - Create manual activities. - Access information about who kudoed an activity. - Retrieve laps of an activity.
  1. Displaying recent Strava activities.
  2. Fetching details about specific runs or rides.
  3. Creating new manual activities on Strava.
  4. Identifying athletes who kudoed your activities.
  5. Analyzing laps from track workouts.

Add to your AI client

Use these steps to connect Strava MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "strava-mcp-server-rakeshgangwar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "strava-mcp-server-rakeshgangwar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "strava-mcp-server-rakeshgangwar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "strava-mcp-server-rakeshgangwar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "strava-mcp-server-rakeshgangwar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "strava-mcp-server-rakeshgangwar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-strava-mcp-server-rakeshgangwar"
      ]
    }
  }
}

FAQ

How do I authenticate with the Strava API?

You need to create a Strava API application and obtain a refresh token to authenticate.

What should I do if I encounter authentication errors?

If you face authentication errors, your refresh token may have expired. Run the get-strava-token.js script again to obtain a new one.

How can I troubleshoot server startup issues?

Ensure the path to the server in the MCP settings file is correct and that you've built the server using `npm run build`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2556,"uuid":"4299b683-01a6-4f9e-908f-94bfaa092b57","name":"strava-mcp-server","title":"Strava MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/3814936?v=4","created_at":"2025-03-13T08:49:00.242Z","updated_at":"2025-03-15T05:43:50.666Z","status":"created","author_name":"rakeshgangwar","author_avatar_url":"https://avatars.githubusercontent.com/u/3814936?v=4","tags":"strava,mcp,api,server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/rakeshgangwar/strava-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 18:42:10\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]