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 ServerWho 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Anonymous read-only Formula 1 tools, resources, prompts, completion, and interactive dashboard.
- F1LapsOAuthcom.f1laps
Read-only F1 game laps, telemetry, setups, leaderboard benchmarks, and progress.
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 gradedqualityBmaintenanceProvides 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.28 npmMIT