Skip to main content
Glama
I-CAN-hack
by I-CAN-hack

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 develop

Set 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.sh

The 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.sh

Restart 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/pyghidraRun

Configure 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-mcp

For 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.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Exposes Ghidra reverse engineering capabilities via MCP, enabling LLMs and agents to analyze binaries, decompile, search, and edit programs headlessly or with GUI integration.
    423
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP 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.
    1
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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
    -