About r-huijts/strava-mcp
r-huijts/strava-mcp is an MCP server published by r-huijts in the Developer Tools category: a Model Context Protocol (MCP) server that connects to Strava API, providing tools to access Strava data through LLMs. Conduid read 22 tools from its source: check-strava-connection, connect-strava, disconnect-strava, explore-segments, export-route-gpx, export-route-tcx and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 509 stars and 99 forks, is licensed MIT, and its last commit was on 13 Jun 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/r-huijts/strava-mcpTools (22)
check-strava-connectionCheck if Strava is connected and show the current connection status. Use this when the user asks about their connection status.connect-stravaConnect your Strava account to enable activity tracking. This will open a browser window for secure authentication. Use this when the user asks to connect, link, or authenticate their Strava account.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Force re-authentication even if already connected |
disconnect-stravaDisconnect your Strava account and remove stored credentials. Use this when the user wants to logout, disconnect, or remove their Strava connection.explore-segmentsSearches for popular segments within a given geographical area.| Parameter | Type | Description |
|---|---|---|
| activityType | string | Filter segments by activity type (optional: 'running' or 'riding'). |
| bounds * | string | The geographical area to search, specified as a comma-separated string: south_west_lat,south_west_lng,north_east_lat,north_east_lng |
| maxCat | number | Filter by maximum climb category (optional, 0-5). Requires riding activityType. |
| minCat | number | Filter by minimum climb category (optional, 0-5). Requires riding activityType. |
export-route-gpxExports a specific Strava route in GPX format and saves it to a pre-configured local directory.| Parameter | Type | Description |
|---|---|---|
| routeId * | string | The ID of the Strava route to export. |
export-route-tcxExports a specific Strava route in TCX format and saves it to a pre-configured local directory.| Parameter | Type | Description |
|---|---|---|
| routeId * | string | The ID of the Strava route to export. |
format-workout-fileFormats a workout plan into a structured file format (currently supports Zwift .zwo)| Parameter | Type | Description |
|---|---|---|
| format | string | Output format (currently only 'zwo' is supported) |
| workoutText * | string | The workout plan text in the specified format |
get-activity-detailsFetches detailed information about a specific activity using its ID.| Parameter | Type | Description |
|---|---|---|
| activityId * | number | The unique identifier of the activity to fetch details for. |
get-all-activitiesFetches complete activity history with optional filtering by date range and activity type. Supports pagination to retrieve all activities.| Parameter | Type | Description |
|---|---|---|
| activityTypes | array | Array of activity types to filter (e.g., ['Run', 'Ride']) |
| endDate | string | ISO date string for activities before this date (e.g., '2024-12-31') |
| maxActivities | number | Maximum activities to return after filtering (default: 500) |
| maxApiCalls | number | Maximum API calls to prevent quota exhaustion (default: 10 = ~2000 activities) |
| perPage | number | Activities per API call (default: 200, max: 200) |
| sportTypes | array | Array of sport types for granular filtering (e.g., ['MountainBikeRide', 'TrailRun']) |
| startDate | string | ISO date string for activities after this date (e.g., '2024-01-01') |
get-athlete-profileFetches the profile information for the authenticated athlete, including their unique numeric ID needed for other tools like get-athlete-stats.get-athlete-shoesFetches the authenticated athlete's shoes from Strava, including usage distance and primary flag.get-athlete-statsFetches the activity statistics (recent, YTD, all-time) for a specific athlete using their ID. Requires the athleteId obtained from the get-athlete-profile tool.| Parameter | Type | Description |
|---|---|---|
| athleteId * | number | The unique identifier of the athlete to fetch stats for. Obtain this ID first by calling the get-athlete-profile tool. |
get-recent-activitiesFetches the most recent activities for the authenticated athlete.| Parameter | Type | Description |
|---|---|---|
| perPage | number | Number of activities to retrieve (default: 30) |
get-routeFetches detailed information about a specific route using its ID.| Parameter | Type | Description |
|---|---|---|
| routeId * | string | The unique identifier of the route to fetch. |
get-segmentFetches detailed information about a specific segment using its ID.| Parameter | Type | Description |
|---|---|---|
| segmentId * | number | The unique identifier of the segment to fetch. |
get-segment-effortFetches detailed information about a specific segment effort using its ID.| Parameter | Type | Description |
|---|---|---|
| effortId * | number | The unique identifier of the segment effort to fetch. |
get-server-versionReturns the Strava MCP server version and related metadata.list-athlete-clubsLists the clubs the authenticated athlete is a member of.list-athlete-routesLists the routes created by the authenticated athlete, with pagination.| Parameter | Type | Description |
|---|---|---|
| page | number | Page number for pagination |
| perPage | number | Number of routes per page (max 50) |
list-segment-effortsLists the authenticated athlete's efforts on a specific segment, optionally filtering by date.| Parameter | Type | Description |
|---|---|---|
| endDateLocal | string | Filter efforts ending before this ISO 8601 date-time (optional). |
| perPage | number | Number of efforts to return per page (default: 30, max: 200). |
| segmentId * | number | The ID of the segment for which to list efforts. |
| startDateLocal | string | Filter efforts starting after this ISO 8601 date-time (optional). |
list-starred-segmentsLists the segments starred by the authenticated athlete.star-segmentStars or unstars a specific segment for the authenticated athlete.| Parameter | Type | Description |
|---|---|---|
| segmentId * | number | The unique identifier of the segment to star or unstar. |
| starred * | boolean | Set to true to star the segment, false to unstar it. |
Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 34 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/server.ts:3
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 8 callssrc/auth/server.ts:135, src/stravaClient.ts:6, src/stravaClient.ts:350
- Writes or deletes files
- 8 callssrc/config.ts:22, src/config.ts:50, src/config.ts:128
- Lockfile
- package-lock.json
Pattern matches on the source text of 34 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.8K words, fetched 4 days ago. The original in the repository is authoritative.
Read full README