CheatEngine.Mcp
CheatEngine.Mcp is a Windows integration that connects MCP-compatible AI clients to Cheat Engine 7.7 x64.
It provides structured tools for inspecting processes, analyzing memory and code, and managing Cheat Engine workflows.
A plugin runs inside Cheat Engine; one standalone stdio gateway connects your client to one or more explicitly selected instances.
Download a matching plugin and gateway from Releases and follow that package's instructions.
This README describes the current source; features may differ from the latest published build.
Capabilities · Installation · First use · Configuration · Troubleshooting · Development
Capabilities
The current source exposes 206 Cheat Engine tools, plus the gateway's instance_list tool.
| Area |
Supported workflows |
| Processes and instances |
Discover multiple hosts, page a stable process snapshot, select a target, and inspect modules, threads, and regions. |
| Memory |
Read and write typed values and batches; sample values over time; compare, copy, hash, and snapshot bounded ranges. |
| Search |
Run value scans and AOB searches; discover UTF-8 and UTF-16LE strings with filtering and pagination. |
| Pointers |
Follow and validate chains with per-hop evidence; scan, rescan, and manage pointer maps. |
| Code analysis |
Disassemble and decode instructions; inspect references, function graphs, and explicitly addressed vtable slots. |
| Structures and records |
Define, compare, import, and export layouts; manage address-list records, freezes, and Cheat Engine tables. |
| Symbols and managed runtimes |
Resolve and manage symbols; inspect supported Mono and .NET targets. |
| Investigation |
Preserve versioned notes with observations, confidence, and module-relative bindings; search imported offline IL2CPP metadata. |
| Debugging and execution |
Use supported debugger operations, patches, assembly, Lua, and compiled-code workflows subject to capability settings. |
| Session management |
Inspect jobs and retained resources, monitor progress, and release or restore owned state. |
The tool map lists domains and capability requirements.
The live MCP schema defines the exact arguments and results for the connected build.
Runtime-specific tools require the corresponding Cheat Engine and target support; see Verification for the distinction between automated coverage and live qualification.
Feature contracts: persistent notes, offline IL2CPP,
structure interchange, and process pagination.
How it works
AI client --stdio--> CheatEngine.Mcp.Gateway.exe
|
+-- authenticated loopback HTTP --> plugin in Cheat Engine A
+-- authenticated loopback HTTP --> plugin in Cheat Engine B
Each enabled plugin starts a backend on 127.0.0.1 with an automatically assigned port and a fresh access token.
It publishes a per-activation discovery record for the current Windows user.
The gateway verifies the backend's identity and routes calls by the explicit instanceId returned by instance_list.
It does not start Cheat Engine, select a process, or choose an instance for you.
Documents and prompts remain available through the gateway even when Cheat Engine is closed.
The default setup discovers instances automatically: no fixed port, backend URL, or manually configured access token is needed.
Run the gateway and Cheat Engine under the same Windows user account.
Install and connect
1. Get the deployment files
Each packaged release uses CheatEngine.Mcp-<version>-win-x64.zip.
The ZIP includes CheatEngine.Mcp.dll, the gateway executable, installation instructions, and licenses.
Each release has one complete Windows x64 ZIP and SHA256SUMS.txt; separate plugin, skill, DLL, or EXE downloads are unnecessary.
When upgrading, disable the plugin, close Cheat Engine and the gateway, and remove the old plugin entry. Replace the plugin DLL and gateway executable with the matching files from one build; do not mix versions. Then add CheatEngine.Mcp.dll as described below. An old folder deployment is no longer needed.
To build the same layout from source, use the .NET SDK pinned in global.json, PowerShell 7, and the Windows C++ build tools required by Native AOT:
pwsh -NoProfile -File eng/Publish.ps1 -Configuration Release
The result is in artifacts/dist/release/:
| Item |
Purpose |
CheatEngine.Mcp.dll |
Cheat Engine plugin, including its managed dependencies and native Lua bridge. |
CheatEngine.Mcp.Gateway.exe |
Standalone Windows x64 MCP server launched by your AI client. |
README.md |
Installation and configuration instructions. |
LICENSE and THIRD-PARTY-NOTICES.md |
License and dependency notices for the distribution. |
Copy these items together to a stable location, for example C:\Tools\CheatEngine.Mcp.
Keep the DLL name unchanged. No SDK DLL, Core DLL, plugin .deps.json, or plugin .runtimeconfig.json is installed beside it.
The plugin still needs the installed .NET 10 frameworks described below. Costura extracts the native Lua bridge to its per-user temporary cache when loading it.
A normal solution build creates development outputs; eng/Publish.ps1 creates the deployable layout and smoke-tests the gateway.
See Build from source for the full development commands.
2. Prepare Cheat Engine's .NET host
Use Cheat Engine 7.7 x64.
The plugin runs inside Cheat Engine and requires the x64 .NET 10, ASP.NET Core 10, and Windows Desktop 10 runtimes.
Check them with dotnet --list-runtimes; the output must include Microsoft.NETCore.App, Microsoft.AspNetCore.App, and Microsoft.WindowsDesktop.App at version 10.0.x.
The gateway executable is self-contained and does not use Cheat Engine's runtime configuration.
Cheat Engine's ce.runtimeconfig.json, beside its executable, must select .NET 10 and all three frameworks.
Close Cheat Engine and back up that file before changing it.
Preserve unrelated settings; a typical runtimeOptions section is:
{
"runtimeOptions": {
"tfm": "net10.0",
"rollForward": "LatestMinor",
"frameworks": [
{ "name": "Microsoft.NETCore.App", "version": "10.0.0" },
{ "name": "Microsoft.WindowsDesktop.App", "version": "10.0.0" },
{ "name": "Microsoft.AspNetCore.App", "version": "10.0.0" }
]
}
}
Restart Cheat Engine after changing this file.
Installing .NET 10 alone does not change a host configuration that selects another major version.
3. Enable the plugin
In Cheat Engine, open Edit > Settings > Plugins, add the deployed CheatEngine.Mcp.dll, and enable it.
The menu bar shows MCP: Enabled after the backend starts and its instance is published.
Click the indicator for its instance name, listening address, and log location.
Enabling the plugin does not attach Cheat Engine to a target process.
Enable the plugin separately in every Cheat Engine process you want to use.
Leave the port at its default 0 so each process gets a free port.
4. Connect an AI client
Register one local stdio server whose command is the absolute path to CheatEngine.Mcp.Gateway.exe.
For Codex, for example:
codex mcp add cheatengine -- "C:\Tools\CheatEngine.Mcp\CheatEngine.Mcp.Gateway.exe"
codex mcp list
For a client that uses an mcpServers JSON object:
{
"mcpServers": {
"cheatengine": {
"command": "C:/Tools/CheatEngine.Mcp/CheatEngine.Mcp.Gateway.exe"
}
}
}
Use your client's equivalent command-based stdio setting if its format differs.
Restart the client session after changing MCP registration.
The client launches the gateway; double-clicking the executable does not configure a client.
A remote or browser-only client needs a Windows-local component capable of launching the gateway.
First use
Ask the client to list Cheat Engine instances and inspect the selected target without changing memory.
The intended call sequence is:
instance_list() returns verified plugin instances with instanceId, display name, Cheat Engine process ID, and plugin version, plus aggregate diagnostics for missing or rejected instances.
- Choose the intended instance and pass its exact
instanceId to runtime_get_info and runtime_get_overview.
- Check whether Cheat Engine has a target process open.
The instance's
processId is Cheat Engine's PID; the target has its own PID.
- Select a target in Cheat Engine or request a process attach through the tools exposed by the live MCP schema.
Confirm the target before reading or changing it.
The gateway-local instance_list needs no instanceId; every routed Cheat Engine tool does.
There is no default or shared selected instance.
An empty list means the gateway is connected but has not found a verified, enabled plugin.
An ID changes when Cheat Engine restarts or the plugin is disabled and enabled again, so refresh instance_list before reusing one.
The server also offers the attach_and_orient guided prompt and the cheatengine://docs/getting-started resource.
The tool map describes tool domains and capability requirements; the live MCP schema is authoritative for this build's exact names and arguments.
Multiple Cheat Engine instances
Open more than one Cheat Engine process and enable the plugin in each.
One gateway discovers them all.
Display names may repeat, so select by the returned instanceId and Cheat Engine PID.
The default name includes the Cheat Engine PID.
To give each process a label, set MCP_INSTANCE_NAME before launching that process:
# First PowerShell window
$env:MCP_INSTANCE_NAME = 'game-a'
& 'C:\Program Files\Cheat Engine\cheatengine-x86_64.exe'
# Second PowerShell window
$env:MCP_INSTANCE_NAME = 'game-b'
& 'C:\Program Files\Cheat Engine\cheatengine-x86_64.exe'
These are display labels, not routing keys.
An instance that stops is never replaced automatically by another one, even when their labels match.
Keep Mcp:Port at 0; a fixed port must be unique across running instances.
The connection guide explains discovery and stale IDs in more detail.
Configuration
The defaults work without creating a file.
To change plugin settings, create %APPDATA%\CheatEngine.Mcp\appsettings.json and disable/re-enable the plugin.
The plugin reads, in increasing priority: built-in defaults, an optional appsettings.json beside the DLL, the user file, then the dedicated MCP_* environment overrides. No settings file is required for the default setup.
It reads settings once per activation.
Keep personal changes in the user file so updates preserve them.
A small optional user file looks like this:
{
"Mcp": {
"EnableUnsafeLua": false,
"Files": {
"AllowedRoots": ["C:\\CheatEngine\\Files"]
}
},
"CheatEngineClient": {
"AllowedTableRoots": ["C:\\CheatEngine\\Tables"]
}
}
The four capability switches EnableUnsafeLua, EnableAutoAssembler, EnableTargetCodeExecution, and EnableKernelAccess are true by default.
Set a switch to false to refuse its covered tools; runtime_get_info.gates