Skip to main content
Glama

Strava MCP Server

by r-huijts

get-activity-laps

Retrieve detailed lap data for a Strava activity, including timestamps, speeds, and performance metrics. Use it to analyze, compare, or visualize activity-specific lap information for insights.

Instructions

Retrieves detailed lap data for a specific Strava activity.

Use Cases:

  • Get complete lap data including timestamps, speeds, and metrics
  • Access raw values for detailed analysis or visualization
  • Extract specific lap metrics for comparison or tracking

Parameters:

  • id (required): The unique identifier of the Strava activity.

Output Format: Returns both a human-readable summary and complete JSON data for each lap, including:

  1. A text summary with formatted metrics
  2. Raw lap data containing all fields from the Strava API:
    • Unique lap ID and indices
    • Timestamps (start_date, start_date_local)
    • Distance and timing metrics
    • Speed metrics (average and max)
    • Performance metrics (heart rate, cadence, power if available)
    • Elevation data
    • Resource state information
    • Activity and athlete references

Notes:

  • Requires activity scope for public/followers activities, activity:read_all for private activities
  • Returns complete data as received from Strava API without omissions
  • All numeric values are preserved in their original precision

Input Schema

NameRequiredDescriptionDefault
idYesThe identifier of the activity to fetch laps for.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "id": { "description": "The identifier of the activity to fetch laps for.", "type": [ "number", "string" ] } }, "required": [ "id" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r-huijts/strava-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server