iRacing MCP Server
An MCP (Model Context Protocol) server for accessing iRacing telemetry data and game functionality.
Overview
This project provides real-time telemetry data, leaderboard information, camera control, pit commands, replay functionality, and more from iRacing through the MCP protocol. It enables AI assistants and other applications to easily access iRacing data.
Key Features
📊 Telemetry Data
- Retrieve real-time telemetry values
- Get list of available telemetry variables
🏁 Race Information
- Get leaderboard (competitive positions only)
- Access driver information, session information, weekend information, and split time information
- Monitor current flags and engine warnings
📹 Camera Control
- Get available camera groups
- Switch cameras (by car number, position, group specification)
- Check current camera status
🔧 Pit Operations
- Check pit service status
- Execute pit commands (refueling, tire changes, repairs, etc.)
- Manage safe pit operations
🎬 Replay Features
- Search and navigate replays
- Move between sessions, laps, and frames
- Jump to incident markers
Requirements
- Python 3.13 or higher
- iRacing (must be running)
- uv
Usage
1. Configure mcp.json
{
"mcpServers": {
"iracing-mcp-server": {
"command": "uvx",
"args":["iracing-mcp-server"]
}
}
}
Available Tools
Telemetry Related
get_telemetry_names()- Get available telemetry variablesget_telemetry_values(names)- Get specified telemetry values
Race Information
get_leaderboard()- Get leaderboardget_driver_info()- Get driver informationget_session_info()- Get session informationget_qualify_results_info()- Get qualification results informationget_weekend_info()- Get weekend informationget_split_time_info()- Get split time informationget_radio_info()- Get radio infomationget_current_flags()- Get current flagsget_current_engine_warnings()- Get engine warnings
Camera Control
get_camera_info()- Get camera informationget_current_camera_status()- Get current camera statuscam_switch(group_number, car_number_raw, position)- Switch camera
Pit Operations
get_current_pit_service_status()- Get current pit service statuspit_command(commands_and_values)- Execute pit command
Replay Features
replay_search(search_commands)- Search and navigate replay
Development
Dependencies
mcp[cli]>=1.12.2- MCP protocol implementationpyirsdk>=1.3.5- iRacing SDK Python bindings
Project Structure
iracing-mcp-server/
├── src/iracing_mcp_server/
│ ├── __init__.py # Main entry point
│ ├── server.py # MCP server implementation
│ ├── leaderboard.py # Leaderboard processing
│ └── prompt.py # Prompt templates
├── pyproject.toml # Project configuration
└── README.md # This file
License
This project is released under the MIT License.
Acknowledgments
Metadata
Release files for iracing-mcp-server 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iracing_mcp_server-0.1.2.tar.gz | 29.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iracing_mcp_server-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.5 kB
Release files / iracing_mcp_server-0.1.2.tar.gz
| Download URL | iracing_mcp_server-0.1.2.tar.gz |
|---|---|
| Size | 29.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12f48789f74d0bddf2ed9ec71c8d2ecbcb2c8ad979fd2efba82bcc81b48627c0
|
|
BLAKE2b-256 checksum How to use checksums |
e9f5f2c7ef37b78843305c74b5bfdc9ca056078d130030b6fdb8e490dcd2ded0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Release files / iracing_mcp_server-0.1.2-py3-none-any.whl
| Download URL | iracing_mcp_server-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9385b0deddb2d64b489c04414cb36e8fd51ee7f64d5fea491f2b17022c19a1b1
|
|
BLAKE2b-256 checksum How to use checksums |
6110a979f769aa3213762c209b7e11ff59287daad2059461e9e4732acf9af9e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Security for iracing-mcp-server 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.