r-huijts/strava-mcp logo

r-huijts/strava-mcp

Free

连接到 Strava API 的 MCP 服务器,提供通过 LLM 访问 Strava 数据的工具。

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About r-huijts/strava-mcp

Strava MCP Server is an open-source Model Context Protocol (MCP) server that connects Claude (via Claude Desktop or Claude Code) to the Strava API. It allows users to interact with their Strava data using natural language queries. Users can ask about activities, analyze workouts, explore routes and segments, and get coaching insights. Setup involves adding the server to Claude's configuration and authorizing Strava access via a local browser flow. Credentials are saved locally for persistence.

Key Features

Natural language queries to Strava data via Claude
Track running and cycling progress: distance, stats, comparisons
Analyze workout details: power, heart rate, cadence, pace, laps
Explore and export routes and segments (GPX export supported)
Coaching insights: training load, fitness trends, performance summaries
Local credential storage at ~/.config/strava-mcp/config.json
Easy setup via Claude Desktop or Claude Code with npx
Persistence across sessions once connected

Pros & Cons

Pros
  • No coding required to query Strava data – just plain English
  • Quick 3-step setup (add config, restart, connect account)
  • Supports both Claude Desktop and Claude Code
  • Credentials stored locally and persist across sessions
  • Open-source and free to use
Cons
  • Requires a Strava account and free Strava API application (one-time setup)
  • Dependent on Strava API availability and rate limits
  • Currently only works with Claude (Desktop and Code), not other LLMs out-of-the-box
  • Setup involves creating a Strava API app, which may be confusing for non-technical users

Best For

Ask 'How far did I run this month?' and get monthly statsAnalyze last ride with power, heart rate, and cadence breakdownFind popular cycling segments near a location (e.g., Central Park)Get a summary of cycling performance over the yearCompare running stats between months (e.g., January vs December)Export Sunday morning route as GPX fileReview training load and fitness trends over the week

FAQ

How do I connect my Strava account to the MCP server?
Just say to Claude 'Connect my Strava account'. A browser window will open with a setup page. Enter your Strava API credentials (Client ID and Client Secret), then click 'Continue to Strava' to authorize. You'll see a success message and Claude confirms the connection.
Where do I get my Strava API credentials?
Go to strava.com/settings/api, click 'Create an App' (or view existing app), fill in the form with a name and category, then get your Client ID and Client Secret.
How do I install the Strava MCP server for Claude Desktop?
Open your Claude Desktop configuration file (Mac: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json) and add the server entry with command 'npx' and args '[-y, @r-huijts/strava-mcp-server]'. Then restart Claude Desktop.
Are my credentials saved between sessions?
Yes, your credentials are saved locally at ~/.config/strava-mcp/config.json and persist across sessions.