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.
Clone the MCP Strava Server repository to your local machine:
git clone https://github.com/MariyaFilippova/mcp-strava.git
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"
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
Ensure Claude for Desktop is installed on your machine. If needed, download the latest version here.
Modify Claude's configuration file to register the MCP Strava Server:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"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.
Restart the Claude for Desktop application to apply the updated configuration.
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.
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.
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"
]
}
}
}
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.
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.