PyMemoryEditor
Scan, read and write another process's memory from an AI assistant
- Pricing
- Open source
- Platforms
- Windows, Linux, macOS
- Runs
- Locally
- Version
- 3.4.4
- Listing updated
- 3 days ago
About PyMemoryEditor
PyMemoryEditor is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
PyMemoryEditor's MCP server hands an assistant the search loop of a memory scanner: list processes, attach to one, scan for a value, narrow the matches as the value changes, and read or write the address it settles on. In the README's example, you say a game's health is 100, the assistant scans, asks you to take damage, refines the matches and returns the address.
Consent is built in. Attaching to a process you have not pre-approved asks permission, and write_value asks for confirmation on clients that honour the requiresUserInteraction hint, such as Claude Code. --read-only removes the write tool, and on Windows also opens the process handle without write rights; --confirm-writes makes the server itself ask before each write. The docs warn that it runs with your privileges and is not a sandbox.
The server is part of a pure-Python ctypes library for Windows, Linux and macOS, installed with the mcp extra. Fourteen tools keep scan results behind a handle on the server so a large first scan does not flood the model's context.
Install
Run in a terminal
claude mcp add pymemoryeditor -- uvx pymemoryeditorAdd to claude_desktop_config.json
{
"mcpServers": {
"pymemoryeditor": {
"command": "uvx",
"args": [
"pymemoryeditor"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"pymemoryeditor": {
"command": "uvx",
"args": [
"pymemoryeditor"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"pymemoryeditor": {
"type": "stdio",
"command": "uvx",
"args": [
"pymemoryeditor"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pymemoryeditor": {
"command": "uvx",
"args": [
"pymemoryeditor"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"pymemoryeditor": {
"command": "uvx",
"args": [
"pymemoryeditor"
]
}
}
}Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- write_value
- Writes a value to a process address; clients can be asked to confirm each write.
What it does
- Cheat Engine style loop
- Scan, narrow, then read or write the converged address.
- Per-process consent
- Attaching to an unapproved process asks for your permission.
- Write confirmation
- write_value can ask before every write; flags make that mandatory.
- Read-only mode
- `--read-only` removes the write tool entirely.
- Handle-based results
- Scan hits stay server-side so large scans use few tokens.
- Three operating systems
- Runs on Windows, Linux and macOS, 32-bit and 64-bit.
Good for
- Find a value in a running game by repeated scanning
- Inspect the live state of a program you are debugging
- Have an assistant locate a changing counter after you trigger it
- Script safe, read-only memory inspection in CI
Pricing
Open source
Free to install from PyPI
Prices change. Check pymemoryeditor.readthedocs.io before you buy.
PyMemoryEditor FAQ
Can it modify memory?
Yes through write_value, unless you start the server with `--read-only`.
Does it ask before attaching?
Yes, unless you pre-approve with `--allow-process` or `--allow-any-process`.
How do I install it?
`pip install "PyMemoryEditor[mcp]"`, then register `pymemoryeditor-mcp` with your client.
Is it a sandbox?
No. The docs say it runs with your privileges, so read the safety notes first.
Is PyMemoryEditor free?
Yes. PyMemoryEditor is open source, so you can use and self-host it for free.
How do I add PyMemoryEditor to Claude Code?
Run this command in your terminal: claude mcp add pymemoryeditor -- uvx pymemoryeditor
What are the best alternatives to PyMemoryEditor?
The closest alternatives to PyMemoryEditor are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to PyMemoryEditor

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools