Strava MCP Server logo

Strava MCP Server

by yorrickjansen

A Model Context Protocol (MCP) server for interacting with the Strava API. It allows users to retrieve and analyze their Strava activity data.

View on GitHub

Last updated: N/A

What is Strava MCP Server?

The Strava MCP Server is a Model Context Protocol server that provides an interface to access and interact with the Strava API. It allows users to retrieve data about their activities, segments, and leaderboards.

How to use Strava MCP Server?

To use the Strava MCP Server, you need to install it using uvx strava-mcp. Then, create a Strava API application to obtain your Client ID and Client Secret. Configure your credentials by setting the STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET environment variables. Finally, configure your Claude Desktop to use the server.

Key features of Strava MCP Server

  • Retrieves user activities with filtering options (before, after, page, per_page)

  • Gets detailed information about a specific activity, including segment efforts

  • Retrieves segments from a specific activity

  • Gets the leaderboard for a specific segment with various filters

  • Supports manual authentication to obtain a refresh token

Use cases of Strava MCP Server

  • Analyzing personal fitness data from Strava

  • Integrating Strava data into other applications

  • Building custom dashboards to visualize Strava activities

  • Comparing performance on specific segments with other athletes

FAQ from Strava MCP Server

How do I get my Strava Client ID and Client Secret?

Create a Strava API application at https://www.strava.com/settings/api.

What is the Authorization Callback Domain?

Set the Authorization Callback Domain to localhost when creating your Strava API application.

How do I install the Strava MCP Server?

Use the command uvx strava-mcp.

How do I authenticate with Strava?

The first time you use the tools, an authentication flow will automatically start, redirecting you to Strava for authorization.

How do I run the server in development mode?

Use the command mcp dev strava_mcp/main.py.