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
- uv - Install here
- iRacing account with legacy authentication (required) - Enable it here: https://oauth.iracing.com/accountmanagement/security
Usage
Running the Server Standalone
To start the MCP server, run:
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):
"iracing": {
"command": "uvx",
"args": [
"iracing-mcp@latest"
],
"env": {
"IRACING_USERNAME": "your-username",
"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
-
Clone the repository:
git clone https://github.com/musantro/iracing-mcp.git cd iracing-mcp
-
Create environment with dependencies:
uv sync -
Set up environment variables for iRacing credentials:
export IRACING_USERNAME="your_username" export IRACING_PASSWORD="your_password"
Linting and Formatting
Use the following commands to lint and format the code:
make
Contributing
We welcome contributions! Follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Push your branch.
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iracing_mcp-0.1.1.dev0.tar.gz.
File metadata
- Download URL: iracing_mcp-0.1.1.dev0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c5e291b282fd34ad2b1c3532e1a4270390f70c2b6d18303528f24710f7c5b6
|
|
| MD5 |
7ab1e2a743595a5dc4277a4fba5f4d0f
|
|
| BLAKE2b-256 |
14b8f55d9726bacf545a9cae3ce9830140e9f622a143bd564cc7036f84221862
|
File details
Details for the file iracing_mcp-0.1.1.dev0-py3-none-any.whl.
File metadata
- Download URL: iracing_mcp-0.1.1.dev0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28546d80007c1493cd2b130981aabcacd345df0188006987ff07de461b845fb6
|
|
| MD5 |
7bbac825eb999e45a4ee1b9980f0c334
|
|
| BLAKE2b-256 |
a54ca5519e573fb79cf69ec3e76d1906254a7fa9d378453322d3f5e68cb2630a
|