Provides Formula One data and statistics through a Model Context Protocol interface, allowing users to access race calendars, session results, driver statistics, telemetry data, and championship standings.
This Model Context Protocol (MCP) server provides access to Formula One data and statistics using the FastF1 Python library. It allows you to access race calendars, event information, session results, driver data, lap times, telemetry, and championship standings through a clean MCP interface.
pip install fastf1 pandas numpy
cd f1-mcp-server npm install
npm run build
Add the following to your Cline MCP settings file (~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{ "mcpServers": { "formula1": { "command": "node", "args": ["/Users/rakeshgangwar/Documents/Cline/MCP/f1-mcp-server/build/index.js"], "disabled": false, "autoApprove": [] } } }
get_event_schedule
Get Formula One race calendar for a specific season.
Parameters:
year
(number): Season year (e.g., 2023)get_event_info
Get detailed information about a specific Formula One Grand Prix.
Parameters:
year
(number): Season year (e.g., 2023)identifier
(string): Event name or round number (e.g., "Monaco" or "7")get_session_results
Get results for a specific Formula One session.
Parameters:
year
(number): Season year (e.g., 2023)event_identifier
(string): Event name or round number (e.g., "Monaco" or "7")session_name
(string): Session name (e.g., "Race", "Qualifying", "Sprint", "FP1", "FP2", "FP3")get_driver_info
Get information about a specific Formula One driver.
Parameters:
year
(number): Season year (e.g., 2023)event_identifier
(string): Event name or round number (e.g., "Monaco" or "7")session_name
(string): Session name (e.g., "Race", "Qualifying", "Sprint", "FP1", "FP2", "FP3")driver_identifier
(string): Driver identifier (number, code, or name; e.g., "44", "HAM", "Hamilton")analyze_driver_performance
Analyze a driver's performance in a Formula One session.
Parameters:
year
(number): Season year (e.g., 2023)event_identifier
(string): Event name or round number (e.g., "Monaco" or "7")session_name
(string): Session name (e.g., "Race", "Qualifying", "Sprint", "FP1", "FP2", "FP3")driver_identifier
(string): Driver identifier (number, code, or name; e.g., "44", "HAM", "Hamilton")compare_drivers
Compare performance between multiple Formula One drivers.
Parameters:
year
(number): Season year (e.g., 2023)event_identifier
(string): Event name or round number (e.g., "Monaco" or "7")session_name
(string): Session name (e.g., "Race", "Qualifying", "Sprint", "FP1", "FP2", "FP3")drivers
(string): Comma-separated list of driver codes (e.g., "HAM,VER,LEC")get_telemetry
Get telemetry data for a specific Formula One lap.
Parameters:
year
(number): Season year (e.g., 2023)event_identifier
(string): Event name or round number (e.g., "Monaco" or "7")session_name
(string): Session name (e.g., "Race", "Qualifying", "Sprint", "FP1", "FP2", "FP3")driver_identifier
(string): Driver identifier (number, code, or name; e.g., "44", "HAM", "Hamilton")lap_number
(number, optional): Lap number (gets fastest lap if not provided)get_championship_standings
Get Formula One championship standings.
Parameters:
year
(number): Season year (e.g., 2023)round_num
(number, optional): Round number (gets latest standings if not provided)Once the server is added to your MCP settings and running, you can use these tools with Cline to access Formula One data.
Example queries:
This server uses the FastF1 Python library, which provides access to official Formula 1 timing data, car telemetry, and session results.
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!