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.5.tar.gz (935.5 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.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_f1data-0.1.5.tar.gz.

File metadata

  • Download URL: mcp_f1data-0.1.5.tar.gz
  • Upload date:
  • Size: 935.5 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.5.tar.gz
Algorithm Hash digest
SHA256 ebb4b8d1066e518d77d130bd2650e9de711174a73bf2357a71f181648887e2e1
MD5 f19c8d1d0cf9026db78e07dabebf51cf
BLAKE2b-256 0cebbf400cab79bd771d6a0471eef7ab61ead83e42bd669b9160d6a73f0b667a

See more details on using hashes here.

File details

Details for the file mcp_f1data-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mcp_f1data-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 676d17b69afc3f89031c4d192adc61a5c6f2f34bb7a4d83c3bb42649f1afb31e
MD5 2a42eff1e30f8ea14eaa7d1cdad6ec5d
BLAKE2b-256 4ce3e14d6e2aa88fa8cc1757740a295bae37d820e471923132764729ee3c73cb

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