Strava MCP server

Integrates with Strava's API to retrieve and analyze fitness data, enabling workout planning, progress tracking, and performance analysis for athletic applications.
Back to servers
Provider
Mariya Filippova
Release date
Feb 04, 2025
Language
Kotlin
Stats
8 stars

The MCP Strava Server is a specialized integration tool that connects Strava APIs with Claude for Desktop. It enables you to seamlessly access, process, and interact with your Strava activity data through Claude's Model Context Protocol (MCP) framework.

Installation and Setup

Clone the Repository

Clone the MCP Strava Server repository to your local machine:

git clone https://github.com/MariyaFilippova/mcp-strava.git

Configure Strava API Credentials

To set up your Strava API credentials, modify the src/main/resources/.env file. Add your CLIENT_ID and CLIENT_SECRET from your Strava API settings:

CLIENT_ID="your-client-id"
CLIENT_SECRET="your-client-secret"

Build the Project

Use Gradle to build the project and generate the executable JAR file:

gradle shadowJar

After building, the server JAR will be available at: build/libs/strava-mcp-server-1.0.0-all.jar

Connecting to Claude for Desktop

Install Claude for Desktop

Ensure Claude for Desktop is installed on your machine. If needed, download the latest version here.

Update Claude's Configuration

Modify Claude's configuration file to register the MCP Strava Server:

  1. Open the Claude configuration file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the MCP Strava Server configuration:
{
  "mcpServers": {
    "strava": {
      "command": "java",
      "args": [
        "-jar",
        "your/path/strava-mcp-server/build/libs/strava-mcp-server-1.0.0-all.jar"
      ]
    }
  }
}

Important: Replace your/path with the absolute path where the JAR file is located on your system.

  1. Save your changes.

Restart Claude

Restart the Claude for Desktop application to apply the updated configuration.

Using the MCP Strava Server

After completing the setup, you can interact with your Strava activity data directly through Claude for Desktop. The integration allows for seamless access to your Strava activities, statistics, and other data through Claude's interface.

The server handles the authentication and data processing between Claude and the Strava APIs, providing a streamlined experience for analyzing and managing your fitness data.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later