pyghidra-lite


Token-efficient MCP server for Ghidra-based reverse engineering. Analyze ELF, Mach-O, and PE binaries with Swift, Objective-C, and Hermes support — decompile, disassemble, trace calls and value flow, recover data types, and map addresses back to file offsets. Runs on Linux, macOS, and Windows; ships as a Claude Code plugin with a bundled reverse-engineering skill.
Bottom line: a lean, security-first Ghidra MCP. It is read-only by default — analysis tools never mutate your binaries or the server's configuration (which is frozen for the life of the process). The one tool that writes, annotate (rename / comment / prototype), is opt-in (--allow-write) and human-confirmed: every change is approved by you through an MCP elicitation prompt before it's committed, and it fails closed if your client can't ask. You get an analyst-agent that can persist its findings — under supervision — without giving up the read-only safety story.
Quick Start
1. Prerequisites
A 64-bit JDK 21+ and Ghidra 11.x or 12.x are required (tested with Ghidra 12.1.2 and JDK 21).
# macOS
brew install openjdk@21
brew install ghidra
# Ubuntu/Debian
sudo apt install openjdk-21-jdk
# Download Ghidra from https://ghidra-sre.org
# Arch Linux
sudo pacman -S jdk21-openjdk
yay -S ghidra
Ghidra installed via Homebrew (brew install ghidra) or to /opt/ghidra or ~/ghidra is found automatically. Elsewhere — including any Windows install — point GHIDRA_INSTALL_DIR at the extracted ghidra_<version>_PUBLIC folder.
2. Install — pick one
- Claude Code plugin (recommended for Claude Code)
- MCP server + reverse-engineering skill in one step; prompts for your Ghidra directory. Needs uv on
PATH.
/plugin install pyghidra-lite --marketplace johnzfitch/pyghidra-lite
- Any MCP client
- Install the package, then add it to your client (Claude Code:
.mcp.json in your project or ~/.claude.json; other clients: see MCP Configuration).
pip install pyghidra-lite
{
"mcpServers": {
"pyghidra-lite": {
"command": "pyghidra-lite"
}
}
}
3. Check the environment
pyghidra-lite doctor # Ghidra, JDK, decompiler, project dir, locks; exits 1 on problems
[!TIP]
Plugin users without a shell install can run the same check with uvx pyghidra-lite doctor.
4. Use it
You: Analyze the binary at /path/to/binaries/app
Claude: [calls load, info, code...]
Installation
Claude Code plugin
Installs the MCP server (run with uvx, so uv must be on
PATH) together with the pyghidra-lite:reverse-engineering workflow skill, and asks
for your Ghidra directory, cache directory, optional path restriction and whether to
allow annotate:
/plugin install pyghidra-lite --marketplace johnzfitch/pyghidra-lite