miscusi-peek/cheatengine-mcp-bridge
A Python–Lua MCP bridge for inspecting Windows process memory with Cheat Engine
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
The bridge has two runtime components: MCP_Server/mcp_cheatengine.py, a Python FastMCP server, and MCP_Server/ce_mcp_bridge.lua, which runs inside Cheat Engine. The MCP client exchanges JSON-RPC with the Python subprocess over stdio. In direct mode, Python reaches the Lua bridge through the Windows named pipe CE_MCP_Bridge_v99 using pywin32. In relay mode, ce_tcp_relay.py accepts TCP connections on the Windows side and forwards them to the pipe; the client-facing MCP transport remains stdio.
The Lua bridge separates blocking transport I/O from Cheat Engine API execution. A worker thread waits for requests and synchronizes with the main thread for calls that interact with Cheat Engine. That separation keeps pipe waits off the main thread but does not imply that target operations run in parallel. Command handlers use globals to stay below Lua’s 200-local limit for a single chunk. The exposed command set is the integration surface; no separate plugin system is documented.
Key Capabilities & Differentiators
The inspection surface covers typed memory reads, pointer-chain resolution, value and byte-pattern scanning, disassembly, call and reference lookup, structure inspection, and C++ class identification via RTTI. Symbol management includes Windows symbol resolution, and the process interface covers enumeration, attachment, and pause/resume. Hardware breakpoints and optional DBVM tracing add runtime observations when a static snapshot is insufficient.
The interface is not read-only: it also exposes memory allocation and protection changes, process control, and code execution capabilities. Shell tools are separately opt-in through CE_MCP_ALLOW_SHELL; leaving that flag unset does not make the rest of the interface read-only. The test suite’s example output lists 36 passes and one skipped signature-generation test. That is a regression baseline, not evidence of scan speed, compatibility across targets, or analysis accuracy.
Trade-offs & Limitations
Compared with using the Cheat Engine GUI or writing Lua directly, the MCP bridge is useful when an assistant needs to connect several observations in one investigation, such as reading a structure and then inspecting a related function. Manual debugging keeps tool selection and state changes under direct operator control. A direct Lua script is generally easier to reproduce when the inspection sequence is already fixed. The extra Python and transport layers also add failure points: an MCP connection, a working bridge, and attachment to the intended process are separate conditions to verify.
The TCP relay removes the Windows requirement for the Python adapter, not for Cheat Engine, and widens the trust boundary when used across hosts. Avoid treating it as a shared service for untrusted callers or giving a model unattended access to live processes. DBVM also carries a documented host-stability caveat: protected-page scans can trigger CLOCK_WATCHDOG_TIMEOUT when Cheat Engine’s “Query memory region routines” option is enabled. The bridge’s MIT license is permissive, but it does not grant permission to inspect third-party software.
Hardware & Deployment Guide
Run Cheat Engine and the Lua bridge on Windows. Load MCP_Server/ce_mcp_bridge.lua from disk, configure the MCP client to launch MCP_Server/mcp_cheatengine.py, and verify connectivity with ping. For a Windows-side Python adapter, MCP_Server/requirements.txt supplies mcp and pywin32. To run the adapter in WSL, a Linux VM, or a container, keep Cheat Engine and ce_tcp_relay.py on Windows and install the adapter dependencies from MCP_Server/requirements-tcp.txt. Set CE_MCP_TRANSPORT=tcp and point CE_MCP_HOST and CE_MCP_PORT at the relay.
The bridge itself requires neither an external model API nor a GPU; inference is a separate client-side choice. Keep the relay reachable only by trusted callers: access to it grants control of the bridge. Leave shell execution disabled unless it is explicitly required, and enable DBVM only for tools that need it. The bridge’s ping example reports version 12.0.0, but there is no published GitHub release in the available metadata; a runtime version is not a packaged release milestone.
Engineers who already use Cheat Engine to debug their own Windows binaries and want an MCP client to correlate memory, structure, and code observations under operator supervision.
You need a Windows-free backend, enforceable read-only access for untrusted callers, or unattended debugging of production processes. For a fixed inspection sequence, use a direct Lua script.
Quick Start & Installation
pip install -r MCP_Server/requirements.txt
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cheatengine-mcp-bridge ★ | 1.9k | +24 | Lua | MIT | A Python–Lua MCP bridge for inspecting Windows process memory with Cheat Engine |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| mcp-for-blender | 37.1k | +1.1k | Python | GPL-3.0 | A local MCP bridge for inspecting and editing live Blender scenes with AI |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/miscusi-peek/cheatengine-mcp-bridge.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cheatengine-mcp-bridge
How does an MCP client connect, and what does ping verify?
Does the bridge need a GPU, and how should I size the host?
Can we self-host it or incorporate it into a commercial workflow?
When is the bridge preferable to the Cheat Engine GUI or direct Lua scripting?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy