Skip to main content

MCP server for F1 data using Fastf1, OpenF1 or Ergast APIs

Project description

🏎️ MCP Server F1Data

A Model Context Protocol (MCP) server for interacting with F1Data through LLM interfaces like Claude. You will need to have Claude installed on your system to continue.

Getting Started

First of all, you need to install mcp-f1data package from pypi with pip, using the following command:

pip install mcp-f1data

To use mcp-f1data server in claude can be configured by adding the following to your configuration file.

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

Add the F1Data MCP server configuration:

{
  "mcpServers": {
    "mcp-f1data": {
        "command": "python",
        "args": [ "-m", "mcp-f1data" ]
    }
  }
}

Tools

  • fastest lap
  • lap
  • top speed
  • total laps
  • driver team
  • team driver
  • box laps
  • deleted laps

Instalation

Active the virtual environment and install the requirements using:

.\.venv\Scripts\activate

Install the mcp server in Claude using the following command:

mcp install .\server.py

Requirements

The requirementes used to build this MCP server are:

  • fastf1
  • pandas
  • fastmcp
  • websockets
  • mcp
  • pydantic

Testing

You can test the server using the MCP Inspector:

mcp dev .\server.py

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_f1data-0.1.3.dev0.tar.gz (900.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_f1data-0.1.3.dev0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_f1data-0.1.3.dev0.tar.gz.

File metadata

  • Download URL: mcp_f1data-0.1.3.dev0.tar.gz
  • Upload date:
  • Size: 900.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.1 importlib-metadata/8.6.1 keyring/25.6.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.10

File hashes

Hashes for mcp_f1data-0.1.3.dev0.tar.gz
Algorithm Hash digest
SHA256 b52614e9435176d08c2f69d02f392c216fe278d3da01c1304badc66e417a7825
MD5 bdc2b993f03f8b478f4a13cdcc7ae4ec
BLAKE2b-256 12831aa9264636a9385ff6afe28d903d3e4a9e31f38d57f346948d858dd87163

See more details on using hashes here.

File details

Details for the file mcp_f1data-0.1.3.dev0-py3-none-any.whl.

File metadata

  • Download URL: mcp_f1data-0.1.3.dev0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.67.1 importlib-metadata/8.6.1 keyring/25.6.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.10

File hashes

Hashes for mcp_f1data-0.1.3.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 82a428b35a1fb31a5c5871e617127b748e8d6f4069a369e7edc777498e83a9a2
MD5 b59f201cc9b11faf50add367a5bd0fba
BLAKE2b-256 392bdcfd8e6c1985f97c83e542853a5c340ffb313740d5f1af5d370ab36b728b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page