ghidra-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ghidra-mcpDecompile the function at the current cursor location."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ghidra-mcp
An MCP server for Ghidra that executes Python snippets in Ghidra's PyGhidra scripting environment through a local Java plugin.
The Ghidra extension lives in ghidra_extension/. The Python MCP server lives
in ghidra_mcp/.
Setup
Nix development shell
If you use Nix, enter the repository development shell first:
nix developSet GHIDRA_INSTALL_DIR to a Ghidra 12.1.2 installation.
Build the Ghidra extension
Standalone builds require JDK 21. Build the extension ZIP with:
./ghidra_extension/build.shThe result is written to ghidra_extension/dist/.
Install and enable the plugin
For local development, build and install the extension into your Ghidra user directory:
./ghidra_extension/install.shRestart Ghidra, open File -> Configure... in CodeBrowser, and enable
GhidraMcpPlugin. The plugin starts a loopback HTTP bridge on
127.0.0.1:18489.
Ghidra must be launched with PyGhidra support:
~/ghidra_12.1.2_PUBLIC/support/pyghidraRunConfigure your MCP client
For Codex, add the server globally:
codex mcp add ghidra -- uvx --from git+https://github.com/I-CAN-hack/ghidra-mcp.git ghidra-mcpFor other MCP clients, use an equivalent configuration, for example:
{
"mcpServers": {
"ghidra": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/I-CAN-hack/ghidra-mcp.git",
"ghidra-mcp"
]
}
}
}Related MCP server: PcmHackMCP
Tools
Tools and their input schemas are published directly by the MCP server. Their descriptions live with the implementations as Python docstrings.
The tool implementations and their Ghidra-side snippets are kept together
under ghidra_mcp/tools/core/. New tools are detected automatically from its
tools.py module when the server starts.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server to assist with JxBrowser development.
Repository knowledge graph MCP server for codebase understanding and debugging.
Host your MCP tool over streamable HTTP in one command.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceExposes Ghidra reverse engineering capabilities via MCP, enabling LLMs and agents to analyze binaries, decompile, search, and edit programs headlessly or with GUI integration.423Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server and Ghidra plugin for reverse engineering, enabling clients like Claude to control Ghidra. Adds a run_python tool to execute arbitrary Jython scripts server-side.1Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA PyGhidra-based MCP server that exposes Ghidra's reverse engineering capabilities to AI agents, enabling binary analysis via tools like overview, search, view, list, edit, script execution, and version control.1-
- AlicenseAqualityDmaintenanceAn MCP server that exposes Python debugging tools backed by debugpy, providing a focused debugging surface for local scripts.11MIT