Strava MCP Server
The Strava MCP Server allows language models to query authenticated athlete activities data from the Strava API.
Fetch Recent Activities: Retrieve the athlete's recent activities with optional limits
Query by Date Range: Get activities within a specific date range
Retrieve Activity Details: Access detailed information about a specific activity using its ID
Get Recent Activities by Days: Fetch activities from the past X days
Provides access to the Strava API, allowing queries for athlete activities including recent activities, activities by date range, specific activity details, and activities from a recent time period. Data returned includes activity metrics like distance, time, speed, elevation, and calories.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Strava MCP Server show me my activities from last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strava MCP Server
A Model Context Protocol (MCP) server that provides access to the Strava API. It allows language models to query athlete activities data from the Strava API.
Available Tools
The server exposes the following tools:
Activities Queries
get_activities(limit: int = 10): Get the authenticated athlete's recent activitiesget_activities_by_date_range(start_date: str, end_date: str, limit: int = 30): Get activities within a specific date rangeget_activity_by_id(activity_id: int): Get detailed information about a specific activityget_recent_activities(days: int = 7, limit: int = 10): Get activities from the past X days
Dates should be provided in ISO format (YYYY-MM-DD).
Related MCP server: Strava MCP Server
Activity Data Format
The server returns activity data with consistent field names and units:
Field | Description | Unit |
| Activity name | - |
| Type of sport | - |
| Start date and time | ISO 8601 |
| Distance | meters |
| Total elapsed time | seconds |
| Moving time | seconds |
| Average speed | meters per second |
| Maximum speed | meters per second |
| Total elevation gain | meters |
| Highest elevation | meters |
| Lowest elevation | meters |
| Calories burned | kcal |
| Start coordinates | [lat, lng] |
| End coordinates | [lat, lng] |
Authentication
To use this server, you'll need to authenticate with the Strava API. Follow these steps:
Create a Strava API application:
Go to Strava API Settings
Create an application to get your Client ID and Client Secret
Set the Authorization Callback Domain to
localhost
Get your refresh token:
Use the included
get_strava_token.pyscript:
python get_strava_token.pyFollow the prompts to authorize your application
The script will save your tokens to a
.envfile
Set environment variables: The server requires the following environment variables:
STRAVA_CLIENT_ID: Your Strava API Client IDSTRAVA_CLIENT_SECRET: Your Strava API Client SecretSTRAVA_REFRESH_TOKEN: Your Strava API Refresh Token
Usage
Claude for Desktop
Update your claude_desktop_config.json (located in ~/Library/Application\ Support/Claude/claude_desktop_config.json on macOS and %APPDATA%/Claude/claude_desktop_config.json on Windows) to include the following:
{
"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"
}
}
}
}Claude Web
For Claude Web, you can run the server locally and connect it using the MCP extension.
Example Queries
Once connected, you can ask Claude questions like:
"What are my recent activities?"
"Show me my activities from last week"
"What was my longest run in the past month?"
"Get details about my latest cycling activity"
Error Handling
The server provides human-readable error messages for common issues:
Invalid date formats
API authentication errors
Network connectivity problems
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
4 toolsget_activitiesB
Get the authenticated athlete's recent activities.
Args:
limit: Maximum number of activities to return (default: 10)
Returns:
Dictionary containing activities data
Inputs: limit.
get_activities_by_date_rangeB
Get activities within a specific date range.
Args:
start_date: Start date in ISO format (YYYY-MM-DD)
end_date: End date in ISO format (YYYY-MM-DD)
limit: Maximum number of activities to return (default: 30)
Returns:
Dictionary containing activities data
Inputs: start_date (required), end_date (required), limit.
get_activity_by_idC
Get detailed information about a specific activity.
Args:
activity_id: ID of the activity to retrieve
Returns:
Dictionary containing activity details
Inputs: activity_id (required).
get_recent_activitiesB
Get activities from the past X days.
Args:
days: Number of days to look back (default: 7)
limit: Maximum number of activities to return (default: 10)
Returns:
Dictionary containing activities data
Inputs: days, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Multiple tools have overlapping purposes that could cause confusion. get_activities and get_recent_activities both retrieve recent activities with similar parameters, while get_activities_by_date_range provides date-based filtering that could also be used for recent activities. Only get_activity_by_id has a clearly distinct purpose.
All tool names follow a consistent verb_noun pattern with snake_case formatting. The naming is perfectly consistent across all four tools, making them predictable and easy to understand at a glance.
With only 4 tools, this feels thin for a Strava server that presumably handles athlete activities. While the count is reasonable for a minimal implementation, it lacks coverage for other Strava domains like segments, clubs, or athlete profiles that would be expected.
The tool surface is severely incomplete for a Strava integration. While it provides multiple ways to read activities, there are no tools for creating, updating, or deleting activities, nor any coverage of other Strava resources like segments, clubs, gear, or athlete statistics. This creates significant gaps that will limit agent capabilities.
Maintenance
Related MCP Connectors
Strava MCP server for ChatGPT, Claude and any AI agent: list activities, update activity gear, read club leaderboard, comment on activity, log manual activity and request account export in your own Strava account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Strava yourself; Cotlet does not store your password and you need no Strava API key. About the official Strava API: Strava has an official API and, since 1 June 2026, an official MCP connector (checked 27 Oct 2026). The MCP is read-only, works with Claude only and needs a paid Strava subscription. Setup and FAQ: https://cotlet.dev/integrations/strava-api-mcp-server
Strava MCP tools for AI: athletes, activities, segments, clubs, routes. Powered by HAPI MCP server.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Pace is a remote MCP server that exposes wearable and fitness data to Claude via the Model Context Protocol. It connects to Garmin, Oura, Whoop, Polar, Fitbit and 20+ devices and provides 15 tools for querying sleep, activity, recovery, and training data. Hosted on Google Cloud Run, OAuth 2.1 authentication, Streamable HTTP transport. Instructions: First you need to create an account at: https://pacetraining.co and connect your wearables. After that you can connect the remote Server via Custom Connector in Claude and OAuth 2.1 Flow startet.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides language models with access to personal Whoop fitness data, allowing queries for cycles, recovery, strain, and workout information from the Whoop API.29-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables language models to interact with Strava data, including activities, athlete statistics, routes, achievements, and social features.6MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables users to access Strava fitness data, including user activities, activity details, segments, and leaderboards through a structured API interface.34MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude and other LLMs.4840MIT