Strava
A Model Context Protocol (MCP) server with Strava OAuth integration, built on Cloudflare Workers. Enables secure authentication and tool access for MCP clients like Claude and Cursor through Strava login. Perfect for developers looking to integrate S
What is Strava?
Strava is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) server with strava oauth integration, built on cloudflare workers. enables secure authentication and tool access for mcp clients like claude and cursor through strava logi...
A Model Context Protocol (MCP) server with Strava OAuth integration, built on Cloudflare Workers. Enables secure authentication and tool access for MCP clients like Claude and Cursor through Strava login. Perfect for developers looking to integrate S
This server falls under the APIs category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A Model Context Protocol (MCP) server with Strava OAuth inte
Use Cases
Maintainer
Works with
Installation
NPM
npx -y stravaManual Installation
npx -y stravaConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Strava
The Strava MCP server integrates AI assistants with the Strava fitness platform via OAuth authentication, enabling Claude and other MCP clients to read activity data, analyze training loads, and retrieve performance zones directly from your Strava account. Built with Python and deployed on Cloudflare Workers or locally via uv, it exposes resources and tools for activity retrieval, individual workout analysis, cumulative load assessment, and personalized training recommendations — making it a powerful companion for data-driven athletes.
Prerequisites
- Python 3.10 or later and the uv package manager (astral.sh/uv)
- A Strava account and a registered Strava API application at strava.com/settings/api
- STRAVA_CLIENT_ID, STRAVA_CLIENT_SECRET, and STRAVA_REFRESH_TOKEN from your Strava API app
- An MCP-compatible client such as Claude Desktop or Cursor
Clone the repository and install uv
Download the server source and install the uv Python package manager if it is not already present.
git clone https://github.com/rbctmz/mcp-server-strava.git
cd mcp-server-strava
curl -LsSf https://astral.sh/uv/install.sh | shInstall the package and its dependencies
Use uv to install the server and the MCP CLI dependency.
uv pip install -e ".[dev]"
uv add "mcp[cli]"Configure your Strava API credentials
Copy the environment template and fill in your Strava client ID, secret, and refresh token obtained from your Strava API app settings.
cp .env-template .env
# Edit .env and set:
# STRAVA_CLIENT_ID=your_client_id
# STRAVA_CLIENT_SECRET=your_client_secret
# STRAVA_REFRESH_TOKEN=your_refresh_tokenRun the OAuth authentication script
Execute the auth script to exchange your credentials for an access token and verify connectivity.
python scripts/auth.pyAdd the server to your Claude Desktop config
Register the MCP server so Claude Desktop can invoke the Strava tools.
{
"mcpServers": {
"strava": {
"command": "uv",
"args": ["run", "python", "-m", "mcp_server_strava"],
"env": {
"STRAVA_CLIENT_ID": "your_client_id",
"STRAVA_CLIENT_SECRET": "your_client_secret",
"STRAVA_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}Restart Claude Desktop and verify the connection
Restart the client and ask Claude to list your recent Strava activities to confirm the server is working.
Strava Examples
Client configuration
claude_desktop_config.json entry for the Strava MCP server with environment credentials injected.
{
"mcpServers": {
"strava": {
"command": "uv",
"args": ["run", "python", "-m", "mcp_server_strava"],
"env": {
"STRAVA_CLIENT_ID": "your_client_id",
"STRAVA_CLIENT_SECRET": "your_client_secret",
"STRAVA_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}Prompts to try
Example prompts that exercise activity analysis, training load, and zone data.
- "Show me my last 10 Strava activities with pace and distance"
- "Analyze my training load over the past two weeks and tell me if I'm overreaching"
- "What are my current heart rate training zones?"
- "Give me personalized training recommendations based on my recent runs"
- "Analyze activity 12345678 and summarize my effort and pace"Troubleshooting Strava
OAuth token refresh fails with 'invalid_grant' error
Strava refresh tokens expire if unused or if the app authorization is revoked. Re-run 'python scripts/auth.py' to generate a fresh refresh token and update your .env file.
Server cannot find STRAVA_CLIENT_ID at runtime
Claude Desktop does not inherit shell environment variables. Set all three Strava credentials in the 'env' block of your claude_desktop_config.json rather than relying on your shell profile.
'uv' command not found when Claude Desktop tries to start the server
Install uv globally with 'curl -LsSf https://astral.sh/uv/install.sh | sh' and ensure ~/.cargo/bin or ~/.local/bin is in the PATH that Claude Desktop uses. You may need to specify the full path to uv in the 'command' field.
Frequently Asked Questions about Strava
What is Strava?
Strava is a Model Context Protocol (MCP) server that model context protocol (mcp) server with strava oauth integration, built on cloudflare workers. enables secure authentication and tool access for mcp clients like claude and cursor through strava login. perfect for developers looking to integrate s It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Strava?
Install via npm with the command: npx -y strava. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Strava?
Strava works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Strava free to use?
Yes, Strava is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Strava Alternatives — Similar APIs Servers
Looking for alternatives to Strava? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
★ 43.4k🦍 The API and AI Gateway
API Mega List
★ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHub—period. 💪
Fetch
★ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
★ 2.1kSelf-Hosted API Management for Builders
Korean Law
★ 1.8k국가법령정보MCP v4.0 | 법제처 41개 API → 17개 MCP 도구. 법령·판례·조례 검색 + LLM 환각 방지 인용검증 + 조문 영향 그래프(impact_map) + 시점 비교 자동 diff(time_travel) + 시민 5단계 실행 가이드(action_plan) | 41 Korean legal APIs → 17 MCP tools
RuleGo
★ 1.5k⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Strava in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Strava?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.