Strava MCP Server
Provides tools for interacting with Strava's official API, enabling OAuth authorization, connection checks, athlete profile retrieval, activity listing and details, and activity stream access.
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., "@Strava MCP Server show me my last 5 Strava activities"
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
Minimal Model Context Protocol server for Strava.
This project connects to Strava using OAuth and exposes athlete/activity tools over MCP stdio transport.
Strava API Notes
This implementation uses Strava's official APIs:
Authorization URL:
https://www.strava.com/oauth/authorizeToken exchange / refresh:
POST https://www.strava.com/oauth/tokenAPI base:
https://www.strava.com/api/v3
Core endpoints used:
GET /athleteGET /athlete/activitiesGET /activities/{id}GET /activities/{id}/streams
Docs:
Related MCP server: FastMCP Remote Proxy
Exposed MCP Tools
strava_get_authorize_urlstrava_check_connectionstrava_get_athletestrava_list_activitiesstrava_get_activitystrava_get_activity_streams
Prerequisites
Node.js 20+
A Strava API application (create one here)
Setup
cp .env.example .env
npm installSet required values in .env:
STRAVA_CLIENT_IDSTRAVA_CLIENT_SECRETSTRAVA_REFRESH_TOKEN(recommended), orSTRAVA_ACCESS_TOKEN+STRAVA_EXPIRES_AT
To get a refresh token for the first time:
Use
strava_get_authorize_urland open the URL.Approve scopes and copy the returned
codequery parameter.Exchange code for tokens:
curl -X POST https://www.strava.com/oauth/token \
-d client_id="$STRAVA_CLIENT_ID" \
-d client_secret="$STRAVA_CLIENT_SECRET" \
-d code="AUTHORIZATION_CODE" \
-d grant_type="authorization_code"Development
npm run devBuild + Run
npm run build
npm startUse with Codex CLI
Build the server:
npm run buildAdd this MCP server to Codex:
codex mcp add strava \
--env STRAVA_CLIENT_ID=YOUR_CLIENT_ID \
--env STRAVA_CLIENT_SECRET=YOUR_CLIENT_SECRET \
--env STRAVA_REFRESH_TOKEN=YOUR_REFRESH_TOKEN \
-- node /absolute/path/to/strava-mcp/dist/index.jsVerify configuration:
codex mcp list
codex mcp get stravaRemove it later if needed:
codex mcp remove stravaUse with another MCP client
Example MCP server config:
{
"mcpServers": {
"strava": {
"command": "node",
"args": ["/absolute/path/to/strava-mcp/dist/index.js"],
"env": {
"STRAVA_CLIENT_ID": "YOUR_CLIENT_ID",
"STRAVA_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"STRAVA_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN"
}
}
}
}Create GitHub Project
From the strava-mcp folder:
git init
git add .
git commit -m "Initial Strava MCP server"
gh repo create strava-mcp --public --source=. --remote=origin --pushIf you do not use GitHub CLI:
Create an empty repo in GitHub UI.
Add remote and push:
git remote add origin git@github.com:<your-org-or-user>/strava-mcp.git
git branch -M main
git push -u origin mainAvailable Tools
6 toolsstrava_check_connectionA
Check authentication by retrieving the authenticated athlete profile.
Inputs: no named parameters.
strava_get_activityC
Get detailed information for a specific activity ID.
Inputs: activity_id (required).
strava_get_activity_streamsC
Get detailed stream data for a specific activity.
Inputs: activity_id (required), keys, resolution, key_by_type, +1 more.
strava_get_athleteA
Get the authenticated athlete profile from Strava.
Inputs: no named parameters.
strava_get_authorize_urlB
Generate a Strava OAuth authorization URL for initial user consent.
Inputs: redirect_uri (required), scope, state.
strava_list_activitiesC
List recent athlete activities using Strava pagination.
Inputs: page, after, before, per_page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools target distinct operations (auth URL, activity list, activity detail, streams). However, strava_check_connection and strava_get_athlete both retrieve the authenticated athlete profile, creating genuine overlap an agent could misselect between. The descriptions hint at the difference (auth validation vs. profile fetch) but the boundary is fuzzy.
All six tools follow a consistent snake_case strava_verb_noun pattern with a uniform server prefix. Verb choices (get, list, check) are predictable and readable.
Six tools is well-scoped for a focused Strava read integration; each tool earns its place with no filler. The surface is compact and coherent.
Read coverage is solid (auth, profile, list/detail activities, streams) but the surface is entirely read-only — no activity upload, update, deletion, athlete stats, or segment endpoints. These are notable gaps for a Strava integration, though agents can still accomplish common read workflows.
Maintenance
Related MCP Connectors
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceBridges local stdio MCP clients like Codex and OpenCode to Strava's official MCP endpoint, enabling Strava data access via imported OAuth credentials from Claude Code without a developer app.35 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables local MCP clients to access tools from a remote FastMCP server over stdio, handling OAuth authentication and Streamable HTTP communication.-
- AlicenseNot gradedqualityCmaintenanceEnables read-only access to Garmin Connect health, activity, profile, and device data through local stdio or streamable HTTP transports for MCP clients.MIT
- AlicenseAqualityCmaintenanceEnables an MCP client to search, read, download, create, edit, organize, trash, untrash, and share files in a single Google Drive account over stdio using your own Google OAuth client.17MIT