MCP Sport
v0.1.0MCP server that exposes Formula 1 data from the OpenF1 API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_drivers Get Drivers
Fetch F1 drivers from OpenF1, filtered by session, meeting or identity fields.
| Parameter | Type | Description |
|---|---|---|
country_code | str — optional, 3 letters, normalized to uppercase. Deprecated by OpenF1 (removed after the 2026 season). | |
driver_number | int — optional, 1-99. Driver number for the season. | |
first_name | str — optional, 1-100 chars. Driver first name. | |
full_name | str — optional, 1-200 chars. Driver full name. | |
last_name | str — optional, 1-100 chars. Driver last name. | |
meeting_key | int | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier. | |
name_acronym | str — optional, exactly 3 letters (e.g., VER). Normalized to uppercase. | |
session_key | int | str — optional, positive int or 'latest'. Session identifier; 'latest' targets the current/most recent session. | |
team_name | str — optional, 1-100 chars. Team name. |
get_sessions Get Sessions
Fetch F1 sessions (practice, qualifying, sprint, race) from OpenF1.
| Parameter | Type | Description |
|---|---|---|
circuit_key | int — optional, positive int. Circuit identifier. | |
country_name | str — optional, 1-100 chars, e.g., 'Belgium'. | |
location | str — optional, 1-100 chars, e.g., 'Spa-Francorchamps'. | |
meeting_key | int | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier. | |
session_key | int | str — optional, positive int or 'latest'. Session identifier; 'latest' targets the current/most recent session. | |
session_name | str — optional, e.g., 'Practice 1', 'Qualifying', 'Race'. | |
session_type | str — optional, e.g., 'Practice', 'Qualifying', 'Race'. | |
year | int — optional, >= 2023 (OpenF1 data starts in 2023). |
get_meetings Get Meetings
Fetch F1 meetings (Grand Prix or testing weekends) from OpenF1.
| Parameter | Type | Description |
|---|---|---|
circuit_key | int — optional, positive int. Circuit identifier. | |
country_name | str — optional, 1-100 chars, e.g., 'Singapore'. | |
location | str — optional, 1-100 chars, e.g., 'Marina Bay'. | |
meeting_key | int | str — optional, positive int or 'latest'. Meeting identifier; 'latest' targets the current/most recent meeting. | |
meeting_name | str — optional, 1-100 chars, e.g., 'Singapore Grand Prix'. | |
year | int — optional, >= 2023 (OpenF1 data starts in 2023). |
get_session_results Get Session Results
Fetch the final classification of an F1 session from OpenF1. Results become available a few minutes after the official results are published on the Formula 1 website. If the API returns HTTP 404, the results are not yet published for that session — retry with an earlier session_key (use get_sessions to find completed sessions).
| Parameter | Type | Description |
|---|---|---|
driver_number | int — optional, 1-99. Driver number for the season. | |
position | int — optional, >= 1. Final position in the session. | |
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_starting_grid Get Starting Grid
Fetch the starting grid for an F1 race from OpenF1. Grid data becomes available a few minutes after the official results are published on the Formula 1 website. If the API returns HTTP 404, the grid is not yet published for that session — retry with an earlier session_key (use get_sessions to find completed sessions).
| Parameter | Type | Description |
|---|---|---|
driver_number | int — optional, 1-99. Driver number for the season. | |
position | int — optional, >= 1. Position on the grid. | |
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_positions Get Positions
Fetch driver position changes throughout an F1 session from OpenF1.
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — optional, 1-99. Driver number for the season. | |
meeting_key | int | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier. | |
position | int — optional, >= 1. Exact position (do not combine with position_min/max). | |
position_max | ||
position_min | ||
session_key | int | str — optional, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_laps Get Laps
Fetch detailed lap-by-lap data for an F1 session from OpenF1.
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — optional, 1-99. Driver number for the season. | |
duration_sector_1_max | ||
duration_sector_1_min | ||
duration_sector_2_max | ||
duration_sector_2_min | ||
duration_sector_3_max | ||
duration_sector_3_min | ||
i1_speed_max | ||
i1_speed_min | ||
i2_speed_max | ||
i2_speed_min | ||
lap_duration_max | ||
lap_duration_min | ||
lap_number | int — optional, >= 1. Exact lap number (do not combine with lap_number_min/max). | |
lap_number_max | ||
lap_number_min | ||
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
st_speed_max | ||
st_speed_min |
get_pit_stops Get Pit Stops
Fetch pit lane passes for an F1 session from OpenF1.
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — optional, 1-99. Driver number for the season. | |
lane_duration_max | ||
lane_duration_min | ||
lap_number | int — optional, >= 1. Exact lap of the stop (do not combine with lap_number_min/max). | |
lap_number_max | ||
lap_number_min | ||
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_stints Get Stints
Fetch tyre stints (periods of continuous driving) from OpenF1.
| Parameter | Type | Description |
|---|---|---|
compound | str — optional, 1-20 chars, e.g., 'SOFT', 'MEDIUM', 'HARD'. Normalized to uppercase. | |
driver_number | int — optional, 1-99. Driver number for the season. | |
lap_end_max | ||
lap_end_min | ||
lap_start_max | ||
lap_start_min | ||
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
stint_number | int — optional, >= 1. Sequential stint number. | |
tyre_age_at_start_max | ||
tyre_age_at_start_min |
get_intervals Get Intervals
Fetch real-time gaps between drivers and to the race leader from OpenF1. Available during races only, with updates approximately every 4 seconds. Use date_from/date_to to bound the response (e.g., the closing laps).
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — optional, 1-99. Driver number for the season. | |
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_race_control Get Race Control
Fetch race control events (flags, safety car, incidents) from OpenF1.
| Parameter | Type | Description |
|---|---|---|
category | str — optional, e.g., 'SessionStatus', 'CarEvent', 'Drs', 'Flag', 'SafetyCar'. | |
date_from | ||
date_to | ||
driver_number | int — optional, 1-99. Driver number for the season. | |
flag | str — optional, 1-50 chars, e.g., 'YELLOW', 'BLACK AND WHITE'. Normalized to uppercase. | |
lap_number_max | ||
lap_number_min | ||
scope | str — optional, e.g., 'Track', 'Driver', 'Sector'. | |
session_key | int | str — optional, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_weather Get Weather
Fetch weather conditions over the track from OpenF1 (sampled every minute).
| Parameter | Type | Description |
|---|---|---|
air_temperature_max | ||
air_temperature_min | ||
date_from | ||
date_to | ||
humidity_max | ||
humidity_min | ||
meeting_key | int | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier. | |
rainfall_max | ||
rainfall_min | ||
session_key | int | str — optional, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
track_temperature_max | ||
track_temperature_min | ||
wind_speed_max | ||
wind_speed_min |
get_overtakes Get Overtakes
Fetch overtakes during F1 races from OpenF1. Covers on-track passes and position changes from pit stops or post-race penalties. Only available during races and may be incomplete.
| Parameter | Type | Description |
|---|---|---|
overtaken_driver_number | int — optional, 1-99. The passed driver. | |
overtaking_driver_number | int — optional, 1-99. The attacking driver. | |
position | int — optional, >= 1. Position of the overtaking driver after the overtake. | |
session_key | int | str — required in practice, positive int or 'latest'. Race session identifier; use get_sessions to discover it. |
get_team_radio Get Team Radio
Fetch team radio exchanges between drivers and teams from OpenF1. Only a limited selection of communications is included, not the complete record. Coverage has decreased significantly starting in 2026, with most events providing no radio data at all (a limitation on F1's side).
| Parameter | Type | Description |
|---|---|---|
driver_number | int — optional, 1-99. Driver number for the season. | |
session_key | int | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it. |
get_car_data Get Car Data
Fetch car telemetry (speed, rpm, gear, throttle, brake, DRS) from OpenF1. Sampled at ~3.7 Hz — always narrow down with the range filters below (e.g., a single lap via date_from/date_to, or high-speed samples via speed_min) to keep responses usable.
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — required, 1-99. Driver number for the season. | |
drs_max | ||
drs_min | ||
n_gear_max | ||
n_gear_min | ||
rpm_max | ||
rpm_min | ||
session_key | int | str — required, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
speed_max | ||
speed_min | ||
throttle_max | ||
throttle_min |
get_location Get Location
Fetch approximate car positions on the circuit from OpenF1. Sampled at ~3.7 Hz — always narrow down with date_from/date_to (e.g., a single lap) to keep responses usable. Useful for gauging progress along the track, but lacks lateral placement (left/right side). The origin point (0, 0, 0) is arbitrary.
| Parameter | Type | Description |
|---|---|---|
date_from | ||
date_to | ||
driver_number | int — required, 1-99. Driver number for the season. | |
session_key | int | str — required, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
x_max | ||
x_min | ||
y_max | ||
y_min | ||
z_max | ||
z_min |
get_drivers_championship Get Drivers Championship
Fetch drivers championship standings from OpenF1 (beta endpoint). Only available for race sessions. This endpoint is in beta: its behavior or fields may change without notice.
| Parameter | Type | Description |
|---|---|---|
driver_number | int — optional, 1-99. Driver number for the season. | |
session_key | int | str — required in practice, positive int or 'latest'. Race session identifier; use get_sessions with session_type='Race' to discover it. |
get_teams_championship Get Teams Championship
Fetch teams championship standings from OpenF1 (beta endpoint). Only available for race sessions. This endpoint is in beta: its behavior or fields may change without notice.
| Parameter | Type | Description |
|---|---|---|
session_key | int | str — required in practice, positive int or 'latest'. Race session identifier; use get_sessions with session_type='Race' to discover it. | |
team_name | str — optional, 1-100 chars, e.g., 'McLaren'. |
get_drivers_championship_view Get Drivers Championship View
Fetch drivers championship standings and render them as a visual board. MCP App spike (task 05): in hosts supporting the MCP Apps extension, the result renders as an interactive HTML board with driver photos, team colors and points. In other hosts, the same data is returned as JSON text.
| Parameter | Type | Description |
|---|---|---|
session_key | int | str — required in practice, positive int or 'latest'. Race session identifier; use get_sessions with session_type='Race' to discover it. |
get_race_replay_view Get Race Replay View
Replay a race as an animated position chart (bar-chart-race style). MCP App (task 06): in hosts supporting the MCP Apps extension, renders cars stacked by official position with a checkered treadmill paced by the leader (a new lap opens when the leader crosses), tyre compound badges (red S / yellow M / white H), per-sector times with broadcast colors recomputed at the displayed instant (one purple per sector, green = personal best, yellow = slower), the lap time as MM:SS:mmm, PIT badges, a centered Safety Car / VSC / race-suspended banner, and a header with circuit, local start time and track…
| Parameter | Type | Description |
|---|---|---|
session_key | int | str — optional, positive int or 'latest'. Defaults to 'latest' when omitted. RACE session identifier; use get_sessions with session_type='Race' to discover it. During a live race, 'latest' yie… |