| Crates.io | f1-nexus-mcp |
| lib.rs | f1-nexus-mcp |
| version | 1.0.0-alpha.2 |
| created_at | 2025-12-17 02:33:33.63623+00 |
| updated_at | 2025-12-17 02:33:33.63623+00 |
| description | Model Context Protocol (MCP) server for F1 Nexus |
| homepage | |
| repository | https://github.com/mrkingsleyobi/f1-nexus |
| max_upload_size | |
| id | 1989202 |
| size | 103,884 |
Model Context Protocol (MCP) server for F1 Nexus - Enable AI agents to optimize F1 race strategies through standardized tools.
[dependencies]
f1-nexus-mcp = "1.0.0-alpha.2"
optimize_strategyOptimize pit stop strategy for current race conditions.
Input:
{
"track_id": "monaco",
"total_laps": 78,
"current_lap": 15,
"tire_age": 14,
"fuel_remaining": 95.5,
"position": 3,
"available_compounds": ["C1", "C2", "C3"]
}
Output: Optimal pit stops, tire compounds, predicted race time
simulate_raceRun Monte Carlo simulations for strategy validation.
Input: Strategy + weather + variance parameters Output: Distribution of finish times, DNF probability, confidence intervals
predict_tire_lifeML-based tire degradation prediction.
Input: Current tire data + track conditions Output: Remaining laps, degradation rate, optimal pit window
get_weather_forecastGet real-time weather data for F1 circuits.
Input: Circuit name or coordinates Output: Temperature, humidity, precipitation, wind, track conditions
query_historicalSemantic search over historical race data.
Input: Natural language query Output: Relevant historical strategies and outcomes
get_agent_consensusMulti-agent strategy voting and consensus.
Input: Multiple strategy proposals Output: Consensus strategy with confidence scores
use f1_nexus_mcp::*;
#[tokio::main]
async fn main() -> Result<()> {
let server = MCPServer::new(Transport::Stdio);
server.run().await?;
Ok(())
}
use f1_nexus_mcp::*;
use axum::{Router, routing::get};
#[tokio::main]
async fn main() -> Result<()> {
let app = Router::new()
.route("/mcp/sse", get(sse_handler))
.route("/mcp/messages", post(message_handler));
axum::Server::bind(&"0.0.0.0:3000".parse()?)
.serve(app.into_make_service())
.await?;
Ok(())
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"f1-nexus": {
"command": "f1-nexus-mcp",
"args": ["--stdio"],
"env": {
"OPENWEATHERMAP_API_KEY": "your-api-key-here"
}
}
}
}
Then ask Claude: "Optimize pit strategy for Monaco GP, starting P3 with 78 laps"
Real-time weather data for all 24 F1 circuits including Monaco, Silverstone, Spa, Monza, Suzuka, Singapore, and more.
f1-nexus-strategy - Strategy optimization enginef1-nexus-core - Core F1 typesf1-nexus-cli - Command-line interfaceLicensed under either of Apache License, Version 2.0 or MIT license at your option.