MCP Sport

v0.1.0
io.github.andrequeiroz2/mcp-sport Checked 3 days ago Published 2 months ago

MCP 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.

ParameterTypeDescription
country_codestr — optional, 3 letters, normalized to uppercase. Deprecated by OpenF1 (removed after the 2026 season).
driver_numberint — optional, 1-99. Driver number for the season.
first_namestr — optional, 1-100 chars. Driver first name.
full_namestr — optional, 1-200 chars. Driver full name.
last_namestr — optional, 1-100 chars. Driver last name.
meeting_keyint | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier.
name_acronymstr — optional, exactly 3 letters (e.g., VER). Normalized to uppercase.
session_keyint | str — optional, positive int or 'latest'. Session identifier; 'latest' targets the current/most recent session.
team_namestr — optional, 1-100 chars. Team name.

get_sessions Get Sessions

Fetch F1 sessions (practice, qualifying, sprint, race) from OpenF1.

ParameterTypeDescription
circuit_keyint — optional, positive int. Circuit identifier.
country_namestr — optional, 1-100 chars, e.g., 'Belgium'.
locationstr — optional, 1-100 chars, e.g., 'Spa-Francorchamps'.
meeting_keyint | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier.
session_keyint | str — optional, positive int or 'latest'. Session identifier; 'latest' targets the current/most recent session.
session_namestr — optional, e.g., 'Practice 1', 'Qualifying', 'Race'.
session_typestr — optional, e.g., 'Practice', 'Qualifying', 'Race'.
yearint — optional, >= 2023 (OpenF1 data starts in 2023).

get_meetings Get Meetings

Fetch F1 meetings (Grand Prix or testing weekends) from OpenF1.

ParameterTypeDescription
circuit_keyint — optional, positive int. Circuit identifier.
country_namestr — optional, 1-100 chars, e.g., 'Singapore'.
locationstr — optional, 1-100 chars, e.g., 'Marina Bay'.
meeting_keyint | str — optional, positive int or 'latest'. Meeting identifier; 'latest' targets the current/most recent meeting.
meeting_namestr — optional, 1-100 chars, e.g., 'Singapore Grand Prix'.
yearint — 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).

ParameterTypeDescription
driver_numberint — optional, 1-99. Driver number for the season.
positionint — optional, >= 1. Final position in the session.
session_keyint | 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).

ParameterTypeDescription
driver_numberint — optional, 1-99. Driver number for the season.
positionint — optional, >= 1. Position on the grid.
session_keyint | 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.

ParameterTypeDescription
date_from
date_to
driver_numberint — optional, 1-99. Driver number for the season.
meeting_keyint | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier.
positionint — optional, >= 1. Exact position (do not combine with position_min/max).
position_max
position_min
session_keyint | 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.

ParameterTypeDescription
date_from
date_to
driver_numberint — 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_numberint — optional, >= 1. Exact lap number (do not combine with lap_number_min/max).
lap_number_max
lap_number_min
session_keyint | 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.

ParameterTypeDescription
date_from
date_to
driver_numberint — optional, 1-99. Driver number for the season.
lane_duration_max
lane_duration_min
lap_numberint — optional, >= 1. Exact lap of the stop (do not combine with lap_number_min/max).
lap_number_max
lap_number_min
session_keyint | 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.

ParameterTypeDescription
compoundstr — optional, 1-20 chars, e.g., 'SOFT', 'MEDIUM', 'HARD'. Normalized to uppercase.
driver_numberint — optional, 1-99. Driver number for the season.
lap_end_max
lap_end_min
lap_start_max
lap_start_min
session_keyint | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it.
stint_numberint — 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).

ParameterTypeDescription
date_from
date_to
driver_numberint — optional, 1-99. Driver number for the season.
session_keyint | 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.

ParameterTypeDescription
categorystr — optional, e.g., 'SessionStatus', 'CarEvent', 'Drs', 'Flag', 'SafetyCar'.
date_from
date_to
driver_numberint — optional, 1-99. Driver number for the season.
flagstr — optional, 1-50 chars, e.g., 'YELLOW', 'BLACK AND WHITE'. Normalized to uppercase.
lap_number_max
lap_number_min
scopestr — optional, e.g., 'Track', 'Driver', 'Sector'.
session_keyint | 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).

ParameterTypeDescription
air_temperature_max
air_temperature_min
date_from
date_to
humidity_max
humidity_min
meeting_keyint | str — optional, positive int or 'latest'. Meeting (Grand Prix weekend) identifier.
rainfall_max
rainfall_min
session_keyint | 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.

ParameterTypeDescription
overtaken_driver_numberint — optional, 1-99. The passed driver.
overtaking_driver_numberint — optional, 1-99. The attacking driver.
positionint — optional, >= 1. Position of the overtaking driver after the overtake.
session_keyint | 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).

ParameterTypeDescription
driver_numberint — optional, 1-99. Driver number for the season.
session_keyint | 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.

ParameterTypeDescription
date_from
date_to
driver_numberint — required, 1-99. Driver number for the season.
drs_max
drs_min
n_gear_max
n_gear_min
rpm_max
rpm_min
session_keyint | 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.

ParameterTypeDescription
date_from
date_to
driver_numberint — required, 1-99. Driver number for the season.
session_keyint | 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.

ParameterTypeDescription
driver_numberint — optional, 1-99. Driver number for the season.
session_keyint | 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.

ParameterTypeDescription
session_keyint | str — required in practice, positive int or 'latest'. Race session identifier; use get_sessions with session_type='Race' to discover it.
team_namestr — 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.

ParameterTypeDescription
session_keyint | 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…

ParameterTypeDescription
session_keyint | 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…