Pyghidra LiteSAFE
Lightweight MCP server for Ghidra-based reverse engineering with iOS, Linux, and game file support
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://pypi.org/project/pyghidra-lite/) [](https://pypi.org/project/pyghidra-lite/) [](LICENSE) [](https://modelcontextprotocol.io)
Token-efficient MCP server for Ghidra-based reverse engineering. Analyze ELF, Mach-O, and PE binaries with Swift, Objective-C, and Hermes support.
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
JDK 21+ and Ghidra 11.x are required.
# 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. Set GHIDRA_INSTALL_DIR only for non-standard paths.
2. Install pyghidra-lite
pip install pyghidra-lite
3. Add to Claude Code
Create .mcp.json in your project (or ~/.claude.json for global):
{
"mcpServers": {
"pyghidra-lite": {
"command": "pyghidra-lite"
}
}
}4. Use it
You: Analyze the binary at /path/to/binaries/app Claude: [c
8f26fe210d30OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add pyghidra-lite -- python pyghidra-lite==0.8.0
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- declared (3 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (10)
.SRCINFO
leak = str(Path.home() / ".ssh" / "id_rsa")
"../../etc",
server._safe_project_path(tmp_path, "../../etc")
"169.254.169.254:8000", # cloud metadata endpoint
assert _backend_url("127.0.0.1", 19101) == "http://127.0.0.1:19101/mcp"assert _backend_url("0.0.0.0", 8080) == "http://0.0.0.0:8080/mcp"url = f"http://127.0.0.1:{port}/mcp"needle = bytes.fromhex(hex_str)
Gates applied: no_behavioural_pass.
8f26fe210d30full audit observations/trust-audit/mcp-server/johnzfitch__pyghidra-lite.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 8f26fe210d30 | SAFE | B | 89 | first audit |
Questions
What is the Pyghidra Lite MCP server?
Lightweight MCP server for Ghidra-based reverse engineering with iOS, Linux, and game file support
Is Pyghidra Lite safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Pyghidra Lite need?
No credential environment variables were found in its source, so it appears to need none.
How does Pyghidra Lite run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as pyghidra-lite.
How current is this page?
The grade is for one exact copy of the source (8f26fe210d30), read on 2026-10-08. The repository is watched and re-audited when it changes.