Strava MCP Server
Lets your AI agent read your Strava activities, stats, segments and routes, and export routes as GPX or TCX.
503 stars on GitHubby r-huijtsLicense MITUpdated 5 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add strava -e STRAVA_CLIENT_ID="<your value>" -e STRAVA_CLIENT_SECRET="<your value>" -e STRAVA_ACCESS_TOKEN="<your value>" -- npx -y strava-mcp-server
What to fill in
| Name | What it is | Required |
|---|---|---|
STRAVA_CLIENT_ID | Your Strava API client ID | Yes |
STRAVA_CLIENT_SECRET | Your Strava API client secret | Yes |
STRAVA_ACCESS_TOKEN | Your Strava API access token | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
How many kilometers did I run this month?
Analyze my last cycling workout and show power and heart rate
What it is
This server connects your AI agent to your Strava account through the Strava API. You can ask about distances, workouts, heart rate and power, segments and training zones in plain words. It can also star segments, export routes and turn a workout into a Zwift file.
What it can do
- Connect, check and disconnect your Strava account
- List activities and get one in detail, with laps
- Activity streams such as heart rate, in a compact format
- Athlete profile, shoes and training zones
- Running and cycling stats and totals
- Segments: starred, nearby, details, efforts, star one
- Routes: list, details, export as GPX or TCX
- Clubs, and workout export as a Zwift .zwo file
When to use
- βΊWhen you want to know how far you ran or rode this month
- βΊWhen you want a detailed breakdown of one workout with power and heart rate
- βΊWhen you want to export a saved route to a GPS device
What you need
npx. You authorize in a browser once.Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
fitness-analyzerLets your agent analyze exercise data. It identifies patterns, assesses progress, and suggests personalized workouts, even linking with chronic disease data.strava-automationHelps your agent automate tasks on Strava. It can interact with the platform for you.implementing-network-traffic-analysis-with-arkimeHelps your agent analyze recorded network traffic to investigate suspicious activities and find evidence of attacks.Frequently asked questions
Is it free and open source?
The readme says it is MIT licensed and that creating a Strava API app is free.
How do I log in?
Ask your agent to connect your Strava account. A browser page opens for your Client ID and Secret and Strava's authorization.
Where are my credentials stored?
Locally in ~/.config/strava-mcp/config.json. You can also use environment variables, which take priority.
Do tokens expire?
The server refreshes expired tokens automatically and saves the new ones.
How many tools are there?
The readme says 25 tools for the Strava API v3.
Which clients work?
Claude Desktop and Claude Code are shown in the readme.
If it does not work
- βΊIf no browser opens when you connect, check for errors in Claude and make sure port 8111 is not blocked by a firewall
- βΊIf you see authentication failed, connect again and check your app at strava.com/settings/api
- βΊAfter a package name change, clear the npx cache with
rm -rf ~/.npm/_npxand use@r-huijts/strava-mcp-server
5 new skills a week. 1 minute to read.