
Formula One MCP Server

2025.03.22
0
JavaScriptFormula One赛车数据数据分析娱乐功能
Formula One MCP Server 是一个基于 FastF1 Python 库的模型上下文协议(MCP)服务器,专门用于提供 Formula One(一级方程式赛车)的数据和统计信息。它通过简洁的 MCP 接口,允许用户访问比赛日历、赛事信息、会话结果、车手数据、圈速、遥测数据以及锦标赛排名等多种信息。
View on GitHub
Overview
基本能力
产品定位
Formula One MCP Server 旨在为 Formula One 爱好者和数据分析师提供一个便捷的接口,用于获取和分析一级方程式赛车的各类数据和统计信息。
核心功能
- 获取特定赛季的 Formula One 比赛日历
- 检索大奖赛赛事的详细信息
- 获取会话结果(Race, Qualifying, Practice)
- 访问车手信息和统计数据
- 通过圈速和遥测数据分析车手表现
- 比较多个车手的表现
- 获取车手和车队的锦标赛排名
适用场景
- Formula One 数据分析和研究
- 赛车爱好者获取实时比赛数据
- 车手表现比较和分析
- 锦标赛排名跟踪
工具列表
get_event_schedule
:获取特定赛季的 Formula One 比赛日历。get_event_info
:获取特定大奖赛的详细信息。get_session_results
:获取特定会话的结果。get_driver_info
:获取特定车手的信息。analyze_driver_performance
:分析车手在特定会话中的表现。compare_drivers
:比较多个车手的表现。get_telemetry
:获取特定圈速的遥测数据。get_championship_standings
:获取锦标赛排名。
常见问题解答
- 数据来源:该服务器使用 FastF1 Python 库,提供官方 Formula 1 计时数据、车辆遥测和会话结果。
- 许可证:MIT
使用教程
使用依赖
- Node.js 18 或更高版本
- Python 3.8 或更高版本
- FastF1 库
安装教程
- 安装 Python 依赖
pip install fastf1 pandas numpy
- 安装 Node.js 依赖
cd f1-mcp-server
npm install
- 构建 TypeScript 代码
npm run build
- 添加到 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": []
}
}
}
调试方式
安装完成后,可以通过以下命令启动服务器并进行调试:
node build/index.js
确保服务器正常运行后,可以使用 Cline 工具进行查询。
示例用法
- "Show me the 2023 Formula One race calendar"
- "Get the results from the 2022 Monaco Grand Prix"
- "Compare Hamilton and Verstappen's performance in the 2021 British Grand Prix"
- "Show me the telemetry data from Leclerc's fastest lap in the 2023 Italian Grand Prix qualifying"
- "What are the current F1 championship standings?"