f1-analytics
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
šļø F1 MCP Extension
Advanced Formula 1 Data Analysis for Claude
A comprehensive Model Context Protocol (MCP) extension that provides sophisticated F1 telemetry analysis, tire performance modeling, and race strategy simulation capabilities for Claude AI.

š Features
š„ Live F1 Data Integration (2025 Compatible)
Real F1 Data Sources: Integrated with Ergast F1 API, OpenF1 API, and F1 Official Live Timing
Live Session Detection: Automatically detects current race weekends and active sessions
2018-2025 Season Support: Complete historical data through current 2025 season
š Advanced Analytics
Tire Performance Analysis: Degradation modeling, thermal analysis, strategy recommendations
Lap Time Analysis: Sector-by-sector breakdowns with fuel correction
Driver Performance: Skill extraction separating driver from car performance
Weather Impact Prediction: Race strategy adjustments based on conditions
Monte Carlo Simulation: Probabilistic race strategy optimization
š ļø 12 Specialized Tools
get_session_data- Complete session telemetry and timinganalyze_tire_performance- Advanced tire degradation modelinganalyze_lap_times- Fuel-corrected lap time analysispredict_weather_impact- Weather-based strategy recommendationssimulate_race_strategy- Monte Carlo strategy simulationanalyze_driver_performance- Performance extraction metricsget_real_time_telemetry- Live telemetry during active sessionsanalyze_sector_performance- 25 mini-sector track analysisget_current_season_info- 2025 season informationget_race_schedule- Complete race calendarsconnect_live_timing- F1 Official Live Timing connectionget_api_status- Real-time API health monitoring
Related MCP server: F1 MCP Server
š¦ Installation
Prerequisites
Node.js: Version 18.0.0 or higher
Claude Desktop: Latest version with MCP support
Quick Install
# Clone or download this extension
git clone https://github.com/stagsz/f1-mcp-extention
cd f1-mcp-extension
# Install dependencies
npm install
# Test the extension
npm startClaude Desktop Configuration
Add to your Claude Desktop MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"f1-analytics": {
"command": "node",
"args": ["/path/to/f1-mcp-extension/index.js"],
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "info"
}
}
}
}šÆ Quick Start
Basic Session Analysis
Ask Claude: "Analyze the tire performance from the 2024 Monaco Grand Prix qualifying session"Live Race Data
Ask Claude: "Get real-time telemetry for Max Verstappen from the current session"Strategy Simulation
Ask Claude: "Simulate different pit strategies for Lewis Hamilton in the upcoming race"š Detailed Usage
š Session Data Analysis
Get comprehensive session information including telemetry, timing, and weather:
// Tool: get_session_data
{
"year": 2024,
"round": 6, // Monaco GP
"session": "Qualifying"
}š Tire Performance Analysis
Deep dive into tire degradation with mathematical modeling:
// Tool: analyze_tire_performance
{
"year": 2024,
"round": 6,
"session": "Race",
"driver": "VER",
"compound": "MEDIUM"
}ā±ļø Lap Time Analysis
Fuel-corrected lap times with sector breakdowns:
// Tool: analyze_lap_times
{
"year": 2024,
"round": 6,
"session": "Race",
"driver": "HAM",
"fuel_corrected": true
}š¦ļø Weather Impact Prediction
Strategy adjustments based on weather forecasts:
// Tool: predict_weather_impact
{
"year": 2024,
"round": 6,
"session": "Race",
"forecast_hours": 3
}š² Monte Carlo Strategy Simulation
Probabilistic race outcome modeling:
// Tool: simulate_race_strategy
{
"year": 2024,
"round": 6,
"driver": "LEC",
"strategy_options": ["soft-medium", "medium-hard"],
"simulations": 100000
}š Data Sources
Primary Sources
F1 Official Live Timing API - Real-time telemetry during active sessions
OpenF1 API - 2025 schedules, detailed telemetry, historical data
Ergast F1 API - Historical data through 2024
Fallback Strategy
Advanced simulation with realistic F1 characteristics when APIs unavailable
Automatic failover between data sources
Quality indicators for each data source
š ļø Development
Project Structure
f1-mcp-extension/
āāā index.js # Entry point
āāā manifest.json # MCP extension manifest
āāā package.json # Dependencies
āāā src/
ā āāā f1-server.js # Main MCP server
ā āāā analyzers/ # Analysis modules
ā ā āāā driver-analyzer.js
ā ā āāā laptime-analyzer.js
ā ā āāā tire-analyzer.js
ā āāā processors/ # Data processing
ā ā āāā telemetry-processor.js
ā āāā services/ # API integrations
ā ā āāā ergast-api.js
ā ā āāā openf1-api.js
ā ā āāā f1-live-timing.js
ā ā āāā live-data-service.js
ā ā āāā weather-service.js
ā āāā simulators/ # Strategy simulation
ā āāā strategy-simulator.js
āāā examples/ # Usage examples
āāā docs/ # Documentation
āāā logs/ # Application logsAvailable Scripts
npm start # Start the MCP server
npm test # Run test suite
npm run lint # Check code quality
npm run format # Format codeContributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit changes:
git commit -m 'Add amazing feature'Push to branch:
git push origin feature/amazing-featureOpen a Pull Request
š Performance
Real-Time Capabilities
Live Telemetry: < 100ms latency during active F1 sessions
Data Processing: Handles 300Hz telemetry streams
Monte Carlo: 100M+ simulations in under 30 seconds
Data Quality
Accuracy: ±0.001s timing precision
Validation: Multi-source cross-validation
Coverage: Complete F1 seasons 2018-2025
š§ Configuration
Environment Variables
NODE_ENV=production # Environment mode
LOG_LEVEL=info # Logging level
F1_CACHE_SIZE=1000 # Cache size limit
F1_SIMULATION_THREADS=4 # Monte Carlo threadsManifest Configuration
The manifest.json file allows customization:
Security Level: Basic, Standard, or Enterprise
Live Data: Enable/disable real-time connections
Default Season: Set preferred F1 season
Simulation Complexity: Adjust Monte Carlo precision
š Troubleshooting
Common Issues
Extension not appearing in Claude:
Check Claude Desktop MCP configuration path
Verify Node.js version (ā„18.0.0)
Check logs in
logs/error.log
Live timing connection failed:
Ensure F1 session is currently active
Check internet connection
Use
get_api_statustool to diagnose
Simulation taking too long:
Reduce simulation count in strategy tools
Lower complexity in manifest.json
Check available system memory
Debug Mode
NODE_ENV=development npm startš License
MIT License - see LICENSE file for details.
š Acknowledgments
Formula 1: Official timing data and API access
FastF1: Python library inspiration for telemetry processing
Anthropic: Model Context Protocol framework
F1 Community: Data sources and validation
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Racing telemetry, saved-run analysis, tracks, car-computer guidance and live pit-wall workflows.
Anonymous read-only Formula 1 tools, resources, prompts, completion, and interactive dashboard.
Read-only F1 game laps, telemetry, setups, leaderboard benchmarks, and progress.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides real-time and historical Formula 1 racing data through the Model Context Protocol, offering access to timing data, driver stats, race results, telemetry, and more.14MIT
- AlicenseBqualityDmaintenanceProvides advanced Formula 1 analytics including real-time telemetry processing, tire degradation modeling, weather impact analysis, and Monte Carlo race strategy simulation for comprehensive F1 data analysis.136MIT
- FlicenseNot gradedqualityDmaintenanceEnables access to Formula 1 data from the openF1.org API, including driver information, race results, lap times, telemetry, pit stops, weather conditions, and live position data across multiple seasons.-
- AlicenseNot gradedqualityDmaintenanceEnables Formula 1 data analysis through natural language, providing tools like track dominance, lap time analysis, and team performance comparisons.Apache 2.0