Pitstop is a comprehensive Formula 1 data server providing access to historical (1950+) and detailed modern (2018+) F1 information through 25 specialized tools.
Core Capabilities:
Session Analysis - Access complete session details, results, classifications, driver lists, fastest laps, statistics, and time-series weather data for any F1 session (FP1/2/3, Qualifying, Sprint, Race)
Lap Data & Strategy - Retrieve lap-by-lap information including sector times, speeds, pit stops, track status, and perform tire strategy analysis showing compound usage, tire life, and stint information
Telemetry & Performance - Get high-frequency telemetry data (speed, throttle, brake, gear, RPM, DRS) for specific laps or compare side-by-side between two drivers for detailed performance analysis
Race Control - Retrieve official race control messages including flags, penalties, investigations, safety car deployments, and track status changes
Live Timing - Access real-time data including driver radio transcripts, pit stop timing, and interval/gap data via OpenF1 API
Championship Standings - Get driver and constructor standings from 1950 onwards, filterable by year, round, or specific driver/team
News Aggregation - Access latest F1 news from 25+ sources (official F1, FIA, Autosport, Motorsport, The Race), filterable by category (driver transfers, technical developments, regulations), source, keywords, and date ranges
Reference Data - Access driver information, team details, and circuit layouts
Flexible Filtering - Filter data by year, Grand Prix, session type, driver, team, and various other parameters
Data Sources: FastF1 (2018+), OpenF1 API (2023+), Ergast API (1950-2024), and RSS feeds from 25+ news sources. Includes production-ready features like caching, logging, health checks, and rate limiting.
Planned integration for accessing F1 news and headlines through RSS feeds
Pitstop 🏎️
Comprehensive Formula 1 data via Model Context Protocol (MCP) for Claude Desktop
Production-ready MCP server with 25 optimized F1 data tools, comprehensive logging, health checks, and flexible configuration. Aggregates data from 4 free sources (FastF1, OpenF1, Ergast, 25+ RSS feeds) covering Formula 1 from 1950 to present.
🚀 Quick Start
Installation
Configure Claude Desktop
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Note: Replace /absolute/path/to/pitstop with your installation path. Use double backslashes (\\) on Windows.
Restart Claude Desktop to activate.
📊 Data Sources
Source | Coverage | Data Types | |
FastF1 | 2018-present | Session data, telemetry, weather, race control | |
Ergast API | 1950-2024 | Historical results, standings, driver/team info | |
RSS Feeds | Latest F1 News | Latest news from 25+ sources | |
OpenF1 API | 2023-present | Real-time radio, pit stops, intervals |
Note: RSS feeds only contain recent articles. For historical F1 news (e.g., 2013 Indian GP), use web search instead.
🛠️ Available Tools
Core Session Data
Tool | Description | Key Parameters |
| Complete session overview with results and weather |
,
,
|
| Final classification/results |
,
,
|
| Lap-by-lap data including fastest laps, sectors, pit stops |
,
,
,
,
|
| List of drivers in session |
,
,
|
| Tire compound usage and stint data |
,
,
,
|
| Split qualifying into Q1/Q2/Q3 segments |
,
,
|
| Track lap time improvement through session |
,
,
,
|
Telemetry & Analysis
Tool | Description | Key Parameters |
| High-frequency telemetry data |
,
,
,
,
|
| Side-by-side telemetry comparison |
,
,
,
,
,
,
|
| Race pace, tire degradation, stints |
,
,
,
,
|
| Historical weather data throughout session |
,
,
|
Race Control & Track
Tool | Description | Key Parameters |
| All race control messages (flags, penalties, etc.) |
,
,
,
|
| Circuit layout, corners, track status |
,
,
,
|
Note: get_race_control_messages supports filtering with message_type: "all", "penalties", "investigations", "flags", "safety_car"
Live Timing - OpenF1
Tool | Description | Key Parameters |
| Team radio messages with transcripts |
,
,
,
|
| Pit stop timing and statistics |
,
,
,
|
| Real-time gaps and intervals |
,
,
,
|
| Meeting and session schedule |
,
|
| Real-time tire stint tracking |
,
,
,
,
|
Championship & Schedule
Tool | Description | Key Parameters |
| Driver/constructor standings |
,
,
,
,
|
| F1 calendar with sessions |
,
,
,
,
|
Reference & Media
Tool | Description | Key Parameters |
| Driver info, team details, circuits |
,
,
|
| Latest F1 news |
,
,
,
,
|
Parameter Conventions:
year: Season year (2018+ for FastF1, 1950+ for Ergast, 2023+ for OpenF1)gp: Grand Prix name (e.g., "Monaco", "Silverstone") or round numbersession: Session type -"FP1","FP2","FP3","Q","S","R"driver: 3-letter code (e.g., "VER") or driver number?suffix: Optional parameter
💡 Usage Examples
⚙️ Configuration
Environment Variables (.env)
Pitstop uses environment variables for configuration. A .env file is included for easy setup:
Available Configuration Options:
Variable | Default | Description |
|
| Environment mode:
or
|
|
(dev) /
(prod) | Logging level:
,
,
,
,
|
|
| Enable caching for improved performance |
|
| Cache time-to-live in seconds (5 minutes) |
|
| Enable rate limiting per client |
|
| Maximum requests per hour per client |
|
| Default timeout in seconds |
|
| Telemetry timeout in seconds |
Production Mode (PITSTOP_ENV=production):
✅ Structured JSON logging for log aggregation
✅ Error message masking for security
✅ Optimized performance settings
✅ Health check resources enabled
Development Mode (PITSTOP_ENV=development):
✅ Human-readable text logging
✅ Detailed error messages with stack traces
✅ Debug-level logging by default
✅ Full error context for debugging
Cache Management
FastF1 caches session data in cache/ for performance. Clear if needed:
Health Check
Access server status and health information via the server://status resource:
🧪 Testing
Test individual tools:
🤝 Contributing
Contributions welcome! Please submit a Pull Request.
📄 License
MIT License - see LICENSE file
🙏 Acknowledgments
FastF1 - Formula 1 data library
OpenF1 - Real-time F1 data API
Ergast API - Historical F1 database
Model Context Protocol - MCP specification
Built with ❤️ for F1 fans and data enthusiasts