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.
GhidraMCPMCP Server
Summary
LaurieWired's MCP server and Ghidra plugin that let an AI agent decompile binaries, list functions, classes, imports and exports, and rename methods and data inside a running Ghidra project, or headlessly via PyGhidra.
Features
- Decompile and analyse binaries in a live Ghidra project
- Rename methods and data automatically as the agent learns the code
- List methods, classes, imports and exports
- Headless mode that imports and analyses a binary via PyGhidra, no GUI needed
- stdio by default, or streamable HTTP for URL-based clients
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
GhidraMCP, by security researcher LaurieWired, is one of the best-known ways to put an AI agent in front of Ghidra, the open-source reverse-engineering suite released by the NSA. It has two halves: a Ghidra extension that starts a small HTTP server inside Ghidra, and a Python MCP server that your client launches and that forwards tool calls to that server. The agent can then decompile and analyse functions, list methods, classes, imports and exports, and rename functions and data as it works out what a binary does, so a malware triage or a crackme becomes a conversation rather than hours of manual labelling.
Setup takes a few minutes. Download the release zip, add it in Ghidra through File > Install Extensions, enable GhidraMCPPlugin under File > Configure > Developer, and point your MCP client at the server with uvx straight from the Git repository; the Ghidra address and port are configurable and default to localhost:8080. Clients that connect to a URL instead of launching a command can run the server with the streamable HTTP transport. There is also a headless mode that imports and analyses a binary through PyGhidra with no Ghidra GUI running, which needs Python 3.10-3.13 and GHIDRA_INSTALL_DIR set.
The extension is built for a specific Ghidra release (12.1.4 for the current version), so match your Ghidra install to the release you download. It is an independent community project, not affiliated with the Ghidra team. Apache-2.0.
Related MCP Servers
See all GhidraMCP alternativesJADX decompiler plugin plus MCP server that let Claude and other LLM clients read, search, rename and comment decompiled Android APK code, the manifest and resources, and inspect the JADX debugger, live from JADX-GUI.
Defensive MCP server and CLI that hardens your own release artifacts (JS bundles, Electron ASAR, WASM, SQLite, model files) against AI reverse-engineering agents.
MCP: IDA Pro MCP
by mrexodia
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.