cheat-engine-mcp
A HTTP MCP bridge plugin for Cheat Engine. 176 tools exposing CE's memory, scanning, debugging, and code-injection APIs to Claude Code and other MCP clients.
Install / Use
claude mcp add coffeegrind123 -- npx -y github:coffeegrind123/cheat-engine-mcpIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
OtherSupported Platforms
Our assessment of cheat-engine-mcp
cheat-engine-mcp scores 70/100 on our quality scale, 343rd of 367 Other skills we index.
Its MCP Server is 11 KB long, well organised into 17 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 78/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
cheat-engine-mcp compared with similar skills
All 4 of these similar skills score higher than cheat-engine-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cheat-engine-mcp (this skill)by coffeegrind123 | 70 | 3 | 4mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 115.5k | 3d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.7k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.6k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 81.0k | today | CLAUDE.md |
Frequently asked questions
- How do I install cheat-engine-mcp?
- Run
claude mcp add coffeegrind123 -- npx -y github:coffeegrind123/cheat-engine-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does cheat-engine-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is cheat-engine-mcp safe to use?
- It declares no license and scores 78/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cheat-engine-mcp still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubCE HTTP Bridge
An HTTP/MCP bridge for Cheat Engine that lets Claude Code (or any MCP client) drive CE's memory inspection, scanning, debugging, and code-injection features from a Linux container targeting Windows.
The plugin DLL embeds an HTTP server inside Cheat Engine; a Python MCP bridge in the container translates MCP stdio calls into HTTP requests against the plugin. Same dual-process pattern as the Ghidra MCP bridge.
Claude Code (container)
ββ stdio ββΊ bridge_mcp_cheatengine.py (Python, container)
ββ HTTP/JSON ββΊ ce_http_bridge.dll (C++ plugin in CE on Windows)
ββ CE SDK direct calls (thread-safe)
ββ Lua command queue β 10ms main-thread timer
βββΊ Target process
Feature Surface
- 179 HTTP endpoints / 181 MCP tools covering the full CE Lua API
- Process attach, memory read/write (typed), AOB/value/module scanning with persistent sessions
- Batch reads:
read_many(many typed addresses in one round-trip) andread_struct(named typed fields at offsets from a base) β big speedups for polling loops - Disassembly, assembly, function analysis, xref discovery, RTTI identification
- Software + hardware breakpoints, per-thread breakpoints, CPU context get/set, XMM/LBR
get_call_stack(frame-pointer walk + symbolization),run_to_address(one-shot breakpoint, run, wait-for-hit),speedhack_set_speed- DBVM (ring -1) invisible watchpoints with poll/stop lifecycle
- Code injection: auto-assembler, DLL injection (.NET too), TCC/C# JIT, executeCode variants
- Cheat table load/save, memory record CRUD
- CE structures, window/GUI automation, input simulation, kernel-mode (DBK) operations
- Clipboard, file I/O, shell execution (gated), taskbar progress, TTS
See bridge/bridge_mcp_cheatengine.py for the complete tool inventory with docstrings.
Requirements
Host (Windows, where Cheat Engine runs):
- Cheat Engine 7.x (provides
lua53-64.dll, which the plugin imports)
MCP client host (Linux, typically a container):
- Python 3.10+
mingw-w64package for cross-compilation (if building the DLL from source)
Build
Cross-compiled from Linux using MinGW.
sudo apt-get install mingw-w64 # once
git clone <repo> && cd cheatengine-http-bridge
make fetch-lua-headers # downloads Lua 5.3.6 headers into vendor/ (once)
make # produces build/ce_http_bridge.dll
make clean && make # full rebuild
Override paths or the toolchain if needed:
make MINGW_PREFIX=x86_64-w64-mingw32 # default toolchain prefix
make LUA_SRC=/path/to/lua-5.3.x/src # use a different Lua header tree
Runtime dependencies of the output DLL: KERNEL32.dll, msvcrt.dll, WS2_32.dll (Windows system libraries) and lua53-64.dll (shipped with Cheat Engine). libstdc++, libgcc, and libwinpthread are statically linked.
Why dynamic-link Lua? The plugin must share CE's Lua state. Statically linking a separate Lua runtime would corrupt that state (two allocators, two function tables) and crash with an access violation. The plugin/lua53-64.def file declares CE's Lua exports; plugin/lua53-64.a is the import library regenerated from it via:
cd plugin && x86_64-w64-mingw32-dlltool \
--input-def lua53-64.def --dllname lua53-64.dll \
--output-lib lua53-64.a --kill-at
Vendor single-header libraries (httplib.h, nlohmann/json.hpp) are committed under plugin/vendor/.
Building with Visual Studio
plugin/plugin.vcxproj builds the same DLL with MSVC on Windows. Generate lua53-64.lib from the .def file first:
lib /def:plugin\lua53-64.def /out:plugin\lua53-64.lib /machine:x64
Then open the vcxproj and build Release|x64.
Installation
- Copy
build/ce_http_bridge.dllto Cheat Engine'sautorun\orPlugins\directory - Start Cheat Engine β a console window appears and the plugin logs:
[CE HTTP Bridge] HTTP server listening on 0.0.0.0:6789 - Install Python deps on the MCP host:
pip install -r bridge/requirements.txt - Register the MCP server with your client. For Claude Code in
~/.claude/settings.json:{ "mcpServers": { "cheatengine": { "command": "/bin/bash", "args": ["/absolute/path/to/cheatengine-http-bridge/bridge/run-mcp.sh"] } } }
The bridge connects to http://host.docker.internal:6789 by default (the common hostname when Claude Code runs inside Docker and CE runs on the Docker host). Override with CE_HTTP_URL if CE runs on a different machine or port:
export CE_HTTP_URL=http://192.168.1.10:6789
Change the plugin's listen port with CE_HTTP_PORT (set in Cheat Engine's environment before launch).
Project Layout
plugin/ # C++ DLL source (Windows target)
βββ main.cpp # CE plugin lifecycle, starts HTTP server on port 6789
βββ ce_api.{h,cpp} # Wrapper around CE SDK ExportedFunctions
βββ lua_bridge.{h,cpp} # Thread-safe Lua execution: queue + 10ms timer
βββ http_server.{h,cpp} # cpp-httplib server, JSON/hex helpers
βββ handlers/ # One file per endpoint category
β βββ handler_helpers.h # Shared Lua-escape / JSONβLua helpers
β βββ handlers.h # Registration function declarations
β βββ *_handlers.cpp # 15 categories: process, memory, scan, analysis,
β # debug, symbol, injection, table, structure,
β # window, input, file, kernel, threading, misc
βββ CheatEngine/ # CE Plugin SDK headers (cepluginsdk.h, lua*.h)
βββ vendor/ # httplib.h, nlohmann/json.hpp
βββ lua53-64.def # CE's Lua DLL export declaration
βββ lua53-64.a # Import library (regenerated from .def)
βββ plugin.def # DLL exports (CEPlugin_* functions)
βββ plugin.vcxproj # Visual Studio project (alternative build)
bridge/ # Python MCP bridge
βββ bridge_mcp_cheatengine.py # FastMCP server, 181 @mcp.tool() functions
βββ run-mcp.sh # Startup wrapper
βββ requirements.txt
Makefile # MinGW cross-compile
vendor/ # Downloaded Lua 5.3.6 headers (after make fetch-lua-headers)
build/ # Build artifacts β ce_http_bridge.dll is the output
Architecture Notes
Two execution paths in the plugin
SDK-direct (runs on HTTP worker thread, safe from any thread):
ReadProcessMemory, WriteProcessMemory, disassembly, assembly, AutoAssemble, breakpoint SDK calls, pause/unpause, InjectDLL, FreezeMem, symbol resolution.
Lua-marshaled (queued onto CE main thread via 10ms timer): everything that touches CE's Lua API β scans, module enumeration, structures, DBVM, cheat tables, register context, etc. CE's Lua state is not thread-safe; commands are executed sequentially on the main thread.
HTTP API convention
- All calls POST with JSON (except
GET /api/ping) - Success:
{"success": true, ...} - Error:
{"success": false, "error": "...", "error_code": "..."} - Error codes:
NO_PROCESS,INVALID_ADDRESS,INVALID_PARAMS,NOT_FOUND,OUT_OF_RESOURCES,INTERNAL_ERROR,DBVM_NOT_LOADED,DBK_NOT_LOADED,PERMISSION_DENIED,CE_API_UNAVAILABLE - Addresses: hex strings in and out (
"0x140001000") - Pagination:
offset/limitβ{total, offset, limit, returned, items[]}
Persistent state
A Lua-side serverState table (initialized by lua_bridge.cpp) holds:
scan_memscan/scan_foundlistβ most-recent scan sessionpersistent_scans[name]β named long-lived scan sessionsactive_watches[addr]β DBVM watch registrybreakpoints[handle]/breakpoint_hits[handle]β BP registry + hit buffersstructures[id]/structure_next_idβ CE structure registrysections[handle]β Win32 section objectsmappedMDL[addr]β kernel MDL handles for unmap
Security
Shell execution
run_command and shell_execute are gated behind CE_MCP_ALLOW_SHELL=1. Without this environment variable set on the plugin side, both return PERMISSION_DENIED.
Path traversal
File-I/O endpoints (file_exists, delete_file, get_file_list, get_directory_list, get_file_version, play_sound, write_region_to_file, read_region_from_file) reject paths containing ...
Arbitrary code execution
These tools are functionally equivalent to arbitrary code execution on the Windows host and target process and have the same blast radius:
evaluate_lua,create_threadβ arbitrary Lua in CE's scripting hostauto_assemble,inject_dll,inject_dotnet_dll,execute_code*β arbitrary code in the targetcompile_c_code,compile_cs_codeβ JIT compile + run
Exposing the MCP server to untrusted networks is equivalent to giving shell access. The HTTP server binds to 0.0.0.0:6789 by default β firewall accordingly.
Reference Implementations
- CE Plugin SDK: Metick/CheatEngine-DMA β SDK headers copied from here
- Feature source of truth: lauralex/cheatengine-mcp-bridge β the Named Pipe bridge whose ~180-tool surface this project replicates
- Architecture template: LaurieWired/GhidraMCP β dual-process HTTP bridge pattern
Troubleshooting
Plugin console shows "Lua bridge init failed"
CE's Lua state wasn't available at GetLuaState(). Lua-based endpoints will return errors; SDK-direct endpoints still work. Restart CE.
{"error_code":"DBVM_NOT_LOADED"} on DBVM watches
Enable DBVM in Cheat Engine: Settings β Debugger β Use DBVM. Requires Intel VT-x / AMD-V.
{"error_code":"DBK_NOT_LOADED"} on kernel endpoints
Enable kernel debugger: Settings β Debugger β Kernelmode debugger. Requires disabling Windows Driver Signature Enforcement or signing the DBK driver.
Cannot reach CE HTTP Bridge at http://host.docker.internal:6789
- Verify the DLL loaded (plugin console visible)
- From the container:
curl http://host.docker.internal:6789/api/ping - On Windows, open port 6789 in the firewall or bind the plugin to a specific interface via
CE_HTTP_PORT
Builds fail with lua.h: No such file or directory
Run make fetch-lua-headers to download Lua 5.3.6 into vendor/, or point to an existing copy with make LUA_SRC=/path/to/lua-5.3.x/src.
Plugin loads but the process crashes with an access violation on init
You built the DLL with Lua statically linked. The plugin must import CE's lua53-64.dll at runtime β rebuild with the import library (plugin/lua53-64.a generated from plugin/lua53-64.def) and verify with objdump -p build/ce_http_bridge.dll | grep 'DLL Name' that lua53-64.dll appears.
The plugin dll could not be loaded: 126
Missing DLL dependency. Run objdump -p build/ce_http_bridge.dll | grep 'DLL Name'; every entry must be either a Windows system DLL or lua53-64.dll. If libstdc++-6.dll or libwinpthread-1.dll appear, the -static-libstdc++ / -Wl,-Bstatic -lpthread flags in the Makefile aren't applying.
Builds fail with windows.h: No such file or directory
The toolchain isn't MinGW. Install mingw-w64 or override with make MINGW_PREFIX=<your-prefix>.
Related Skills
Agent-Reach
115.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
hyperframes
91.7kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.6kπ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
81.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
