by AbhiJ2706
Provides access to Formula 1 data—including race results, driver information, lap times, telemetry, and circuit details—through a Model Context Protocol server powered by the FastF1 library.
F1 MCP exposes Formula 1 historical and live data as MCP endpoints. It leverages the FastF1 library to fetch and cache driver stats, race outcomes, circuit specs, lap‑by‑lap information, and detailed telemetry, making the data programmatically available for downstream applications.
pip install f1-mcp
hatch run f1_mcp_server.py
python src/f1_mcp/f1_mcp_server.py
f1_data_cache
to speed up subsequent requests.f1_data_cache
in the working directory; you can set the FASTF1_CACHE_DIR
environment variable before starting the server.f1_mcp_server.py
.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.
{ "mcpServers": { "f1-mcp": { "command": "python", "args": [ "src/f1_mcp/f1_mcp_server.py" ], "env": {} } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by antvis
Offers over 25 AntV chart types for automated chart generation and data analysis, callable via MCP tools, CLI, HTTP, SSE, or streamable transports.
by reading-plus-ai
A versatile tool that enables interactive data exploration through prompts, CSV loading, and script execution.
by Canner
Provides a semantic engine that lets MCP clients and AI agents query enterprise data with contextual understanding, precise calculations, and built‑in governance.
by surendranb
Provides natural‑language access to Google Analytics 4 data via MCP, exposing over 200 dimensions and metrics for Claude, Cursor and other compatible clients.
by ergut
Provides secure, read‑only access to BigQuery datasets, allowing large language models to query and analyze data through a standardized interface.
by isaacwasserman
Provides an interface for LLMs to visualize data using Vega‑Lite syntax, supporting saving of data tables and rendering visualizations as either a full Vega‑Lite specification (text) or a base64‑encoded PNG image.
by vantage-sh
Fetch and explore cloud cost and usage data from a Vantage account using natural language through AI assistants and MCP clients.
by acryldata
Provides a Model Context Protocol server that enables searching, metadata retrieval, lineage traversal, and SQL query listing for DataHub entities.
by rishijatia
Provides programmatic access to Fantasy Premier League statistics, team information, gameweeks, and analysis tools via a Model Context Protocol server.