get_sessions

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_sessions for the schema, then POST the same URL with its arguments for the data.

List F1 sessions (a Race, Qualifying, or Practice within a Grand Prix weekend). Use to find the session_key needed for drivers/laps. Filter by year, country, session_name (“Race”,“Qualifying”,“Practice 1”), or meeting_key.

Parameters

NameTypeRequiredDescription
yearnumbernoSeason year, e.g. 2024.
country_namestringnoHost country, e.g. “Bahrain”.
session_namestringnoe.g. ‘Race’, ‘Qualifying’, ‘Practice 1’.
meeting_keynumbernoRestrict to one Grand Prix weekend (from get_meetings).

Example call

Arguments

{
  "year": 2024,
  "session_name": "Race"
}

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_sessions","arguments":{"year":2024,"session_name":"Race"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_sessions', {
  "year": 2024,
  "session_name": "Race"
});

More examples

{
  "meeting_key": 1234,
  "session_name": "Qualifying"
}

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.

Regenerated from source · build October 19, 2026