Skip to main content
Glama

Formula One MCP Server

一级方程式 MCP 服务器

该模型上下文协议 (MCP) 服务器使用 FastF1 Python 库提供对一级方程式赛车数据和统计数据的访问。它允许您通过简洁的 MCP 界面访问比赛日历、赛事信息、会话结果、车手数据、单圈时间、遥测数据和锦标赛排名。

特征

  • 获取特定赛季的一级方程式赛车日历
  • 检索有关大奖赛赛事的详细信息
  • 获取会话结果(比赛、排位赛、练习赛)
  • 访问驾驶员信息和统计数据
  • 利用单圈时间和遥测数据分析驾驶员表现
  • 比较多位驾驶员的表现
  • 获取车手和车队的锦标赛排名

先决条件

  • Node.js 18 或更高版本
  • Python 3.8 或更高版本
  • FastF1 库

安装

1.安装 Python 依赖项

pip install fastf1 pandas numpy

2.安装 Node.js 依赖项

cd f1-mcp-server npm install

3. 构建 TypeScript 代码

npm run build

4. 添加到 MCP 设置

将以下内容添加到您的 Cline MCP 设置文件( ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json ):

{ "mcpServers": { "formula1": { "command": "node", "args": ["/Users/rakeshgangwar/Documents/Cline/MCP/f1-mcp-server/build/index.js"], "disabled": false, "autoApprove": [] } } }

可用工具

1. get_event_schedule

获取特定赛季的一级方程式赛车赛程。

参数:

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

2. get_event_info

获取有关特定一级方程式大奖赛的详细信息。

参数:

  • year (数字):季节年份(例如,2023)
  • identifier (字符串):事件名称或回合数(例如“摩纳哥”或“7”)

3. get_session_results

获取特定一级方程式赛车赛事的结果。

参数:

  • year (数字):季节年份(例如,2023)
  • event_identifier (字符串):赛事名称或轮次编号(例如“摩纳哥”或“7”)
  • session_name (字符串):会话名称(例如,“Race”,“Qualifying”,“Sprint”,“FP1”,“FP2”,“FP3”)

4. get_driver_info

获取有关特定一级方程式赛车手的信息。

参数:

  • year (数字):季节年份(例如,2023)
  • event_identifier (字符串):赛事名称或轮次编号(例如“摩纳哥”或“7”)
  • session_name (字符串):会话名称(例如,“Race”,“Qualifying”,“Sprint”,“FP1”,“FP2”,“FP3”)
  • driver_identifier (字符串):驾驶员标识符(数字、代码或名称;例如,“44”、“HAM”、“Hamilton”)

5. analyze_driver_performance

分析一级方程式赛车中车手的表现。

参数:

  • year (数字):季节年份(例如,2023)
  • event_identifier (字符串):赛事名称或轮次编号(例如“摩纳哥”或“7”)
  • session_name (字符串):会话名称(例如,“Race”,“Qualifying”,“Sprint”,“FP1”,“FP2”,“FP3”)
  • driver_identifier (字符串):驾驶员标识符(数字、代码或名称;例如,“44”、“HAM”、“Hamilton”)

6. compare_drivers

比较多名一级方程式赛车手的表现。

参数:

  • year (数字):季节年份(例如,2023)
  • event_identifier (字符串):赛事名称或轮次编号(例如“摩纳哥”或“7”)
  • session_name (字符串):会话名称(例如,“Race”,“Qualifying”,“Sprint”,“FP1”,“FP2”,“FP3”)
  • drivers (字符串):以逗号分隔的驱动程序代码列表(例如“HAM,VER,LEC”)

7. get_telemetry

获取特定一级方程式赛车圈的遥测数据。

参数:

  • year (数字):季节年份(例如,2023)
  • event_identifier (字符串):赛事名称或轮次编号(例如“摩纳哥”或“7”)
  • session_name (字符串):会话名称(例如,“Race”,“Qualifying”,“Sprint”,“FP1”,“FP2”,“FP3”)
  • driver_identifier (字符串):驾驶员标识符(数字、代码或名称;例如,“44”、“HAM”、“Hamilton”)
  • lap_number (数字,可选):圈数(如果未提供则获取最快圈数)

8. get_championship_standings

获取一级方程式赛车锦标赛排名。

参数:

  • year (数字):季节年份(例如,2023)
  • round_num (数字,可选):轮次号(如果未提供,则获取最新排名)

示例用法

一旦服务器添加到您的 MCP 设置并运行,您就可以使用这些工具和 Cline 来访问一级方程式数据。

示例查询:

  • “给我看看2023年一级方程式赛车赛程”
  • “获取 2022 年摩纳哥大奖赛的成绩”
  • “比较汉密尔顿和维斯塔潘在 2021 年英国大奖赛上的表现”
  • “向我展示勒克莱尔在 2023 年意大利大奖赛排位赛中最快圈速的遥测数据”
  • “目前F1锦标赛积分榜是多少?”

数据源

该服务器使用FastF1 Python 库,可访问官方一级方程式赛车计时数据、赛车遥测和会话结果。

执照

麻省理工学院

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过模型上下文协议接口提供一级方程式赛车数据和统计数据,允许用户访问比赛日程表、赛程结果、车手统计数据、遥测数据和锦标赛排名。

  1. 特征
    1. 先决条件
      1. 安装
        1. 1.安装 Python 依赖项
        2. 2.安装 Node.js 依赖项
        3. 构建 TypeScript 代码
        4. 添加到 MCP 设置
      2. 可用工具
        1. get_event_schedule
        2. get_event_info
        3. get_session_results
        4. get_driver_info
        5. analyze_driver_performance
        6. compare_drivers
        7. get_telemetry
        8. get_championship_standings
      3. 示例用法
        1. 数据源
          1. 执照

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that interfaces with Biomart databases, allowing models to discover biological datasets, explore attributes/filters, retrieve biological data, and translate between different biological identifiers.
              Last updated -
              8
              5
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables users to access Strava fitness data, including user activities, activity details, segments, and leaderboards through a structured API interface.
              Last updated -
              3
              Python
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server for data wrangling that provides standardized interfaces for data preprocessing, transformation, and analysis tasks including data aggregation and descriptive statistics.
              Last updated -
              1
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              Provides 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.
              Last updated -
              11
              TypeScript
              MIT License
              • Apple
              • Linux

            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/rakeshgangwar/f1-mcp-server'

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