Get the authenticated athlete's recent activities
Get activities within a specific date range (dates in ISO format YYYY-MM-DD)
Get detailed information about a specific activity
Get activities from the past X days
The Strava API MCP server provides language models with direct access to your Strava fitness data. It allows Claude to retrieve, analyze, and discuss your running, cycling, and other athletic activities tracked through Strava. With this integration, you can get insights about your recent workouts, compare activities across date ranges, and examine detailed metrics for specific activities.
Before using the Strava API MCP server, you'll need:
Create a Strava API application:
localhost
Get your refresh token using the included script:
python get_strava_token.py
.env
filepip install strava-mcp-server
uv install strava-mcp-server
Update your claude_desktop_config.json
file to include the Strava MCP server:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"strava": {
"command": "uvx",
"args": [
"strava-mcp-server"
],
"env": {
"STRAVA_CLIENT_ID": "YOUR_CLIENT_ID",
"STRAVA_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"STRAVA_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN"
}
}
}
}
STRAVA_CLIENT_ID=your_client_id STRAVA_CLIENT_SECRET=your_client_secret STRAVA_REFRESH_TOKEN=your_refresh_token uvx strava-mcp-server
Once connected, you can ask Claude questions about your Strava activities:
The server returns activity data with consistent field names and units:
| Field | Description | Unit |
| --- | --- | --- |
| name
| Activity name | - |
| sport_type
| Type of sport | - |
| start_date
| Start date and time | ISO 8601 |
| distance_metres
| Distance | meters |
| elapsed_time_seconds
| Total elapsed time | seconds |
| moving_time_seconds
| Moving time | seconds |
| average_speed_mps
| Average speed | meters per second |
| max_speed_mps
| Maximum speed | meters per second |
| total_elevation_gain_metres
| Total elevation gain | meters |
| elev_high_metres
| Highest elevation | meters |
| elev_low_metres
| Lowest elevation | meters |
| calories
| Calories burned | kcal |
| start_latlng
| Start coordinates | [lat, lng] |
| end_latlng
| End coordinates | [lat, lng] |
If you encounter issues:
For more detailed information, visit the GitHub repository.