Open-source MCP server that lets an agent drive IDA Pro for reverse engineering — decompile, trace cross-references, rename, retype, patch and debug — in the GUI or headless through idalib.
Ghidra MCP
Summary
MCP server and Ghidra extension with 219 tools for AI-assisted reverse engineering: decompile, rename, retype and comment, plus P-code emulation, live debugging and Ghidra Server workflows.
Features
- 219 tools with full write access, not just reads
- Convention enforcement for names and types in the tool layer
- P-code emulation, live debugging and data-flow analysis
- GUI or headless (Docker) modes and Ghidra Server collaboration
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
Ghidra MCP, by GitHub user bethington, bridges the NSA's open-source Ghidra reverse-engineering suite with MCP clients so an AI agent can analyse binaries alongside you. Where many Ghidra integrations expose a few read-only tools, this one ships 219, including write access: renaming, retyping, commenting, structure creation, script execution, P-code emulation, live debugger integration and P-code data-flow analysis.
It is opinionated about output quality. Naming and typing conventions are enforced in the tool layer, either fixed automatically, returned as warnings or rejected with an explanation, so different sessions and models produce consistent results, and a completeness score shows what is still undocumented in a function. SHA-256 function hashing carries documentation across versions of the same binary, batch operations cut API calls, and it can connect to shared Ghidra Servers for versioned, multi-user projects. It runs with the Ghidra GUI or headless, including in Docker for automated analysis.
Each release has two parts: a Ghidra extension, installed through File > Install Extensions and enabled as GhidraMCPPlugin, and a Python bridge installed with uv that your MCP client launches by absolute path. The extension only loads in the exact Ghidra version it was built for (12.2 with Java 25 for the 7.x line). Apache-2.0.
Related MCP Servers
See all Ghidra MCP alternativesDefensive MCP server and CLI that hardens your own release artifacts (JS bundles, Electron ASAR, WASM, SQLite, model files) against AI reverse-engineering agents.
MCP: x64dbg MCP Server
by duty1g
A native x64dbg plugin exposing 84 debugging tools and 22 event callbacks over HTTP, so an AI assistant can drive breakpoints, memory and disassembly directly.
Give coding agents your real Chrome session: console logs, network traffic, screenshots and Lighthouse audits streamed through a DevTools extension, with credentials scrubbed and a loopback-only connector.