一级方程式赛车
STDIO提供F1赛车实时和历史数据的服务器
提供F1赛车实时和历史数据的服务器
A TypeScript-based Formula 1 MCP server, bringing the thrill of real-time and historical F1 racing data straight to your fingertips via the Model Context Protocol. Faster than Verstappen on a hot lap! (Okay, maybe not that fast, but it's trying!)
To install the Formula 1 MCP Server automatically via Smithery:
npx -y @smithery/cli install @Panth1823/formula1-mcp --client claude
git clone https://github.com/Panth1823/formula1-mcp cd formula1-mcp
npm install
npm run build
Add to your MCP client config:
{ "mcpServers": { "formula1": { "command": "node", "args": ["<path-to-your-cloned-repo>/build/index.js"], "cwd": "<path-to-your-cloned-repo>", "enabled": true } } }
Config locations:
%APPDATA%\.cursor\mcp.json~/.cursor/mcp.json~/.config/.cursor/mcp.jsongetLiveTimingDataGet real-time timing data for the current session.
Parameters:
getCurrentSessionStatusGet status information about the current session.
Parameters:
getDriverInfoGet information about a specific driver.
Parameters:
driverId (string): Driver identifier (e.g., "max_verstappen", "lewis_hamilton")getHistoricalSessionsFind session keys for historical events.
Parameters:
year (number, optional): Season year (e.g., 2023)circuit_short_name (string, optional): Circuit name (e.g., "monza", "spa")country_name (string, optional): Country name (e.g., "Italy", "Belgium")session_name (string, optional): Session type (e.g., "Race", "Qualifying")getHistoricRaceResultsGet race results for a specific historical race.
Parameters:
year (number): Season year (e.g., 2023)round (number): Race number (e.g., 1, 2, 3)getDriverStandingsGet driver championship standings.
Parameters:
year (number): Season year (e.g., 2023)getConstructorStandingsGet constructor championship standings.
Parameters:
year (number): Season year (e.g., 2023)getLapTimesGet lap times for a specific driver.
Parameters:
year (number): Season year (e.g., 2023)round (number): Race number (e.g., 1, 2, 3)driverId (string): Driver identifier (e.g., "max_verstappen", "lewis_hamilton")getWeatherDataGet weather data for a session.
Parameters:
sessionKey (string, optional): Session identifiergetCarDataGet detailed car telemetry data.
Parameters:
driverNumber (string): Driver's car number (e.g., "44", "33")sessionKey (string, optional): Session identifierfilters (string, optional): Data filtersgetPitStopDataGet pit stop information.
Parameters:
driverNumber (string, optional): Driver's car numbersessionKey (string, optional): Session identifiergetTeamRadioGet team radio communications.
Parameters:
driverNumber (string, optional): Driver's car numbersessionKey (string, optional): Session identifiergetRaceControlMessagesGet race control messages.
Parameters:
sessionKey (string, optional): Session identifiergetRaceCalendarGet the F1 race calendar.
Parameters:
year (number): Season year (e.g., 2023)getCircuitInfoGet detailed circuit information.
Parameters:
circuitId (string): Circuit identifier (e.g., "monza", "spa")getSeasonListGet a list of available F1 seasons.
Parameters:
limit (number, optional): Number of seasons to returngetQualifyingResultsGet qualifying session results.
Parameters:
year (number): Season year (e.g., 2023)round (number): Race number (e.g., 1, 2, 3)getDriverInformationGet detailed driver information from Ergast API.
Parameters:
driverId (string): Driver identifier (e.g., "max_verstappen", "lewis_hamilton")getConstructorInformationGet detailed constructor information from Ergast API.
Parameters:
constructorId (string): Constructor identifier (e.g., "red_bull", "mercedes")clearCacheClear the local cache for F1 data.
Parameters:
Use MCP Inspector for debugging.
This project is licensed under the MIT License - see the LICENSE file for details.