
PyMemoryEditor
io.github.JeanExtreme002v3.0.2更新於 Oct 2, 2026
Read, write and scan process memory, Cheat Engine style, on Windows, Linux and macOS.
概覽
讓助手以 Cheat Engine 方式在 Windows、Linux 和 macOS 上讀取、寫入與掃描執行中處理程序的記憶體。
- 功能
- PyMemoryEditor 提供一個本機 MCP 伺服器,驅動一個純 Python 的處理程序記憶體函式庫。十四個工具涵蓋完整的 Cheat Engine 工作流程:數值掃描、範圍掃描、結果篩選、位元組簽章(AOB)與正規表達式模式掃描、多層指標鏈,以及用來尋找可跨 ASLR 存活的靜態位址的指標掃描。掃描結果以控制代碼形式保存在伺服器端,因此一次大規模首次掃描只消耗少量 token。支援讀取與寫入目標處理程序中的數值。
- 適用情境
- 適用於遊戲修改與競速工具、無需附加偵錯工具即可檢查執行中程式的狀態、為可觀測性取樣變數,或在你自己擁有或獲授權測試的系統上進行記憶體掃描研究。
- 執行需求
- 以本機處理程序在使用者機器上執行(僅桌面端,無網頁可執行版本)。安裝 PyPI 套件 pymemoryeditor 的 mcp 附加元件,並執行 pymemoryeditor-mcp 命令,例如透過 uvx。未宣告任何身分驗證、環境變數或標頭。存取其他處理程序可能需要作業系統層級權限。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PyMemoryEditor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
PyMemoryEditor
A pure-Python library (built on ctypes) that lets you inspect, modify and search the memory of any running process in a few lines of Python — Cheat Engine workflows on Windows, Linux and macOS!
Read, write and scan the memory of any process — straight from Python.
One unified API. Three operating systems. No C compiler. No native build step.
[Python Package] [Coverage] [Pypi] [License] [Python Version] [Downloads]
Runs on Windows · Linux · macOS — 32-bit and 64-bit.
[PyMemoryEditor app attached to a running process]
Tweak a value in a running game · inspect a live program's state · harvest data straight from RAM.
Install
To also install the bundled GUI app (a Cheat Engine-style scanner), use the app extra:
For faster scans on large processes, add the speed extra. It pulls in NumPy
and automatically vectorizes the numeric scan comparison loop — ~10–30× faster on
selective scans:
To let an AI assistant drive the library over the Model Context Protocol, use
the mcp extra (see below):
📖 Full guide at Read the Docs.
See it in action
That's it — read, write or scan another process in three lines, the same way on every platform.
Let an AI assistant do it (MCP)
PyMemoryEditor ships a Model Context Protocol server, so an AI assistant can run the whole loop itself:
"Find the health value in my game. It's 100 right now."
It scans, asks you to take damage, refines the matches, and hands you the address.
Or in any client that reads mcpServers JSON (Claude Desktop, editors, …):
Fourteen tools cover the full workflow, with scan results kept server-side behind a handle, so a 40 000-hit first scan costs a few tokens instead of your whole context.
Read the MCP guide to learn more.
📖 Documentation
Full documentation lives at pymemoryeditor.readthedocs.io — installation, the Cheat Engine workflow, every method and parameter, the GUI app guide, platform notes and troubleshooting.
A quick map of where to go:
What can I build with this?
- 🎮 Game modding & speedrunning tools — the classic Cheat Engine use case.
- 🔬 Debugging & introspection — inspect live state without attaching a debugger.
- 📊 Observability tooling — sample variables in a running process for telemetry.
- 🔐 Security & reverse-engineering research — on systems you own or are authorized to test.
- 🎓 Learning — the bundled app is a great teaching tool for how memory scanning works.
[!NOTE] Responsible use. PyMemoryEditor talks to other processes through OS-level APIs. Only point it at processes you own or have explicit permission to inspect.
🤝 Contributing
Pull requests, bug reports and feature ideas are very welcome. Read
CONTRIBUTING.md for the development setup, test layout and
the small set of platform-specific quirks to be aware of.
If PyMemoryEditor helped your project, please ⭐ the repo — it's the easiest way to support the work and to help others discover the library.
License
Released under the MIT License — free for personal and commercial use.
來源:README.md,提交 1e1999d
工具
0版本歷史
1- v3.0.2最新Oct 2, 2026
