Skip to main content
Glama
Panth1823

Formula1 MCP Server

铁匠徽章

Formula1 MCP 服务器!🏎️💨

基于 TypeScript 的一级方程式 MCP 服务器,通过模型上下文协议 (MCP),将实时和历史 F1 赛车数据的精彩体验直接带到您的指尖。比维斯塔潘在赛道上的速度还快!(好吧,也许没那么快,但它正在努力!)

资源

  • 通过标准化 URI 访问 F1 会话数据

  • 实时遥测数据

  • 历史赛事信息

  • 车手和车队积分榜

  • 天气数据

  • 电路信息

入门

通过 Smithery 快速安装

要通过 Smithery 自动安装 Formula 1 MCP 服务器:

npx -y @smithery/cli install @Panth1823/formula1-mcp --client claude

手动安装

  1. 克隆仓库:

git clone https://github.com/Panth1823/formula1-mcp cd formula1-mcp
  1. 安装:

npm install
  1. 建造:

npm run build

Related MCP server: Formula One MCP Server (Python)

设置

添加到您的 MCP 客户端配置:

{ "mcpServers": { "formula1": { "command": "node", "args": ["<path-to-your-cloned-repo>/build/index.js"], "cwd": "<path-to-your-cloned-repo>", "enabled": true } } }

配置位置:

  • Windows: %APPDATA%\.cursor\mcp.json

  • MacOS: ~/.cursor/mcp.json

  • Linux: ~/.config/.cursor/mcp.json

可用工具

1. getLiveTimingData

获取当前会话的实时时间数据。

参数:

  • 无需

2. getCurrentSessionStatus

获取有关当前会话的状态信息。

参数:

  • 无需

3. getDriverInfo

获取有关特定驱动程序的信息。

参数:

  • driverId (字符串):驾驶员标识符(例如,“max_verstappen”,“lewis_hamilton”)

4. getHistoricalSessions

查找历史事件的会话密钥。

参数:

  • year (数字,可选):季节年份(例如,2023 年)

  • circuit_short_name (字符串,可选):赛道名称(例如“monza”、“spa”)

  • country_name (字符串,可选):国家名称(例如,“意大利”,“比利时”)

  • session_name (字符串,可选):会话类型(例如,“比赛”、“排位赛”)

5. getHistoricRaceResults

获取特定历史比赛的比赛结果。

参数:

  • year (数字):季节年份(例如,2023)

  • round (数字):比赛号码(例如,1、2、3)

6. getDriverStandings

获取车手锦标赛排名。

参数:

  • year (数字):季节年份(例如,2023)

7. getConstructorStandings

获得制造商锦标赛排名。

参数:

  • year (数字):季节年份(例如,2023)

8. getLapTimes

获取特定车手的单圈时间。

参数:

  • year (数字):季节年份(例如,2023)

  • round (数字):比赛号码(例如,1、2、3)

  • driverId (字符串):驾驶员标识符(例如,“max_verstappen”,“lewis_hamilton”)

9. getWeatherData

获取会话的天气数据。

参数:

  • sessionKey (字符串,可选):会话标识符

10. getCarData

获取详细的车辆遥测数据。

参数:

  • driverNumber (字符串):驾驶员的车号(例如“44”,“33”)

  • sessionKey (字符串,可选):会话标识符

  • filters (字符串,可选):数据过滤器

11. getPitStopData

获取进站信息。

参数:

  • driverNumber (字符串,可选):驾驶员的车号

  • sessionKey (字符串,可选):会话标识符

12. getTeamRadio

获取团队无线电通讯。

参数:

  • driverNumber (字符串,可选):驾驶员的车号

  • sessionKey (字符串,可选):会话标识符

13. getRaceControlMessages

获取比赛控制信息。

参数:

  • sessionKey (字符串,可选):会话标识符

14. getRaceCalendar

获取 F1 赛事日程表。

参数:

  • year (数字):季节年份(例如,2023)

15. getCircuitInfo

获取详细的电路信息。

参数:

  • circuitId (字符串):电路标识符(例如“monza”、“spa”)

16. getSeasonList

获取可用的 F1 赛季列表。

参数:

  • limit (数字,可选):返回的季节数量

17. getQualifyingResults

获得资格赛成绩。

参数:

  • year (数字):季节年份(例如,2023)

  • round (数字):比赛号码(例如,1、2、3)

18. getDriverInformation

从 Ergast API 获取详细的驱动程序信息。

参数:

  • driverId (字符串):驾驶员标识符(例如,“max_verstappen”,“lewis_hamilton”)

19. getConstructorInformation

从 Ergast API 获取详细的构造函数信息。

参数:

  • constructorId (字符串):构造函数标识符(例如,“red_bull”,“mercedes”)

20. clearCache

清除 F1 数据的本地缓存。

参数:

  • 无需

数据源

  • 实时数据:F1实时计时API(OpenF1)

  • 历史:Ergast API(FastF1)

示例

  • “显示 2023 年摩纳哥大奖赛结果”

  • “获取当前排名”

  • “银石赛道的天气”

  • “汉密尔顿的单圈时间”

  • “显示 2024 年日历”

  • “维斯塔潘的信息”

  • “日本大奖赛排位赛”

调试

使用MCP Inspector进行调试。

帮助

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

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/Panth1823/formula1-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server