Skip to main content
Glama

Formula1 MCP Server

MIT License
11
  • Apple
  • Linux

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

设置

添加到您的 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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

通过模型上下文协议提供实时和历史一级方程式赛车数据,可访问计时数据、车手统计数据、比赛结果、遥测数据等。

  1. 资源
    1. 入门
      1. 通过 Smithery 快速安装
      2. 手动安装
    2. 设置
      1. 可用工具
        1. getLiveTimingData
        2. getCurrentSessionStatus
        3. getDriverInfo
        4. getHistoricalSessions
        5. getHistoricRaceResults
        6. getDriverStandings
        7. getConstructorStandings
        8. getLapTimes
        9. getWeatherData
        10. getCarData
        11. getPitStopData
        12. getTeamRadio
        13. getRaceControlMessages
        14. getRaceCalendar
        15. getCircuitInfo
        16. getSeasonList
        17. getQualifyingResults
        18. getDriverInformation
        19. getConstructorInformation
        20. clearCache
        21. 数据源
      2. 示例
        1. 调试
          1. 帮助
            1. 执照

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that connects to the Tesla Fleet API, allowing AI assistants like Claude to control Tesla vehicles and access vehicle information through natural language commands.
                Last updated -
                1
                TypeScript
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                Provides Formula One data and statistics through a Model Context Protocol interface, allowing users to access race calendars, session results, driver statistics, telemetry data, and championship standings.
                Last updated -
                JavaScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                Provides access to Deutsche Bahn train timetables, station information, and schedule changes through Model Context Protocol tools and resources.
                Last updated -
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                Provides professional cycling data from FirstCycling, allowing users to retrieve comprehensive information about cyclists, race results, historical cycling data, and team information through natural language queries.
                Last updated -
                18
                Python
                MIT License
                • Apple

              View all related MCP servers

              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