stravamcp
Provides read-only access to a connected Strava account, exposing athlete profiles, stats, and zones; activities with streams and time-in-zone data; saved routes; starred segments and segment efforts; and gear details.
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., "@stravamcpshow me my last 5 Strava rides"
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.
stravamcp
Single-user Strava MCP server on Cloudflare Workers. Connects one Strava account and exposes read-only athlete, activity, route, segment, stream, and gear data through the Model Context Protocol.
Tools
Tool | Description |
| Recent activities with optional sport_type / commute filters |
| Activity detail by id or id_str |
| Time-series streams by key |
| HR and power time-in-zone distribution |
| Compact summary; full arrays stay on the server |
| Connected athlete profile |
| YTD, recent, and all-time totals |
| HR / power zone ranges |
| Saved routes |
| Route detail by id_str |
| Starred segments |
| Segment detail by id |
| Your efforts on a segment |
| Bike / shoe detail by id |
IDs are accepted as strings (id_str) or numbers. Use id_str for routes and any large id to avoid JavaScript 64-bit precision loss.
Related MCP server: Todoist MCP Server
Local setup
Copy the env template and fill in the credentials:
cp .dev.vars.example .dev.varsApply the local D1 migration:
npx wrangler d1 migrations apply stravamcpStart the dev server:
npm run devLocal MCP endpoint: http://localhost:8787/mcp
GET / serves a landing page describing the server and its tools.
Cloudflare deployment
Create a Strava API app at
https://www.strava.com/settings/api.Set the Authorization Callback Domain to your domain, e.g.
stravamcp.didiktrisusanto.dev.Apply the remote migration and secrets:
npx wrangler d1 migrations apply stravamcp --remote
npx wrangler secret put STRAVA_CLIENT_ID
npx wrangler secret put STRAVA_CLIENT_SECRET
npx wrangler secret put MCP_SECRET
npx wrangler secret put SETUP_TOKEN
npx wrangler deployGenerate random secrets with openssl rand -hex 32.
Connect the Strava account once:
https://stravamcp.didiktrisusanto.dev/authorize?token=<SETUP_TOKEN>Use the MCP endpoint with
MCP_SECRET:
{
"url": "https://stravamcp.didiktrisusanto.dev/mcp",
"headers": {
"Authorization": "Bearer <MCP_SECRET>"
}
}Verification
npm run typecheck
npm test
npx wrangler deploy --dry-runCache entries expire by TTL. No write tools or webhooks are enabled.
This server cannot be deployed
Maintenance
Related MCP Connectors
- JotiOAuthcom.kompetic
Read your workouts, history, and stats; create and schedule new workouts. Writes are additive only.
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
Read-only access to your bank, investment, and crypto accounts: balances, transactions, holdings.
Read-only access to your net worth, wealth percentile, projections, splits and budget.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables users to access Strava fitness data, including user activities, activity details, segments, and leaderboards through a structured API interface.34MIT
- AlicenseNot gradedqualityDmaintenanceEnables full management of Todoist accounts, including projects, tasks, sections, and labels, through the Model Context Protocol. It provides a comprehensive set of tools for performing CRUD operations and managing user information via the Todoist API.330 npmMIT
- AlicenseBqualityCmaintenanceA local, read-only Model Context Protocol server for an athlete's Strava profile and activities, enabling retrieval of profile data, activity lists (with paging and date filters), and detailed activity information via standard input/output for MCP hosts.310 npmMIT
- AlicenseAqualityBmaintenanceEnables read-only access to Capital One Nessie API resources such as customers, accounts, transactions, bills, and loans via the Model Context Protocol, using a Nessie API key.9MIT