trackmcp
Back to directory
musantro

iracing-mcp

View on GitHub

A model context protocol server to chat with iRacing data.

6 stars PythonAI & Machine Learning Updated Oct 12, 2025
iracingmcp-server

Documentation

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.
  • Get iRating chart (for any category)
  • More coming soon

Getting Started

Prerequisites

  • uv - Install here
  • iRacing account with legacy authentication (required) - Enable it here:

Usage

Running the Server Standalone

To start the MCP server, run:

bash
IRACING_USERNAME="your username" IRACING_PASSWORD="your-password" uvx iracing-mcp

Running the Server on VSCode

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

json
"iracing": {
    "command": "uvx",
    "args": [
        "iracing-mcp@latest"
    ],
    "env": {
        "IRACING_USERNAME": "your@email.com",
        "IRACING_PASSWORD": "your password"
    }
}

Running the MCP Server on Claude Desktop

Add this to your settings.json:

json
[
    "mcpServers": {
        "iracing": {
            "command": "uvx",
            "args": [
                "iracing-mcp@latest"
            ],
            "env": {
                "IRACING_USERNAME": "your@email.com",
                "IRACING_PASSWORD": "your-password"
            }
        }
    }
}

Running the Server on other MCP Clients

Currently I am only using VS Code as MCP Client so I don't know how to configure to other MCP Clients.

I am happy to receive PRs on how to configure in the different MCP Servers (e.g. Cursor, Claude Desktop, etc.)

Development

1. Clone the repository:

bash
git clone https://github.com/musantro/iracing-mcp.git
   cd iracing-mcp

2. Create environment with dependencies:

bash
uv sync

3. Set up environment variables for iRacing credentials:

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

Linting and Formatting

Use the following commands to lint and format the code:

bash
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.

Frequently asked questions

What is iracing-mcp?

iracing-mcp is A model context protocol server to chat with iRacing data.

How do I install iracing-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is iracing-mcp open source?

Yes — it is hosted on GitHub at https://github.com/musantro/iracing-mcp and has 6 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP