Metadata-Version: 2.5
Name: simrig-mcp
Version: 0.2.2
Summary: MCP servers for sim racing on Windows: Assetto Corsa / CSP / Content Manager config, Pimax VR headsets and SimHub ShakeIt haptics.
Project-URL: Homepage, https://github.com/luangrezende/simrig-mcp
Project-URL: Issues, https://github.com/luangrezende/simrig-mcp/issues
Project-URL: Guide, https://github.com/luangrezende/simrig-mcp/blob/main/docs/assetto-corsa-csp-openxr-eye-tracked-vrs.md
License-Expression: MIT
License-File: LICENSE
Keywords: assetto-corsa,bass-shaker,content-manager,csp,haptics,mcp,openxr,pimax,sim-racing,simhub,vr
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Games/Entertainment :: Simulation
Requires-Python: >=3.10
Requires-Dist: mcp>=1.2
Description-Content-Type: text/markdown

# simrig-mcp

[![CI](https://github.com/luangrezende/simrig-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/luangrezende/simrig-mcp/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/luangrezende/simrig-mcp/blob/main/LICENSE)
[![simrig-mcp MCP server](https://glama.ai/mcp/servers/luangrezende/simrig-mcp/badges/score.svg)](https://glama.ai/mcp/servers/luangrezende/simrig-mcp)

Three [MCP](https://modelcontextprotocol.io) servers that let an AI assistant (Claude Code, Claude Desktop, Cursor, ...)
work on a Windows sim racing rig the way a careful engineer would: read the real configuration, change one thing,
keep a backup, measure, and roll back if it got worse.

| Server | What it does |
|---|---|
| **`ac-config-mcp`** | Reads and edits **Assetto Corsa**, **Custom Shaders Patch** and **Content Manager** configuration: `video.ini`, CSP overrides, Pure config, CM video/CSP presets, post-processing filters, Python/Lua apps, mod install from a zip. Every write is backed up and undoable. |
| **`pimax-mcp`** | Reads and adjusts a **Pimax** headset through the official Pimax Play CLI, and parses the Pimax runtime logs for what the CLI does not show: the render settings actually in effect per game, and per-session app/compositor FPS with missed, stale and discarded frames. |
| **`shakeit-mcp`** | Audits **SimHub ShakeIt** haptics (bass shakers and motor outputs such as Arduino, Fanatec or Simagic, and a SimParts belt): the same event on several devices, continuous effects stacked on one shaker, gain headroom, effects that are on but routed nowhere. Read-only. |

**Status:** beta, actively maintained (0.2.2, November 2026). I use it on my own rig every week; Windows only. Bug reports and ideas go in
[issues](https://github.com/luangrezende/simrig-mcp/issues).

## Why not just edit the files, or use Content Manager presets?

You can, and CM presets stay the right tool for setups you already trust. simrig-mcp lets an assistant try one
change at a time on the real files without you losing track.

- **Backup before every write**, one folder per change with a manifest, plus a JSON-lines `changes.log`.
- **`ac_undo`** restores any backup, and backs up the current state first, so undo is undoable.
- **Surgical edits**: comments, BOM and CRLF line endings survive; only the key you set changes.
- **Fenced paths**: known roots and text extensions only. No `..`, no executables, no arbitrary files.
- **Mod install is a dry run by default**, refuses zip-slip paths, never copies `.exe/.dll/.bat/.ps1/...`,
  and refuses to install while the game is open.
- **Pimax changes need `confirm=True`**, which the model is told to pass only after you approve, against a closed list.
- **Read-only mode**: `AC_CONFIG_MCP_READ_ONLY=1` / `PIMAX_MCP_READ_ONLY=1` and the write tools are not even registered.

## Install

You need Windows and [uv](https://docs.astral.sh/uv/), which brings its own Python. In Claude Code:

```powershell
claude mcp add acconfig -- uvx simrig-mcp acconfig
claude mcp add pimax -- uvx simrig-mcp pimax
claude mcp add shakeit -- uvx simrig-mcp shakeit
```

Any other MCP client (Claude Desktop, Cursor, ...):

```json
{
  "mcpServers": {
    "acconfig": { "command": "uvx", "args": ["simrig-mcp", "acconfig"] },
    "pimax":    { "command": "uvx", "args": ["simrig-mcp", "pimax"] },
    "shakeit":  { "command": "uvx", "args": ["simrig-mcp", "shakeit"] }
  }
}
```

Add only the servers for the gear you have:

- `acconfig`: Assetto Corsa (Steam). CSP and Content Manager are optional, but most tools assume them.
- `pimax`: Pimax Play running (tested with Pimax Play 2.0.4 and a Crystal OG). The CLI ships with Pimax Play.
- `shakeit`: SimHub installed. It reads the settings files; SimHub does not need to be running.

Without uv: `pip install simrig-mcp` (Python 3.10+) puts `ac-config-mcp`, `pimax-mcp` and `simrig-mcp` on your PATH.
Published on [PyPI](https://pypi.org/project/simrig-mcp/) and in the official
[MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.luangrezende/ac-config-mcp`,
`io.github.luangrezende/pimax-mcp` and `io.github.luangrezende/shakeit-mcp`.

<!-- mcp-name: io.github.luangrezende/ac-config-mcp -->
<!-- mcp-name: io.github.luangrezende/pimax-mcp -->
<!-- mcp-name: io.github.luangrezende/shakeit-mcp -->

## Try it

Check your haptics without any AI, straight from a terminal:

```powershell
uvx simrig-mcp shakeit-audit
```

```text
Source: C:\Program Files (x86)\SimHub\PluginsData\Common
Bass profile: <your bass profile> | Motors profile: <your motors profile>
[INFO] Belt heave is on
        Heave on the belt pulls over bumps and kerbs and can be confused with braking. Check it adds something.
```

Add `--json` for the full result. With the servers added to your client, ask something like:

> "AC in VR feels choppy on the straight after turn 1. Check what the Pimax runtime is doing and suggest one change."

The assistant reads `pimax_runtime_stats(exe="acs")` (missed frames, GPU%), `pimax_runtime_state` and
`ac_read("ext/vr_tweaks.ini")`, proposes a single change, applies it with `ac_set` after you agree, and after
your next stint compares the stats again. If it got worse: `ac_undo`.

## What it does not do

- Run on Linux or macOS: Assetto Corsa, Pimax Play and SimHub are Windows tools, and so are the paths here.
- Change Pimax refresh rate, FOV, foveated rendering or Smart Smoothing: the Pimax CLI does not expose them, so set
  them in Pimax Play. The PimaxClient `config.json` (login token) is never read.
- Write SimHub settings: `shakeit-mcp` only reads and reports.
- Notice changes for an open Content Manager: CM may show old values until it reloads.

## Guides

Two guides came out of this work and are useful without any AI at all:

- [Eye-tracked foveated rendering in Assetto Corsa on a Pimax](https://github.com/luangrezende/simrig-mcp/blob/main/docs/assetto-corsa-csp-openxr-eye-tracked-vrs.md),
  in CSP's native OpenXR mode. I couldn't find this written anywhere else.
- [SimHub haptics: one event, one owner](https://github.com/luangrezende/simrig-mcp/blob/main/docs/simhub-haptics-one-event-one-owner.md).

Every tool, the file roots, the environment variables and how to run the tests:
[docs/tools.md](https://github.com/luangrezende/simrig-mcp/blob/main/docs/tools.md).

## Why I built this

I'm a huge sim racing fan. My rig is a Fanatec direct drive wheel, a Pimax Crystal in VR and a SimHub setup with
bass shakers, vibration motors, wind and an active belt tensioner, mostly driving Assetto Corsa with CSP.

Anyone with a rig like that knows the pain: hundreds of settings spread across `video.ini`, CSP overrides, Content
Manager presets, Pimax Play and the runtime, and every forum thread swears by a different combination. I wanted an
assistant to tune it like an engineer would, so I built these servers to give it exactly that, safely. I'm sharing
it in case it saves other sim racers some evenings of trial and error.

## License

[MIT](https://github.com/luangrezende/simrig-mcp/blob/main/LICENSE). Not affiliated with Kunos Simulazioni,
Ilja Jusupov (CSP / Content Manager), Pimax or SimHub.
