Strava MCP Server
Overview
Strava MCP Server is a Model Context Protocol (MCP) server that provides access to the Strava API, allowing language models to query athlete activities data from Strava.
To use the Strava MCP Server, you need to authenticate with the Strava API by creating an application, obtaining your Client ID and Client Secret, and setting up your environment variables. You can then run the server locally and connect it to your application.
- Access to recent athlete activities through various queries. - Consistent data format for activity information. - Human-readable error messages for common issues.
- Querying recent activities of an athlete.
- Retrieving activities within a specific date range.
- Getting detailed information about specific activities.
Add to your AI client
Use these steps to connect Strava MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"strava-mcp-server-tomekkorbak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"strava-mcp-server-tomekkorbak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"strava-mcp-server-tomekkorbak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"strava-mcp-server-tomekkorbak": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"strava-mcp-server-tomekkorbak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"strava-mcp-server-tomekkorbak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-strava-mcp-server-tomekkorbak"
]
}
}
}FAQ
How do I authenticate with the Strava API?
You need to create a Strava API application and obtain your Client ID, Client Secret, and Refresh Token.
What kind of data can I retrieve?
You can retrieve various data points such as activity name, sport type, distance, elapsed time, and more.
Is there any error handling?
Yes, the server provides human-readable error messages for common issues like invalid date formats and authentication errors.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1921,"uuid":"7bf52135-c7e5-4f78-912c-3cfc2b3b0388","name":"strava-mcp-server","title":"Strava MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/9259131?v=4","created_at":"2025-03-05T06:07:41.400Z","updated_at":"2025-03-12T10:21:43.558Z","status":"created","author_name":"tomekkorbak","author_avatar_url":"https://avatars.githubusercontent.com/u/9259131?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/tomekkorbak/strava-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/tomekkorbak/strava-mcp-server/workflows/Python%20Package/badge.svg","type":null,"metadata":"{\"star\":\"8\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-02-28 15:49:29\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]