Logo Formula1 MCP 服务器

Formula1 MCP 服务器

Cộng đồng
Panth1823

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.

Nhà phát hànhPanth1823
Kho mãformula1-mcp
Ngôn ngữJavaScript
Bản fork
6
Sao
15
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Formula1 MCP 服务器 cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    15 sao và 6 bản fork từ kho mã được liên kết.

MseeP.ai Security Assessment Badge

The Formula1 MCP Server ! 🏎️💨

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.

API Status: ✅ 21/22 OpenF1 endpoints + 10 Ergast endpoints working
Last Tested: November 10, 2025
Active Tools: 29 MCP tools (All historical data FREE, live streaming requires paid OpenF1 account)
Access: 🎉 No authentication required for historical data!

Features

  • ✅ Free historical data access - No authentication required!
  • ✅ Comprehensive F1 data - Sessions, drivers, weather, telemetry (2023-present via OpenF1)
  • ✅ Legacy data - Historical race information (1950-present via Ergast API)
  • ✅ Access F1 session data via standardized REST APIs
  • ✅ Real-time telemetry data (car speed, throttle, brake, RPM, DRS, gear)
  • ✅ Driver and constructor standings
  • ✅ Weather data (air/track temperature, humidity, wind, rainfall)
  • ✅ Circuit information with coordinates
  • ✅ Team radio communications with audio URLs
  • ✅ Race control messages, flags, and penalties
  • ✅ Pit stop data and tire strategy
  • ✅ Lap times and sector analysis
  • ✅ Position tracking and intervals
  • ⚠️ Live streaming (MQTT) - Requires paid OpenF1 account (currently disabled)

📊 API Access & Pricing

What's Free? (No Account Needed) ✅

All historical data is completely free! This includes:

  • ✅ All sessions from 2023-present (OpenF1)
  • ✅ All races from 1950-present (Ergast)
  • ✅ Telemetry, lap times, positions, pit stops
  • ✅ Team radio recordings, race control messages
  • ✅ Weather data, driver info, overtakes
  • ✅ Beta features: Session results, starting grid

What Requires a Paid Account? ⚠️

Only real-time streaming during live races:

  • ❌ MQTT WebSocket streaming (live updates)
  • ❌ Real-time data during active F1 sessions
  • 📝 Apply for paid access if needed

Note: REST API endpoints may still work during race weekends for delayed/recent data without a paid account (to be tested).

For detailed endpoint testing results, see OPENF1_API_ACCESS_REPORT.md.

Getting Started

Installation

  1. Clone the repo:
bash
git clone https://github.com/Panth1823/formula1-mcp
cd formula1-mcp
  1. Install:
bash
npm install
  1. Build:
bash
npm run build

That's it! No API keys or authentication required for historical data.

Usage

Add to your Claude Desktop config:

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

Config locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Available Tools

🏎️ Live Data Tools

These tools return live data during active F1 sessions (race weekends). When no session is active, they return empty arrays or last available data.

Note: Real-time MQTT streaming requires a paid OpenF1 account. REST API access during race weekends may work without payment (to be tested).

1. getLiveCarData

Get car telemetry for all drivers (speed, throttle, brake, RPM, DRS, gear).

Parameters: None
Returns: Array of car telemetry data (empty if no active session)
Free Access: ⚠️ To be tested during next race weekend

2. getLivePositions

Get current track positions and gaps.

Parameters: None
Returns: Array of position data with gaps (empty if no active session)
Free Access: ⚠️ To be tested during next race weekend

3. getLiveRaceControl

Get recent race control messages (flags, penalties, safety car).

Parameters: None
Returns: Array of race control messages
Data Source: MQTT stream (live) or REST API (fallback)

4. getLiveTeamRadio

Get recent team radio communications with audio URLs.

Parameters: None
Returns: Array of team radio messages
Data Source: MQTT stream (live) or REST API (fallback)

5. getLiveWeather

Get current weather conditions.

Parameters: None
Returns: Weather data object
Data Source: MQTT stream (live) or REST API (fallback)

6. getStreamingStatus

Check streaming connection status and data availability.

Parameters: None
Returns: Connection status and data counters

7. startStreaming

Manually start the MQTT streaming connection.

Parameters: None
Requires: MQTT_ENABLED=true and valid credentials

8. stopStreaming

Stop streaming and clear live data cache.

Parameters: None


Historical Data Tools

1. getLiveTimingData (Enhanced)

Get real-time lap timing data for the current/latest session. Now uses streaming when active!

Parameters:

  • None required

Note: Returns live data from MQTT stream if active, otherwise uses REST API. May return empty if no live session is active.

2. getCurrentSessionStatus

Get status information about the current session.

Parameters:

  • None required

⚠️ Warning: This endpoint may not work reliably. OpenF1 API doesn't have a standard /session_status endpoint.

3. getDriverInfo

Get real-time driver information from OpenF1 (requires session context).

Parameters:

  • driverId (string): Driver number (e.g., "1", "44", "33")

Note: For historical driver data, use getDriverInformation instead.

4. getHistoricalSessions ⭐ CRITICAL

Find session keys for historical events. You MUST use this first to get session_key values needed for other tools.

Parameters:

  • year (number, optional): Season year (e.g., 2023, 2024)
  • circuit_short_name (string, optional): Circuit name (e.g., "Monaco", "Silverstone", "Monza")
  • country_name (string, optional): Country name (e.g., "Italy", "Belgium")
  • session_name (string, optional): Session type (e.g., "Race", "Qualifying", "Practice 1")

Example: Find 2024 Monaco Race: year=2024, circuit_short_name="Monaco", session_name="Race"

5. getHistoricRaceResults

Get race results for a specific historical race.

Parameters:

  • year (number): Season year (e.g., 2023)
  • round (number): Race number (e.g., 1, 2, 3)

6. getDriverStandings

Get driver championship standings.

Parameters:

  • year (number): Season year (e.g., 2023)

7. getConstructorStandings

Get constructor championship standings.

Parameters:

  • year (number): Season year (e.g., 2023)

8. getLapTimes

Get 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")

9. getWeatherData

Get weather data for a session.

Parameters:

  • sessionKey (string, REQUIRED): Session identifier from getHistoricalSessions

Returns: Air/track temperature, humidity, pressure, wind speed/direction, rainfall

10. getCarData

Get detailed car telemetry data.

Parameters:

  • driverNumber (string, REQUIRED): Driver's car number (e.g., "1", "44", "33")
  • sessionKey (string, REQUIRED): Session identifier from getHistoricalSessions
  • filters (string, optional): Additional filters (e.g., "speed>=300")

Returns: Speed, throttle %, brake status, RPM, gear, DRS status (18K+ data points per session)

11. getPitStopData

Get pit stop information.

Parameters:

  • driverNumber (string, optional): Driver's car number
  • sessionKey (string, optional): Session identifier

12. getTeamRadio

Get team radio communications.

Parameters:

  • sessionKey (string, REQUIRED): Session identifier from getHistoricalSessions
  • driverNumber (string, optional): Driver's car number to filter

Returns: Radio message URLs and timestamps

13. getRaceControlMessages

Get race control messages (flags, incidents, safety car periods).

Parameters:

  • sessionKey (string, REQUIRED): Session identifier from getHistoricalSessions

Returns: Messages, categories, flags (yellow, red, safety car), driver numbers affected

14. getRaceCalendar

Get the F1 race calendar.

Parameters:

  • year (number): Season year (e.g., 2023)

15. getCircuitInfo

Get detailed circuit information.

Parameters:

  • circuitId (string): Circuit identifier (e.g., "monza", "spa")

16. getSeasonList

Get a list of available F1 seasons.

Parameters:

  • limit (number, optional): Number of seasons to return

17. getQualifyingResults

Get qualifying session results.

Parameters:

  • year (number): Season year (e.g., 2023)
  • round (number): Race number (e.g., 1, 2, 3)

18. getDriverInformation

Get detailed driver information from Ergast API.

Parameters:

  • driverId (string): Driver identifier (e.g., "max_verstappen", "lewis_hamilton")

19. getConstructorInformation

Get detailed constructor information from Ergast API.

Parameters:

  • constructorId (string): Constructor identifier (e.g., "red_bull", "mercedes")

20. clearCache

Clear the local cache for F1 data.

Parameters:

  • None required

Data Sources

  • Live Streaming: OpenF1 MQTT - Real-time MQTT/WebSocket streaming with OAuth2
  • Live/Recent Data: OpenF1 API - Real-time telemetry, positions, weather (REST)
  • Historical Data: Ergast API - Complete F1 history (1950-2024)

Important: Ergast API is scheduled to stop updates after 2024 season. Plan for alternative historical sources for 2025+.

Documentation

Known Issues

  1. getCurrentSessionStatus - May not work reliably (endpoint doesn't exist in official OpenF1 API)
  2. Monaco 2024 - Returns 0 sessions (data may not be available for all circuits)
  3. Sprint Races - Not yet supported (Ergast endpoint returns rate limits)

Examples

Live Streaming (NEW!):

  • "What are the current positions in the race?" → Use getLivePositions
  • "Show me live telemetry for Verstappen" → Use getLiveCarData
  • "Latest race control messages" → Use getLiveRaceControl
  • "Current weather conditions" → Use getLiveWeather
  • "Is streaming active?" → Use getStreamingStatus

Finding a Session:

  • "Find the 2024 Bahrain Grand Prix race session" → Use getHistoricalSessions
  • "Get session key for 2023 Monaco qualifying" → Use getHistoricalSessions

Historical Queries:

  • "Show 2023 Monaco GP results" → Use getHistoricRaceResults
  • "Get current 2024 standings" → Use getDriverStandings + getConstructorStandings
  • "Hamilton's lap times at Silverstone 2023" → Use getLapTimes

Live Data (requires session_key):

  • "Weather at Silverstone" → Use getHistoricalSessions then getWeatherData
  • "Verstappen's telemetry" → Use getCarData with driver number and session key
  • "Team radio messages" → Use getTeamRadio with session key

General Info:

  • "Show 2024 calendar" → Use getRaceCalendar
  • "Tell me about Lewis Hamilton" → Use getDriverInformation
  • "Info about Monza circuit" → Use getCircuitInfo

Debug

Use MCP Inspector for debugging.

Testing

The project includes comprehensive API testing with real-world validation:

bash
# Test OpenF1 API (12 tests)
npm run test:openf1

# Test Ergast API (14 tests)  
npm run test:ergast

# Test both APIs (26 tests)
npm run test:apis

Latest Test Results: ✅ 26/26 tests passing (100%)
See COMPREHENSIVE_TEST_RESULTS.md for detailed results.

Help

  • Bugs? Report here
  • Questions? Open an issue
  • Want to help? Submit a PR

License

This project is licensed under the MIT License - see the LICENSE file for details.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "panth1823-formula1-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "f1-mcp-server"
      ]
    }
  }
}

Dùng MCP Formula1 MCP 服务器 với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Formula1 MCP 服务器, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm Formula1 MCP 服务器 làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Formula1 MCP 服务器.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "panth1823-formula1-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "f1-mcp-server"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Formula1 MCP 服务器, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Formula1 MCP 服务器.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng Formula1 MCP 服务器 giúp tôi làm việc này không?
Formula1 MCP 服务器
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng Formula1 MCP 服务器.

Câu hỏi thường gặp

Máy chủ MCP Formula1 MCP 服务器 dùng để làm gì?

Formula1 MCP 服务器 là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Formula1 MCP 服务器 với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Formula1 MCP 服务器 với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Formula1 MCP 服务器 với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Formula1 MCP 服务器, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Formula1 MCP 服务器 với TypingMind?

Formula1 MCP 服务器 hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Formula1 MCP 服务器 cung cấp những công cụ nào trong TypingMind?

Formula1 MCP 服务器 cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Formula1 MCP 服务器 không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Formula1 MCP 服务器 yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇