MCP Connector

Access Formula 1 Data via MCP

Access Formula 1 data with the F1 MCP Server, providing race results, driver info, lap times, telemetry, and circuit details via the FastF1 library.

Works with fastf1

Maintainer of this project? Claim this page to edit the listing.


86
Spark score
out of 100
Updated Jun 2025
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Leverage the FastF1 library to access and query comprehensive Formula 1 data, including race results, driver information, and telemetry, through an MCP server.

Outcomes

What it gets done

01

Retrieve F1 race results and driver details.

02

Access lap times and detailed telemetry data.

03

Query session results and circuit information.

04

Utilize local caching for improved data retrieval performance.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-f1 | bash

Capabilities

Tools your agent gets

get_drivers_tool

Get F1 drivers for a season with ability to filter by name or code

get_race_results_tool

Get race results for a season with ability to filter by specific race name

get_session_results_tool

Get session results for a specific race and session type

get_circuit_info_tool

Get circuit information and event details for a specific race

get_driver_laps_tool

Get all lap data for a specific driver in a specific session

get_fastest_lap_tool

Get fastest lap information for a specific session

get_lap_telemetry_tool

Get detailed telemetry data for a specific lap including speed and throttle

Overview

F1 MCP Server

The F1 MCP Server is a Model Context Protocol (MCP) server that provides access to a wide range of Formula 1 data. It leverages the FastF1 library to offer endpoints for retrieving driver information, race results, session details, circuit information, lap data, and telemetry. The server automatically caches data locally to enhance performance. Use the F1 MCP Server when you need to programmatically access and analyze Formula 1 statistics for AI applications, data analysis projects, or custom F1-related tools. It is particularly useful for integrating real-time or historical F1 data into your workflows.

What it does

The user wants to access and analyze Formula 1 data programmatically. The F1 MCP Server enables this by exposing various F1 data points through an MCP interface. The user can install the server using pip:

pip install f1-mcp

Then, they can run the server using:

python src/f1_mcp/f1_mcp_server.py

This allows AI clients to query for driver information, race results, session results, circuit details, lap data, and telemetry, facilitating in-depth F1 data analysis and application development. The server also automatically caches data locally for improved performance on subsequent requests.

Source README

f1-mcp

A Model Context Protocol (MCP) server that provides access to Formula 1 data including race results, driver information, lap times, telemetry, and circuit details using the FastF1 library.

Installation

Installation is done using hatch.

pip install f1-mcp

Running the Server

Using hatch:

hatch run f1_mcp_server.py

Using python directly:

python src/f1_mcp/f1_mcp_server.py

Using the MCP inspector:

npx @modelcontextprotocol/inspector python src/f1_mcp/f1_mcp_server.py

Make sure to set a large timeout for requests, FastF1 takes a long time to load data upon startup.

The server will start and create a local cache directory (f1_data_cache) to store F1 data for faster subsequent requests.

Claude Desktop Configuration

Add the following configuration to your claude_desktop_config.json file:

{
  "mcpServers": {
    "f1-stats": {
      "command": "python",
      "args": ["path/to/your/f1_mcp_server.py"],
      "env": {}
    }
  }
}

Replace path/to/your/f1_mcp_server.py with the actual path to your server file.

Available Endpoints

Driver Information

  • get_drivers_tool - Get F1 drivers for a season, optionally filtered by name or code query

Race Results

  • get_race_results_tool - Get race results for a season, optionally filtered by specific race name
  • get_session_results_tool - Get session results for a specific race and session type (FP1, FP2, FP3, Qualifying, Sprint, Race)

Circuit Information

  • get_circuit_info_tool - Get circuit information and event details for a specific race

Lap Data

  • get_driver_laps_tool - Get all lap data for a specific driver in a specific session
  • get_fastest_lap_tool - Get the fastest lap information for a specific session

Telemetry

  • get_lap_telemetry_tool - Get detailed telemetry data (speed, throttle, brake, etc.) for a specific lap

Notes

  • Make sure to set a large timeout for requests, FastF1 takes a long time to load data upon startup.
  • The server automatically caches F1 data locally to improve performance
  • First-time requests for a season may take longer as data is downloaded and cached
  • Session types include: FP1, FP2, FP3, Q1, Q2, Q3, Sprint, Race
  • Driver codes are typically 3-letter abbreviations (e.g., HAM, VER, LEC)

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.