Strava MCP Server logo

Strava MCP Server

by tomekkorbak

The Strava MCP Server provides access to the Strava API, allowing language models to query athlete activities data. It acts as a Model Context Protocol (MCP) server, facilitating communication between language models and the Strava API.

View on GitHub

Last updated: N/A

What is Strava MCP Server?

This server is a Model Context Protocol (MCP) server that provides an interface for language models to access and query data from the Strava API. It enables users to retrieve information about their activities, such as runs, rides, and other workouts, using natural language queries.

How to use Strava MCP Server?

To use this server, you need to create a Strava API application, obtain your Client ID, Client Secret, and Refresh Token, and set them as environment variables. Then, configure your Claude environment (either Desktop or Web) to connect to the server using the provided configuration. Once connected, you can ask Claude questions about your Strava activities.

Key features of Strava MCP Server

  • Provides access to Strava API data

  • Supports querying activities by date range

  • Returns activity data with consistent field names and units

  • Includes error handling for common issues like invalid date formats and API authentication errors

Use cases of Strava MCP Server

  • Analyzing recent workout data

  • Comparing performance across different time periods

  • Identifying trends in activity metrics

  • Generating summaries of athletic achievements

FAQ from Strava MCP Server

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a protocol that allows language models to access external data sources and tools.

How do I get my Strava API credentials?

You need to create a Strava API application at Strava API Settings to get your Client ID and Client Secret. Then, use the provided get_strava_token.py script to obtain your Refresh Token.

What environment variables are required?

The server requires the following environment variables: STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, and STRAVA_REFRESH_TOKEN.

What date format should I use?

Dates should be provided in ISO format (YYYY-MM-DD).

What units are used for activity data?

The server returns activity data in the following units: distance in meters, time in seconds, speed in meters per second, elevation in meters, and calories in kcal.