Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyOther

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

NameWhat it isRequired
STRAVA_CLIENT_IDYour Strava API client IDYes
STRAVA_CLIENT_SECRETYour Strava API client secretYes
STRAVA_ACCESS_TOKENYour Strava API access tokenYes

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

A free Strava API application (Client ID and Client Secret from strava.com/settings/api, with callback domain localhost) and Node.js for npx. You authorize in a browser once.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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/_npx and use @r-huijts/strava-mcp-server

5 new skills a week. 1 minute to read.