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
| Name | Type | Required | Description |
|---|---|---|---|
year | number | no | Season year, e.g. 2024. |
country_name | string | no | Host country, e.g. “Bahrain”. |
session_name | string | no | e.g. ‘Race’, ‘Qualifying’, ‘Practice 1’. |
meeting_key | number | no | Restrict to one Grand Prix weekend (from get_meetings). |
Example call
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":{}}}'
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.