fastf1-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fastf1-mcpWho won the 2024 Monaco Grand Prix?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fastf1-mcp
A local MCP server that gives Claude (or any MCP-compatible AI client) access to Formula 1 race data. Load any session from 2018 onwards, ask questions in natural language, and get answers backed by real telemetry, timing, and strategy data.
No hosted API. No credentials for data. Everything runs locally on your machine.
Install
pip install fastf1-mcpRelated MCP server: Formula One MCP Server
Use with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"f1": {
"command": "fastf1-mcp"
}
}
}Restart Claude Desktop. Then ask:
Use with Claude Code
claude mcp add f1 fastf1-mcpThen in any Claude Code session, ask:
"Load the 2024 Monaco qualifying and tell me who got pole"
"Compare Verstappen and Leclerc's race pace at Silverstone"
"What was Hamilton's pit strategy at Monza?"
What It Does
The MCP server exposes 17 tools that Claude can call to fetch specific F1 data:
Tool | What It Answers |
| Load a race, qualifying, or practice session |
| "What races are in 2024?" |
| "Who won?", "What was the podium?" |
| "Who got pole?", "Q3 times?" |
| "How consistent was Leclerc?" |
| "Who set the fastest lap?" |
| "When did everyone pit?" |
| "What compounds did they use?" |
| "What was Verstappen's top speed?" |
| "Compare Norris vs Piastri" |
| "Was it wet?" |
| "Give me an overview of the race" |
| "Did the track get faster?" |
| "Who gained the most positions?" |
| "Who is car 44?" |
| "Who was in this session?" |
| "What session is loaded?" |
Fuzzy Input Normalization
You don't need to know exact driver codes or race names. The server resolves natural language:
You Say | Resolves To |
"Leclerc", "charles", "LEC", "16" | Charles Leclerc (LEC) |
"checo", "Perez", "11" | Sergio Perez (PER) |
"spa" | Belgian Grand Prix |
"monza" | Italian Grand Prix |
"silverstone" | British Grand Prix |
"qualifying", "quali", "Q" | Qualifying session |
How It Works
You ask Claude: "Who won the 2024 Bahrain race?"
│
▼
Claude picks tool: load_session(year=2024, race="Bahrain", session="race")
│
▼
fastf1-mcp loads data via FastF1 (cached locally after first download)
│
▼
Claude picks tool: race_result()
│
▼
fastf1-mcp returns structured JSON with the classification
│
▼
Claude answers: "Verstappen won from Perez and Sainz..."First load of a session downloads from F1 servers (~10-30 seconds)
Every load after is instant (cached at
~/.cache/f1_mcp/)No API keys needed for F1 data — it's public timing data via FastF1
Claude only sees small JSON tool results, not raw telemetry dumps
Data Coverage
Seasons: 2018 onwards (FastF1 limitation)
Sessions: Race, Qualifying, Sprint, Practice (FP1/FP2/FP3)
Data: Results, lap times, pit stops, tyre stints, telemetry (speed/throttle/brake), weather, circuit info
Testing
pip install fastf1-mcp[test]
# Unit tests (no network, instant)
pytest tests/ -m "not integration" -v
# Full suite (downloads F1 data on first run, cached after)
pytest tests/ -v133 tests covering normalization, session management, tool execution, and MCP protocol (stdio JSON-RPC handshake, tool listing, tool calls).
Use as a Python Library
You can also import the package directly without MCP:
from f1_mcp.session import SessionManager
mgr = SessionManager()
mgr.load(2024, "Monaco", "qualifying")
print(mgr.qualifying_result())
print(mgr.lap_times("Leclerc"))
print(mgr.head_to_head("Verstappen", "Norris"))License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceThis project implements a Model Context Protocol (MCP) server providing Formula One racing data using the Python FastF1 library. Inspired by an existing TypeScript server, it offers similar F1 data functionalities natively in Python via FastF1.Last updated82MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides comprehensive Formula One racing data, enabling access to event schedules, driver information, telemetry data, race results, and performance analytics through natural language queries.Last updated81MIT
- AlicenseAqualityCmaintenanceMCP server for Formula 1 data via the FastF1 library. Ask Claude (or any MCP-compatible client) about race results, lap times, telemetry, standings, pit stops, and qualifying — with historical data back to 1950 via the Ergast API.Last updated21MIT
- Alicense-qualityCmaintenanceAn MCP server that provides 118+ Formula 1 analytics tools, enabling race analysis, driver comparisons, telemetry exploration, and strategy simulation through natural language.Last updatedMIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aashnakunk/fastf1-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server