kw510/strava-mcp
Free用于 Strava (体育锻炼追踪应用) 的 MCP 服务器。
FreeFree tier
About kw510/strava-mcp
A Model Context Protocol (MCP) server with Strava OAuth integration, built on Cloudflare Workers. It enables secure authentication and tool access for MCP clients like Claude and Cursor through Strava login. This project serves as a reference example for integrating OAuth providers with an MCP server deployed to Cloudflare, using the workers-oauth-provider library. It supports both development and production environments, with easy deployment via Wrangler CLI. Ideal for developers looking to integrate Strava authentication with AI tools.
Key Features
Strava OAuth integration for secure authentication
Acts as both OAuth server for MCP clients and OAuth client for Strava
Built on Cloudflare Workers for scalable deployment
Supports remote MCP connections via SSE
Works with MCP clients like Claude Desktop, Cursor, and MCP Inspector
Includes separate setup for development and production environments
Uses Cloudflare KV namespace for OAuth data storage
Deployable via Wrangler CLI with environment variable configuration
Pros & Cons
Pros
- Secure OAuth integration with Strava
- Built on Cloudflare Workers for scalability and ease of deployment
- Clear documentation with step-by-step setup for both dev and production
- Compatible with popular MCP clients like Claude Desktop and Cursor
- Open source and freely available
Cons
- Requires Strava and Cloudflare accounts to use
- Deployment involves Node.js, npm, and Wrangler CLI setup
- Limited to Strava's fitness and sports data due to platform scope
- Strava API rate limits apply (200 requests per period)
Best For
Integrating Strava authentication with AI tools (Claude, Cursor)Building MCP servers that require OAuth provider integrationReference implementation for deploying an MCP server with OAuth on Cloudflare WorkersEnabling secure access to Strava data through AI assistants
FAQ
How do I set up Strava API credentials?
Go to Strava's API Settings, create a new application, set the authorization callback domain and URL (e.g., mcp-strava-oauth.your-subdomain.workers.dev for production, or localhost for development), then set the STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET as environment variables using wrangler secret put or a .dev.vars file.
What MCP clients are supported?
The server works with any MCP client that supports remote connections via SSE, including Claude Desktop, Cursor, and the MCP Inspector tool.
How do I deploy the server?
Clone the repository, install dependencies with npm install, set up your Strava API credentials, create a Cloudflare KV namespace (wrangler kv:namespace create 'OAUTH_KV'), update wrangler.toml, and deploy using wrangler deploy. For development, run wrangler dev to start a local server.