Playtest and fix game automation tools by letting Claude play PC games over MCP

A Redditor had Claude Code build an MCP server with about 100 tools that lets Claude drive, fly and walk in GTA IV and V in the background, then had Claude agents fix its own bugs by playing.

Done withClaude CodeinGitHub· Nov 8, 2026

What they did

u/Wonderful-Ad-8579 wanted agents that could build, test and improve game mods by actually playing, without taking over the desktop. Claude Code planned the project and wrote most of it: a Windows DLL that runs inside the game for input and frame capture, and a TypeScript MCP server on top with roughly 100 tools for keyboard, mouse, gamepad and screen. Games run in the background, several at once, one agent each. Development then ran as a loop: each Claude agent got one game and one problem, such as a car stalling at a junction, played through the MCP, found where the tools went wrong, changed the code and measured the same route before and after. Claude Code reviewed each change and ran the tests before it was published. Agents also wrote the per-game profiles that say where the minimap is and what a waypoint looks like. Codex wrote some of the code too.

How it went

The video shows Claude driving to a waypoint in GTA IV, flying and landing a helicopter in GTA V, and walking to a marker, in real time and unedited, plus scenes from Detroit: Become Human, TABS, Halo Wars 2 and Cities: Skylines. The poster says Claude learned the helicopter in under 30 minutes with no human help. It still struggles indoors without a minimap, took a while to find a door in Morrowind, and aiming in shooters is early. Full playthroughs are not there yet.

Worth knowing

The model does not steer frame by frame. It calls a tool like drive to waypoint and a local loop reads the minimap and steers, with Windows OCR and template matching reading menus and HUD text so few frames go to the model. Windows only, single-player and offline games only, nothing with anti-cheat. The poster found another model handled driving slightly better than Claude in their own comparisons.

Try it

With Claude Code· 5 parts to fill in

You have the game automation MCP connected to [game name], running in the background. Your test case is [one problem, e.g. the car stalls at this junction]. First, play the scenario [number] times through the MCP and record what goes wrong and how long it takes. Then find the cause in [the MCP tool or game profile code], change it, and replay the same scenario the same number of times to measure before and after. If the game has no profile yet, write one for [what the agent needs: minimap location, camera turning, waypoint look]. Stop and show me the diff and the before and after numbers before anything is committed or published.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related