GhidraMCP MCP Server

Active Socket based MCP Server for Ghidra

Local serverstdioGo

What is the GhidraMCP MCP server?

GhidraMCP MCP server exists for a simple reason — assistants are far more useful when they can act on GhidraMCP directly instead of describing what you should do. Active Socket based MCP Server for Ghidra.

What you get

A Ghidra extension that exposes 70 reverse-engineering tools to AI assistants through the Model Context Protocol (MCP). Open a binary in Ghidra, enable the plugin, and let Claude (or any MCP client) decompile functions, rename symbols, annotate code, search for vulnerabilities, and more.

  • 70 MCP tools — spanning query, mutation, analysis, malware triage, IoT/embedded security, structure management, async decompilation, and multi-instance support
  • Easy setup — -- plugin auto-starts the bridge; use MCP > Settings > Write to Claude Config to configure your MCP client
  • Cross-platform — -- prebuilt bridge binaries for Linux x86_64, Windows x86_64, macOS x86_64 and macOS ARM64
  • Configurable — -- port, localhost-only binding, API-key auth, auto-start, bridge enable/disable via GhidraMCP.properties
  • Multi-instance — -- work with multiple Ghidra windows simultaneously using target_port to route tool calls
  • Async decompilation — -- decompile large functions without blocking; poll for results later

What the assistant can call

Once GhidraMCP is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Enable — 1. Open a project and a program (binary) 2. File > Configure > GhidraMCP -- check MCPServerPlugin 3. The plugin auto-starts the TCP server

Configuration and credentials

You will need 2 environment variables: GHIDRA_API_KEY, GHIDRA_INSTALL_DIR. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. GhidraMCP's toolset — Prerequisites, Enable — is a fair guide to whether it matches your workflow. It is maintained by 13bm; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ghidramcp mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
Enable1. Open a project and a program (binary) 2. **File > Configure > GhidraMCP -- check MCPServerPlugin** 3. The plugin auto-starts the TCP server (default localhost:8765) and launches the bridge

How to install the GhidraMCP MCP server

{
  "mcpServers": {
    "ghidra": {
      "command": "/path/to/mcp_bridge",
      "args": ["--host", "localhost", "--port", "8765"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GHIDRA_API_KEYCredential the server authenticates with.Yes
GHIDRA_INSTALL_DIRFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use GhidraMCP to Prerequisites.
  • Use GhidraMCP to Enable.

Frequently asked questions

Any MCP-compatible client works, including Claude Desktop and Claude Code.