mcp-strava
Provides tools for accessing athlete profile, stats, activities, activity details, zones, and segment effort streams via the Strava API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-strava How was my training this week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strava MCP Server
Minimalist Strava integration for Claude.
7 focused tools. One-time auth. Zero bloat.
What You Can Ask Claude
"How was my training this week vs last?"
"What's my average heart rate on tempo runs?"
"Break down yesterday's workout by zones"
Related MCP server: Strava MCP Server
Tools
Tool | What it does |
| Your profile info |
| Totals: recent, YTD, all-time |
| HR and power zone configuration |
| Browse with date filtering |
| Full workout breakdown with laps and segments |
| Zone distribution with time and percentage per zone |
| Segment analysis with historical comparison |
Quick Start with npx
1. Create Strava App → strava.com/settings/api → get Client ID + Secret
2. Authorize (one-time) → STRAVA_CLIENT_ID=xxx STRAVA_CLIENT_SECRET=xxx \
STRAVA_REDIRECT_URI=http://localhost:3000/auth/callback \
npx mcp-strava-auth
3. Configure Claude → Add to claude_desktop_config.json (see below)
4. Restart Claude → Done! Ask Claude about your workouts1. Create Strava API Application
Visit https://www.strava.com/settings/api and create an application to get your Client ID and Secret.
2. Authorize with Strava (one-time setup)
Run the auth server with your Strava credentials:
STRAVA_CLIENT_ID=your_client_id STRAVA_CLIENT_SECRET=your_client_secret STRAVA_REDIRECT_URI=http://localhost:3000/auth/callback npx mcp-strava-authThen:
Visit
http://localhost:3000/auth/stravain your browserAuthorize on Strava's page
You'll see "Authorization Successful!" when complete
The server shuts down automatically
Tokens and credentials are stored securely in ~/.strava-mcp/tokens.json.
3. Configure Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
open ~/Library/Application\ Support/Claude/Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"strava": {
"command": "npx",
"args": ["-y", "mcp-strava"]
}
}
}4. Restart Claude Desktop
Restart Claude Desktop to load the MCP server.
Manual Setup (Alternative)
If you prefer to clone and build locally:
1. Create Strava API Application
Visit https://www.strava.com/settings/api and create an application to get your Client ID and Secret.
2. Build the Project
git clone https://github.com/adrienlupo/mcp-strava.git
cd mcp-strava
npm install
npm run build3. Authorize with Strava
Run the authorization server with your Strava credentials:
STRAVA_CLIENT_ID=your_client_id STRAVA_CLIENT_SECRET=your_client_secret STRAVA_REDIRECT_URI=http://localhost:3000/auth/callback npm run authThen:
Visit
http://localhost:3000/auth/stravain your browserAuthorize on Strava's page
You'll see "Authorization Successful!" when complete
The server shuts down automatically
4. Configure Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
open ~/Library/Application\ Support/Claude/Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"strava": {
"command": "node",
"args": ["/absolute/path/to/mcp-strava/dist/index.js"]
}
}
}5. Restart Claude Desktop
Restart Claude Desktop to load the MCP server.
Development
npm install
npm run build
npm startLicense
MIT
Available Tools
8 toolsget_activity_detailA
Get activity metadata by ID. Returns: name, description, splits, laps, segment_efforts, gear, calories. segment_efforts contains Strava segments from THIS activity only (no historical data). For segment analysis over time, pass segment_efforts[].id to get_segment_effort_streams. For full activity time-series, use get_activity_streams.
Inputs: activity_id (required).
get_activity_zonesB
Get zone distribution for an activity (heart rate, pace, power). Returns zone boundaries, time in seconds, and percentage per zone. For activity-specific zone analysis with time/ratios.
Inputs: activity_id (required).
get_athlete_profileA
Get authenticated athlete's Strava profile. Returns: name, username, bio, location, weight, premium status, measurement preferences.
Inputs: no named parameters.
get_athlete_statsA
Get aggregated activity statistics by sport type. Returns: recent (4 weeks), YTD, all-time totals for ride/run/swim. Each: count, distance (m), moving_time (s), elevation_gain (m).
Inputs: no named parameters.
get_athlete_zonesA
Get athlete's configured HR and power zones from Strava. Returns: heart_rate.zones[], power.zones[] with min/max for each zone. Requires profile:read_all scope.
Inputs: no named parameters.
get_segment_effort_streamsA
Analyze a Strava segment with full historical comparison. ONE call returns EVERYTHING: segment info, current effort stats, AND comparison with ALL previous attempts (best_time, average_time, total_efforts, rank, previous_efforts list). No need to list_activities - this tool automatically fetches all historical data. Use when user asks about segment history, progress, PRs, or performance over time. Input: segment_effort_id from get_activity_detail's segment_efforts array.
Inputs: segment_effort_id (required).
list_activitiesA
List activities with filtering and pagination. Returns: id, name, type, sport_type, start_date, distance (m), moving_time (s), elapsed_time (s), total_elevation_gain (m), average_speed (m/s), heartrate, watts. Use week_offset for calendar weeks (0=this week, -1=last week). Monday-Sunday.
Inputs: limit, week_offset, before, after, +1 more.
pingA
A simple test tool that verifies the server is running
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose, covering activities, zones, athlete info, segments, and listing. Descriptions provide detailed distinctions, e.g., get_activity_zones vs get_athlete_zones are for activity-specific vs athlete-configured zones.
Almost all tools follow a consistent verb_noun pattern with snake_case (get_*, list_*). 'ping' is a slight outlier but is a common test tool and does not confuse the overall pattern.
8 tools is appropriate for a Strava integration, covering core read operations for activities, athletes, zones, and segments without being overly numerous or sparse.
The tool set covers main read operations, but there is a notable gap: get_activity_detail mentions using get_activity_streams for time-series data, yet that tool is not present. This creates a dead-end for agents. Missing write operations like upload or update activities, but those may be out of scope.
Maintenance
Related MCP Connectors
Garmin data in Claude: 135 tools — activities, sleep, HRV, training, workouts. Free, open source.
Connect Claude to Intervals.icu: review runs, rides, swims and strength, plan training, log sets.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Related MCP Servers
- AlicenseBqualityDmaintenanceConnects Claude to the Strava API to provide direct access to fitness data, including athlete statistics, detailed activity logs, and time-series performance metrics. It enables users to analyze training progress, compare workouts, and retrieve specific segment details through natural language queries.8MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude to Strava data for natural language queries about rides, stats, and activities.8 npmMIT
- AlicenseAqualityDmaintenanceConnects Claude to your Strava account so you can query your activities, stats, routes, and segments using natural language.2722 npm1MIT
- AlicenseAqualityDmaintenanceConnects Strava training data to Claude, enabling personalized coaching through analysis of training load, workout planning, gear maintenance, and power metrics.1068 PyPI1MIT