SuperAPI AI Directory

PyMemoryEditor

PyMemoryEditor is a pure Python library (built on ctypes) for inspecting, modifying, and searching the memory of any running process on Windows, Linux, and macOS. It provides a unified API with no C compiler or native build steps required, and supports both 32-bit and 64-bit systems. The library ships with a Cheat Engine-like GUI scanner application and includes a Model Context Protocol (MCP) server that allows AI assistants to drive memory scanning workflows through natural language. Main uses include game modding and speedrunning tools, debugging and introspection, observability tooling, security and reverse engineering research, and teaching. Installation can include extras for the GUI application, accelerated scanning (NumPy vectorization), and MCP support. The project is MIT licensed and free for personal and commercial use.

Open website

About this tool

PyMemoryEditor is a pure Python library built on top of ctypes, designed to let developers inspect, modify, and search the memory of any running process with just a few lines of Python code. It provides a unified API covering Windows, Linux, and macOS, supports 32-bit and 64-bit systems, and requires no C compiler or native build steps.

Key capabilities include: reading, writing, and scanning the memory of any process; providing a Cheat Engine-like workflow; shipping with a GUI application (a Cheat Engine-style scanner) available via the app extra; supporting NumPy via the speed extra to accelerate numeric scan comparison loops, yielding roughly 10–30x speedups on selective scans; and including a Model Context Protocol (MCP) server that allows AI assistants to drive the entire scanning workflow through natural language, for example "find the health value in my game, it's 100 now" — the server will scan, ask the user to take damage, refine the matches, and return the address. MCP provides 14 tools covering the full workflow, and scan results are kept in server-side handles to avoid flooding the context with large result sets.

Usage: install the library via pip, optionally with extras such as app, speed, and mcp. Basic usage is three lines of code to read, write, or scan another process, consistent across platforms. The MCP server can be configured in clients such as Claude Desktop and editors via the mcpServers JSON configuration. Full documentation is available at pymemoryeditor.readthedocs.io, covering installation, the Cheat Engine workflow, all methods and parameters, the GUI application guide, platform notes, and troubleshooting.

Use cases: game modding and speedrunning tools (the classic Cheat Engine use case); debugging and introspection (inspecting live state without attaching a debugger); observability tooling (sampling variables in running processes for telemetry); security and reverse engineering research (on systems you own or are authorized to test); and teaching (the bundled application is a good teaching tool for explaining how memory scanning works).

Limitations and responsibility: PyMemoryEditor interacts with other processes through OS-level APIs and should only be used against processes you own or have explicit permission to inspect. The project is licensed under the MIT License and is free for personal and commercial use. Contributions of code, issue reports, and feature ideas are welcome; see CONTRIBUTING.md for development setup and test layout.