by AbhiJ2706
f1-mcp is a Python-based Model Context Protocol (MCP) server that provides comprehensive access to Formula 1 data. It enables users to retrieve and analyze various F1-related information, including race results, driver details, and telemetry, for data analysis and application development.
f1-mcp is a Model Context Protocol (MCP) server built with Python that provides access to comprehensive Formula 1 data. It leverages the FastF1 library to retrieve information such as race results, driver details, lap times, telemetry, and circuit specifics.
Installation:
Install using hatch
:
pip install f1-mcp
Running the Server:
You can run the server using hatch
, python
directly, or the MCP inspector:
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
Claude Desktop Configuration:
Add the following configuration to your claude_desktop_config.json
file, replacing path/to/your/f1_mcp_server.py
with the actual path:
{
"mcpServers": {
"f1-stats": {
"command": "python",
"args": ["path/to/your/f1_mcp_server.py"],
"env": {}
}
}
}
Important Note: Set a large timeout for requests as FastF1 can take time to load data initially. The server automatically creates a local cache (f1_data_cache
) for faster subsequent requests.
f1_data_cache
) to store F1 data for faster subsequent requests.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 is done using hatch
.
pip install f1-mcp
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.
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.
get_drivers_tool
- Get F1 drivers for a season, optionally filtered by name or code queryget_race_results_tool
- Get race results for a season, optionally filtered by specific race nameget_session_results_tool
- Get session results for a specific race and session type (FP1, FP2, FP3, Qualifying, Sprint, Race)get_circuit_info_tool
- Get circuit information and event details for a specific raceget_driver_laps_tool
- Get all lap data for a specific driver in a specific sessionget_fastest_lap_tool
- Get the fastest lap information for a specific sessionget_lap_telemetry_tool
- Get detailed telemetry data (speed, throttle, brake, etc.) for a specific lapPlease log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by mckinsey
Build high-quality data visualization apps quickly with low‑code configuration, leveraging Plotly, Dash, and Pydantic while allowing deep customisation through Python, JavaScript, HTML, and CSS.
by antvis
mcp-server-chart is a Model Context Protocol (MCP) server developed by AntV that generates over 25 types of visual charts. It provides robust chart generation and data analysis capabilities, integrating with various AI clients and platforms.
by reading-plus-ai
mcp-server-data-exploration is an MCP server designed for autonomous data exploration on CSV-based datasets. It acts as a personal Data Scientist assistant, providing intelligent insights with minimal effort.
by Canner
Wren Engine is a semantic engine designed for Model Context Protocol (MCP) clients and AI agents, enabling accurate and context-aware access to enterprise data.
by GongRzhe
A Model Context Protocol (MCP) server for generating various types of charts using QuickChart.io, enabling chart creation through MCP tools.
by ergut
mcp-bigquery-server is a Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to securely and efficiently interact with Google BigQuery datasets. It acts as a translator, allowing LLMs to query and analyze data in BigQuery using natural language instead of SQL.
by isaacwasserman
Provides tools for saving data tables and generating Vega‑Lite visualizations via an MCP interface, supporting both textual specifications and PNG image output.
by surendranb
Google Analytics MCP Server is a Python-based tool that enables Large Language Models (LLMs) to access and analyze Google Analytics 4 (GA4) data using natural language, providing conversational querying of over 200 GA4 dimensions and metrics.
by tinybirdco
Provides a Model Context Protocol server implementation for Tinybird, allowing analytics agents to forward data to Tinybird's platform.