Purpose: strava-mcp-server is a Model Context Protocol (MCP) server that provides access to the Strava API, enabling language models to query athlete activity data from the Strava API.
Key capabilities: The server exposes the following activity query tools: get_activities(limit: int = 10) retrieves recent activities of the authenticated athlete; get_activities_by_date_range(start_date: str, end_date: str, limit: int = 30) retrieves activities within a specified date range; get_activity_by_id(activity_id: int) retrieves detailed information for a specific activity; get_recent_activities(days: int = 7, limit: int = 10) retrieves activities from the past X days. Dates must use ISO format (YYYY-MM-DD). The activity data returned by the server has consistent field names and units.
Usage: You must first authenticate with the Strava API. Steps include: go to Strava API Settings to create an application to obtain the Client ID and Client Secret, and set the Authorization Callback Domain to localhost; use the included get_strava_token.py script to obtain a refresh token, run python get_strava_token.py and authorize as prompted, and the script will save the token to the .env file; set the environment variables STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, STRAVA_REFRESH_TOKEN. In Claude for Desktop, update claude_desktop_config.json (on macOS located at ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows located at %APPDATA%/Claude/claude_desktop_config.json) to include the corresponding configuration. For Claude Web, you can run the server locally and connect via an MCP extension.
Use cases: Once connected, you can ask Claude questions such as "What are my recent activities?" "Show me my activities from last week" "What was my longest run in the past month?" "Get the details of my latest cycling activity".
Limitations: The server provides human-readable error messages for common issues, including invalid date formats, API authentication errors, and network connection problems. The project uses the MIT license. Other information such as additional features, fees, pricing, platforms, or usage steps is not currently provided.