OpenF1 MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenF1 MCP Server Who won the 2025 São Paulo GP and how many positions did each driver gain?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openf1-mcp
MCP server for the OpenF1 API — Formula 1 timing, telemetry and session data from 2023 onwards.
TypeScript, stdio transport, read-only. Team radio is not included (F1 decreased radio coverage in 2026).
Tools
Discovery
Tool | Use |
| Find Grand Prix weekends → |
| Find practice / qualifying / sprint / race → |
| Map driver numbers to names and teams |
Data (one tool for each endpoint)
get_session_result, get_starting_grid, get_laps, get_stints, get_pit, get_position, get_intervals, get_overtakes, get_race_control, get_weather, get_championship_drivers, get_championship_teams, get_car_data, get_location.
Composite
Tool | Result |
| Classification with names, teams, grid, positions gained, status (DNF/DNS/DSQ) |
| Compound sequence, stint lengths and pit stops for each driver |
| Fastest lap, sectors, speeds, theoretical best lap and delta for 2–10 drivers |
All tools accept "latest" for session_key / meeting_key.
Common arguments
Typed parameters – equality filters such as
session_key,driver_number(one number or a list),lap_number.filters– comparison filters:[{"field":"lap_duration","op":"<","value":90}]. The server checks the field names.date_from/date_to– time range (UTC, ISO 8601) for endpoints with adateattribute.fields– return only these attributes.limit– maximum records (default 200, max 1000).
Size control
Large results do not go to the model in full:
Results above
limitare sampled evenly for time series (or cut for other data) and get a summary (min / max / avg of numeric fields and first / last date) computed on all records.get_car_dataandget_location(~3.7 Hz) needsession_key, onedriver_number, and alap_numberor a date range of 10 minutes or less. Withlap_number, the server finds the start and end of the lap for you.
Reliability
Cache: 6 h for historical data, 10 min for the calendar, 10 s for
latestqueries.Requests are spaced (350 ms) and retried on HTTP 429 / 5xx.
"No results found" (HTTP 404) is returned as an empty list with a hint.
Errors go back to the model as
isErrorresults with a clear message.
Related MCP server: OpenF1 MCP Server
Install
Node.js 20 or later.
npm install
npm run build
npm test # unit + MCP protocol tests (no network)
npm run smoke # tests against the real OpenF1 APIClaude Code
claude mcp add openf1 -- node /absolute/path/openf1-mcp/dist/index.jsClaude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"openf1": {
"command": "node",
"args": ["/absolute/path/openf1-mcp/dist/index.js"]
}
}
}MCP Inspector
npm run inspectConfiguration
Variable | Default | Description |
| – | Bearer token for the paid real-time tier. Historical data needs no token. |
|
| API base URL. |
|
| Minimum time between requests. |
|
| Default record limit. |
Example prompts
"Who won the 2025 São Paulo GP and how many positions did each driver gain?"
"Compare the tyre strategies of Norris and Piastri in the last race."
"Show the speed and throttle of Verstappen on lap 10 of the latest race."
"Were there safety cars in the 2025 Brazil race? On which laps?"
Project structure
src/
index.ts stdio entry point, server instructions, env config
endpoints.ts endpoint catalog (parameters, attributes, guards)
client.ts HTTP client: query builder, cache, throttle, retry
shape.ts projection, limit, sampling, numeric summary
tools.ts tool registration, telemetry guards, composite tools
test/ vitest suite with a fake API
scripts/smoke.ts real API checkNotes
OpenF1 is an unofficial project and is not associated with the Formula 1 companies. F1 and related marks are trademarks of Formula One Licensing B.V.
Available Tools
20 toolscompare_fastest_lapsCompare fastest lapsARead-onlyIdempotent
Compare the fastest lap of 2 to 10 drivers in a session: lap time, sectors, speeds, best sectors, theoretical best lap and delta to the fastest driver.
Inputs: session_key (required), driver_number (required).
get_car_dataCar telemetryARead-onlyIdempotent
Car telemetry at about 3.7 Hz: speed, RPM, gear, throttle, brake, DRS. VERY large data: you must give session_key, ONE driver_number and a lap_number or a date range (max 10 minutes).
Inputs: limit, fields, date_to, filters, +4 more.
get_championship_driversDrivers championship (beta)ARead-onlyIdempotent
Drivers championship points and position before and after a race. Race sessions only.
Inputs: limit, fields, filters, meeting_key, +2 more.
get_championship_teamsTeams championship (beta)ARead-onlyIdempotent
Teams championship points and position before and after a race. Race sessions only.
Inputs: limit, fields, filters, team_name, +2 more.
get_driversDriversBRead-onlyIdempotent
Driver details for a session: name, acronym, team, team colour, headshot URL.
Inputs: limit, fields, filters, team_name, +4 more.
get_intervalsIntervalsBRead-onlyIdempotent
Gap to the car ahead and gap to the leader during a race (about every 4 s). Large data: filter by driver and time.
Inputs: limit, fields, date_to, filters, +4 more.
get_lapsLapsBRead-onlyIdempotent
Lap data: lap time, sector times, intermediate and speed-trap speeds, pit-out flag, mini-sector segments (segments are not available in races).
Inputs: limit, fields, filters, lap_number, +4 more.
get_locationCar locationARead-onlyIdempotent
Approximate car position on track (x, y, z) at about 3.7 Hz. VERY large data: you must give session_key, ONE driver_number and a lap_number or a date range (max 10 minutes).
Inputs: limit, fields, date_to, filters, +4 more.
get_meetingsMeetings (Grand Prix weekends)ARead-onlyIdempotent
Find meetings (Grand Prix or testing weekends). Use this first to get a meeting_key. Data starts in 2023.
Inputs: year, limit, fields, filters, +4 more.
get_overtakesOvertakesARead-onlyIdempotent
Position exchanges between two drivers in a race (on track, pit stops or penalties). Data can be incomplete.
Inputs: limit, fields, date_to, filters, +6 more.
get_pitPit laneBRead-onlyIdempotent
Pit lane passages: lap, time in pit lane (lane_duration) and stationary stop time (stop_duration, from the 2024 US GP onwards).
Inputs: limit, fields, date_to, filters, +5 more.
get_positionPosition changesBRead-onlyIdempotent
Driver position during a session: the initial position and each change.
Inputs: limit, fields, date_to, filters, +5 more.
get_race_controlRace controlBRead-onlyIdempotent
Race control messages: flags, safety car, DRS, penalties, track limits, session status.
Inputs: flag, limit, scope, fields, +8 more.
get_race_summaryRace summaryARead-onlyIdempotent
Classification of a session with driver names, teams, grid position, positions gained, laps, gap and status (DNF/DNS/DSQ). Works for races, sprints, qualifying and practice.
Inputs: session_key (required).
get_session_resultSession resultARead-onlyIdempotent
Final standings of a session (position, laps, duration, gap, DNF/DNS/DSQ). In qualifying, duration and gap_to_leader are arrays for Q1, Q2, Q3.
Inputs: limit, fields, filters, position, +3 more.
get_sessionsSessionsARead-onlyIdempotent
Find sessions (practice, qualifying, sprint, race). Use this to get a session_key, which most other tools need.
Inputs: year, limit, fields, filters, +6 more.
get_starting_gridStarting gridBRead-onlyIdempotent
Starting grid of a race, with the qualifying lap time of each driver.
Inputs: limit, fields, filters, position, +3 more.
get_stintsStintsCRead-onlyIdempotent
Tyre stints: compound, first and last lap, tyre age at the start of the stint.
Inputs: limit, fields, filters, compound, +4 more.
get_tyre_strategyTyre strategyBRead-onlyIdempotent
Tyre strategy for each driver in a session: compound sequence, stint lengths and pit stops.
Inputs: session_key (required), driver_number.
get_weatherWeatherBRead-onlyIdempotent
Track weather each minute: air and track temperature, humidity, pressure, rain, wind.
Inputs: limit, fields, date_to, filters, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Several tools overlap in practice: get_session_result and get_race_summary both return session classifications/standings, while get_stints and get_tyre_strategy both expose tyre-stint information. get_pit also partially overlaps with get_tyre_strategy because strategy includes pit stops. Descriptions help, but an agent could still misselect among these related tools.
All tool names follow a clear snake_case verb_noun pattern, with get_* used for the vast majority and compare_fastest_laps as a natural action-specific variant. There is no mixing of camelCase, vague names, or inconsistent structural conventions.
Twenty tools is slightly heavy, but the F1 data domain is broad and each tool maps to a recognizable data type or analysis operation. The count is reasonable for the scope, though some redundancy among result, tyre, and pit tools keeps it from being perfectly scoped.
The surface covers the core F1 workflow very well: meetings, sessions, drivers, results, championships, laps, stints, pits, positions, intervals, race control, weather, telemetry, location, and fastest-lap comparison. Minor gaps remain, such as no explicit team-radio tool and no standalone teams endpoint beyond championship context.
Related MCP Connectors
Anonymous read-only Formula 1 tools, resources, prompts, completion, and interactive dashboard.
Read-only F1 game laps, telemetry, setups, leaderboard benchmarks, and progress.
AI race engineer for sim racing (Automobilista 2, Assetto Corsa, Assetto Corsa Competizione, Assetto Corsa Evo, RaceRoom). Provides telemetry analysis, braking diagnostics, and leaderboards. Connected via public demo by default. Get your free personal token at [https://flowix.com](https://flowix.com) to analyze your own laps.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive Formula 1 data access including race schedules, session results, lap times, telemetry data, driver/constructor standings, and circuit information. Enables users to retrieve and analyze F1 racing data through natural language queries using the FastF1 Python package.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables access to Formula 1 data from the openF1.org API, including driver information, race results, lap times, telemetry, pit stops, weather conditions, and live position data across multiple seasons.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query real-time and historical Formula 1 data through the OpenF1 API, providing tools for driver info, lap times, telemetry, race events, and more.MIT

mcp-f1official
AlicenseNot gradedqualityCmaintenanceProvides Formula 1 data via the Ergast API, enabling users to check current standings, get race results, view the season schedule, and look up driver profiles.57 npmMIT