get_sessions

Pack: openf1 · Endpoint: https://gateway.pipeworx.io/openf1/mcp

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, or use one-click install buttons:

{
  "mcpServers": {
    "openf1": {
      "url": "https://gateway.pipeworx.io/openf1/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 4, 2026