get_laps
Pack: openf1 · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_laps for the schema, then POST the same URL with its arguments for the data.
Lap times / telemetry for an F1 session: per-lap duration, sector times, speed-trap, pit-out flag. Live race data. session_key=“latest” for the most recent / ongoing session. Optionally filter by driver_number or lap_number.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_key | number,string | yes | Session key, or ‘latest’ for the most recent session. Required. |
driver_number | number | no | Restrict to a single driver, e.g. 1, 44. |
lap_number | number | no | Restrict to a single lap. |
Example call
Arguments
{
"session_key": "latest"
}
curl
curl -X POST https://gateway.pipeworx.io/openf1/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_laps","arguments":{"session_key":"latest"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_laps', {
"session_key": "latest"
});
More examples
{
"session_key": 9876,
"driver_number": 1,
"lap_number": 5
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the openf1 pack
{
"mcpServers": {
"openf1": {
"url": "https://gateway.pipeworx.io/openf1/mcp"
}
}
}
See Getting Started for client-specific install steps.