SuperAPIAI Directory

strava-mcp-server

github.com · AI developer platforms

strava-mcp-server is a Model Context Protocol (MCP)-based server for connecting to the Strava API, enabling language models to query athlete activity data. It provides tools to retrieve activities by count, date range, activity ID, and recent days, returning activity data with consistent field names and units. Before use, you need to create a Strava API application, obtain a refresh token via the included script, and configure environment variables such as client ID, client secret, and refresh token. It supports configuration for use in Claude for Desktop, and can also be run locally in Claude Web and connected via an MCP extension. The project uses the MIT license.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

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.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools