GhidraMCP

Security

MCP Server for Ghidra.

Your AI app calls the GhidraMCP MCP server, which does the security work and sends the result back to the chat.

About GhidraMCP

GhidraMCP is a community MCP server from LaurieWired, filed in our directory under security. MCP Server for Ghidra.

At a glance

Publisher
LaurieWired (community)
Runs
See the README for setup
Written in
Java
License
Apache-2.0
GitHub stars
12,134

How to set up GhidraMCP

  1. Follow the install steps in the GhidraMCP README; it is written in Java, so have that toolchain ready.
  2. Check the GhidraMCP README for keys or settings; the registry lists none that GhidraMCP requires.
  3. Add GhidraMCP to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the GhidraMCP tools to confirm the connection.
  5. Run one read-only task with GhidraMCP first, and keep your app asking before each tool call until the results look right.

GhidraMCP compared with similar servers

  • Fastapi by tadata-org has fewer GitHub stars than GhidraMCP (12k against 12.1k); both are community servers, and Fastapi runs as a remote server and GhidraMCP runs on your own machine.
  • Ida Pro by mrexodia has more GitHub stars than GhidraMCP (13.7k against 12.1k); both are community servers, and both run locally.
  • AiSOC by beenuar has fewer GitHub stars than GhidraMCP (8.9k against 12.1k); both are community servers, and both run locally.

Before you connect GhidraMCP

  • Give GhidraMCP its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each GhidraMCP tool call until you trust what it does with them.
  • Treat text that GhidraMCP fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for GhidraMCP on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for GhidraMCP

How marketing and sales teams put GhidraMCP to work, by company size. Pick the size closest to yours and start GhidraMCP on one use case.

Small business

  • A small business can use GhidraMCP to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask GhidraMCP whether a tool or vendor has known issues before connecting it to customer data.
  • GhidraMCP runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use GhidraMCP to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect GhidraMCP to scan campaign sites and forms before launch, not after an incident.
  • Start GhidraMCP on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run GhidraMCP in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use GhidraMCP to keep evidence for audits, showing which agents reached which data and when.
  • GhidraMCP is a community server, so have security review the code and pin a version before GhidraMCP touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

GhidraMCP README

From LaurieWired/GhidraMCP on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

ghidraMCP

ghidraMCP is an Model Context Protocol server for allowing LLMs to autonomously reverse engineer applications. It exposes numerous tools from core Ghidra functionality to MCP clients.

https://github.com/user-attachments/assets/36080514-f227-44bd-af84-78e29ee1d7f9

Features

MCP Server + Ghidra Plugin

  • Decompile and analyze binaries in Ghidra
  • Automatically rename methods and data
  • List methods, classes, imports, and exports

Installation

Prerequisites

  • Install Ghidra 12.1.4
  • Install uv (or Python 3.10+ with pip install git+https://github.com/LaurieWired/GhidraMCP, then use ghidra-mcp as the command below)

Ghidra

First, download the latest release from this repository. This contains the Ghidra plugin and Python MCP client. Then, you can directly import the plugin into Ghidra.

  1. Run Ghidra
  2. Select File -> Install Extensions
  3. Click the + button
  4. Select the ghidra_12.1.4_PUBLIC_<date>_GhidraMCP.zip from the downloaded release
  5. Restart Ghidra
  6. Make sure the GhidraMCPPlugin is enabled in File -> Configure -> Developer
  7. Optional: Configure the port in Ghidra with Edit -> Tool Options -> GhidraMCP HTTP Server

Video Installation Guide:

https://github.com/user-attachments/assets/75f0c176-6da1-48dc-ad96-c182eb4648c3

MCP Clients

Theoretically, any MCP client should work with ghidraMCP. Most clients accept a JSON config like the following:

{
  "mcpServers": {
    "ghidra": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/LaurieWired/GhidraMCP",
        "ghidra-mcp",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

The server IP and port are configurable and should be set to point to the target Ghidra instance. If not set, both will default to localhost:8080.

For clients that connect to a URL instead of launching a command, first run the MCP server yourself:

uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --transport streamable-http --mcp-host 127.0.0.1 --mcp-port 8081 --ghidra-server http://127.0.0.1:8080/

Then add http://127.0.0.1:8081/mcp as a remote server in your client.

Example 1: VS Code

Run MCP: Add Server from the Command Palette, or add the following to .vscode/mcp.json in your workspace:

{
  "servers": {
    "ghidra": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/LaurieWired/GhidraMCP",
        "ghidra-mcp",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

Example 2: Claude Code

Run the following command:

claude mcp add ghidra -- uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --ghidra-server http://127.0.0.1:8080/

Headless (no Ghidra GUI)

ghidra-mcp can also import and analyze a binary itself using PyGhidra, with no Ghidra GUI running. This needs Python 3.10–3.13, the GhidraMCP extension installed in Ghidra (or --extension-jar /path/to/GhidraMCP.jar), and GHIDRA_INSTALL_DIR set to your Ghidra 12.1.4 directory:

uvx --python 3.13 --from "ghidra-mcp[headless] @ git+https://github.com/LaurieWired/GhidraMCP" ghidra-mcp --headless --binary /path/to/target

Use the same command and arguments in any of the client configs above. Add --project DIR to keep the Ghidra project (and save changes) between runs. On macOS, build Ghidra's decompiler once with support/gradle/gradlew buildNatives from the Ghidra directory.

Building from Source

  1. Set GHIDRA_INSTALL_DIR to your Ghidra 12.1.4 directory
  2. Build the extension with Gradle (Java 21) by running:

cd extension && $GHIDRA_INSTALL_DIR/support/gradle/gradlew buildExtension

The generated zip file in extension/dist/ includes the built Ghidra plugin and its resources. These files are required for Ghidra to recognize the new extension.

  • lib/GhidraMCP.jar
  • extension.properties
  • Module.manifest

The Python MCP server can be run from a checkout with uv run ghidra-mcp, and tested with uv run pytest.

Questions about GhidraMCP

What is the GhidraMCP MCP server?

MCP Server for Ghidra. GhidraMCP is maintained by LaurieWired on GitHub at LaurieWired/GhidraMCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the GhidraMCP MCP server?

GhidraMCP doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (LaurieWired/GhidraMCP). Like most servers, GhidraMCP ends with a command or URL you paste into your AI app's MCP config.

Does GhidraMCP need an API key?

The registry lists no required keys for GhidraMCP. Check the GhidraMCP README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is GhidraMCP an official MCP server?

No. GhidraMCP is a community server maintained by LaurieWired. Community servers can be excellent; read the code and the open issues before you give GhidraMCP access to company data.

What license is GhidraMCP under?

GhidraMCP is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of GhidraMCP; the service it connects to has its own terms.