The Formula One MCP Server provides access to Formula One data and statistics using the FastF1 Python library. It enables you to retrieve race calendars, event information, session results, driver data, telemetry information, and championship standings through a clean Model Context Protocol interface.
Before installing the F1 MCP Server, ensure you have:
First, install the required Python packages:
pip install fastf1 pandas numpy
Navigate to the server directory and install Node.js dependencies:
cd f1-mcp-server
npm install
Compile the TypeScript source:
npm run build
Add the following to your Cline MCP settings file (located at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{
"mcpServers": {
"formula1": {
"command": "node",
"args": ["/path/to/your/f1-mcp-server/build/index.js"],
"disabled": false,
"autoApprove": []
}
}
}
Note: Replace /path/to/your/f1-mcp-server
with the actual path to your installation.
Retrieve the Formula One race calendar for a specific season.
Parameters:
year
(number): Season year (e.g., 2023)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")Retrieve 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")Access 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 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 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")Access 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)Retrieve 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 properly configured and running, you can use these tools with Cline to access Formula One data.
Here are some example queries you can make:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "formula1" '{"command":"node","args":["/Users/rakeshgangwar/Documents/Cline/MCP/f1-mcp-server/build/index.js"],"disabled":false,"autoApprove":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"formula1": {
"command": "node",
"args": [
"/Users/rakeshgangwar/Documents/Cline/MCP/f1-mcp-server/build/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"formula1": {
"command": "node",
"args": [
"/Users/rakeshgangwar/Documents/Cline/MCP/f1-mcp-server/build/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect