Skip to main content

A model context protocol server to chat with iRacing data.

Project description

iRacing MCP

iRacing MCP is a Python-based project that integrates iRacing with the Model Context Protocol (MCP). It provides tools and resources to interact with iRacing data and build custom applications.

Features

  • Retrieve iRacing profile statistics.
  • More coming soon

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/musantro/iracing-mcp.git
    cd iracing-mcp
    
  2. Create environment with dependencies:

    uv sync
    
  3. Set up environment variables for iRacing credentials:

    export IRACING_USERNAME="your_username"
    export IRACING_PASSWORD="your_password"
    

Usage

Running the Server Standalone

To start the MCP server, run:

uv run server

Running the Server on VSCode

Add this to your settings.json (in mcp.servers):

"iracing": {
    "command": "path/to/your/uv",
    "args": [
        "--directory",
        "path/to/your/iracing-mcp",
        "run",
        "server"
    ],
    "env": {
        "IRACING_USERNAME": "your-username",
        "IRACING_PASSWORD": "your password"
    }
}

Development

Linting and Formatting

Use the following commands to lint and format the code:

make

Contributing

We welcome contributions! Follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Push your branch.
  4. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for 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

iracing_mcp-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

iracing_mcp-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file iracing_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iracing_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for iracing_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30b901d0cd2bcc0d1f83c7a4f52e89b50f36b6a933de9acf2c67d830f37e804c
MD5 247ee3155daa70f5312e6619ebf03811
BLAKE2b-256 4fd3f78815f433b48f57e064951692d259184a0842ce2e92661b928efeb28ad6

See more details on using hashes here.

File details

Details for the file iracing_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iracing_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64fef1a96ae9a787234d0621c1b1f93a0e138d82ac64ddebd963cc57739b5e14
MD5 e028ee3bcf99196f0bba12c7cbf125cf
BLAKE2b-256 f078a4fae5a23a554cd17c20d830fa8eec26d6b5a326e4f7f0576c972566b638

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