data
Strava MCP, CLI, and Lua Integration for AI Agents
Strava integration docs for AI agents: MCP gateway setup, Strava CLI commands, Lua API reference, credentials, and function schemas.Strava for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
strava.strava_get_athlete | Read read | 0 | Get the authenticated athlete's Strava profile: name, location, follower/following counts, and stats. |
strava.strava_get_current_user | Read read | 0 | Get the current authenticated user's Strava profile. This is an alias for strava_get_athlete and returns name, location, follower/following counts, and stats. |
strava.strava_get_athlete_stats | Read read | 1 | Get activity totals and recent statistics for a Strava athlete. |
strava.strava_get_athlete_zones | Read read | 0 | Get heart rate and power zones for the authenticated Strava athlete. |
strava.strava_list_activities | Read read | 4 | List recent activities for the authenticated Strava athlete. Supports pagination and date filtering with before/after Unix timestamps. |
strava.strava_get_activity | Read read | 1 | Get detailed information about a specific Strava activity, including distance, pace, elevation, and splits. |
strava.strava_create_activity | Write write | 8 | Create a manual activity on Strava. Requires a name, activity type, start date, and elapsed time in seconds. |
strava.strava_update_activity | Write write | 2 | Update editable fields on a Strava activity, such as name, type, sport_type, description, commute, trainer, or privacy. |
strava.strava_get_activity_streams | Read read | 4 | Get activity stream data such as time, distance, latlng, altitude, velocity_smooth, heartrate, cadence, watts, temp, moving, or grade_smooth. |
strava.strava_list_activity_laps | Read read | 1 | List laps for a Strava activity. |
strava.strava_get_activity_zones | Read read | 1 | Get heart rate and power zone distribution for a Strava activity when available. |
strava.strava_upload_activity | Write write | 7 | Upload a FIT, TCX, or GPX file to create a Strava activity for asynchronous processing. |
strava.strava_get_upload | Read read | 1 | Get processing status for a Strava activity upload. |
strava.strava_list_clubs | Read read | 2 | List clubs the authenticated Strava athlete belongs to. Returns club names, member counts, and sport types. |
strava.strava_get_club | Read read | 1 | Get details about a specific Strava club, including name, description, member count, and sport types. |
strava.strava_list_club_activities | Read read | 3 | List recent activities from members of a Strava club the authenticated athlete belongs to. |
strava.strava_list_club_members | Read read | 3 | List athletes who are members of a Strava club. |
strava.strava_list_routes | Read read | 3 | List routes created by a specific Strava athlete. Requires the athlete ID. |
strava.strava_get_route | Read read | 1 | Get details for a Strava route by ID. |
strava.strava_export_route | Read read | 2 | Export a Strava route as GPX or TCX. |
strava.strava_get_route_streams | Read read | 1 | Get route stream coordinates and elevation data for a Strava route. |
strava.strava_list_starred_segments | Read read | 2 | List starred segments for the authenticated Strava athlete. |
strava.strava_get_segment | Read read | 1 | Get details for a Strava segment by ID. |
strava.strava_star_segment | Write write | 2 | Star or unstar a Strava segment for the authenticated athlete. |
strava.strava_explore_segments | Read read | 4 | Explore top Strava segments in a bounding box. |
strava.strava_list_segment_efforts | Read read | 5 | List efforts for the authenticated athlete on a Strava segment. |
strava.strava_get_segment_effort | Read read | 1 | Get a Strava segment effort by ID. |
strava.strava_get_segment_streams | Read read | 4 | Get stream data for a Strava segment. |
strava.strava_api_get | Read read | 2 | Call a relative Strava API GET path, such as "/athlete". Absolute URLs are rejected. |
strava.strava_api_post | Write write | 2 | Call a relative Strava API POST path. Absolute URLs are rejected. |
strava.strava_api_put | Write write | 2 | Call a relative Strava API PUT path. Absolute URLs are rejected. |
strava.strava_api_delete | Write write | 2 | Call a relative Strava API DELETE path. Absolute URLs are rejected. |