Setting up

Set up GhidraMCP with Claude Code

Install Ghidra and LaurieWired's GhidraMCP 2.0, connect it to Claude Code or Claude Desktop, and run a first session on a CrackMe or your own binary.

By Updated 8 min readGhidraMCPGhidraClaude Code

GhidraMCP is a Ghidra plugin plus a small MCP server that lets an AI client such as Claude Code list functions, read decompiled code and rename things in the program you have open in Ghidra. This guide gets you from nothing to a working Claude Code session on a CrackMe or a binary you own.

GhidraMCP changed a lot in version 2.0 (released 10 October 2026). Older tutorials, including some videos, use a separate Python bridge script and an older Ghidra version. The 2.0 release notes say that bridge is no longer needed. If an old video and the current README disagree, follow the README.

This is the setup guide. For what the tool is, its licence and its versions, see the GhidraMCP tool page. For real projects where Claude drove Ghidra, see Claude Code and Ghidra: projects that used both.

Key facts
  • GhidraMCP 2.0, released 10 October 2026, no longer needs the separate Python bridge script that older tutorials use (release notes).
  • The README pins Ghidra 12.1.4, which needs a 64-bit JDK 21.
  • The guide compares four servers: LaurieWired/GhidraMCP, ReVa, 13bm/GhidraMCP with 70 tools, and pyghidra-mcp.
  • I have not benchmarked the servers against each other, and none of their READMEs claims to beat the others.

Which Ghidra MCP server?

Several MCP servers connect an agent to Ghidra, and "GhidraMCP" is also the name of more than one repository. This guide uses LaurieWired's because it is the one whose install steps are written out below. The others, from each project's own README (details change often, so check the README before you pick):

ServerWhat the README saysPick it if
LaurieWired/GhidraMCPGhidra plugin plus an MCP server run with uvx; Ghidra 12.1.4 for release 2.0; optional PyGhidra headless modeYou want the version this guide walks through
ReVaA Ghidra extension with a built-in MCP server over streamable HTTP, in an assistant mode (Ghidra open) or a headless mode; supports Ghidra 12.0 and above, and Java 25 for Ghidra 12.2+You want small tools aimed at long sessions on large binaries, or you run Ghidra 12.2+
13bm/GhidraMCPA Ghidra extension exposing 70 tools; a Go bridge speaks MCP over stdio; needs Ghidra 12.0.3+ and Java 21+You want the widest tool list and a prebuilt bridge
pyghidra-mcpA command-line server built on PyGhidra; headless by default, --gui to attach a window; streamable HTTP recommended, stdio as a fallback; needs GHIDRA_INSTALL_DIRYou want CLI or CI-style analysis without a Ghidra window

For a side-by-side with IDA and Binary Ninja bridges, see REA vs GhidraMCP vs IDA Pro MCP. None of the READMEs above claims to beat the others, and I have not benchmarked them against each other.

What do I need before I start?

  • Ghidra 12.1.4. The GhidraMCP README pins this exact version, and the extension zip is built for it. Ghidra is free from ghidra-sre.org or the NSA GitHub releases.
  • A 64-bit JDK 21. Ghidra 12.1.4's Getting Started guide lists the Java 21 JDK as a minimum requirement.
  • uv, which runs the MCP server for you. If you would rather use plain Python, the README says Python 3.10+ with pip install git+https://github.com/LaurieWired/GhidraMCP works, and you then call ghidra-mcp directly in the commands below.
  • Claude Code (or Claude Desktop) and a Claude plan or API key.
  • A target you are allowed to analyse: a CrackMe from a CTF or training site, or a program you wrote yourself. Compile a tiny C program with a password check if you have nothing else.

1. Install Ghidra

Download ghidra_12.1.4_PUBLIC_20260921.zip, extract it, and start it with ghidraRun (Linux and macOS) or ghidraRun.bat (Windows). If Ghidra cannot find Java, follow the JDK steps in its Getting Started guide and add the JDK's bin directory to your PATH.

Create a project (File > New Project), import your target (File > Import File), open it in the CodeBrowser and let auto-analysis finish. GhidraMCP answers questions about the program open in this window, so the AI sees nothing until this step is done.

2. Install the GhidraMCP extension

Download the latest release from the releases page. For 2.0 the download is GhidraMCP-release-2-0.zip; inside it is the Ghidra extension zip. The README's steps are:

  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 GhidraMCPPlugin is enabled in File > Configure > Developer.
  7. Optional: change the port under Edit > Tool Options > GhidraMCP HTTP Server.

The plugin runs a small HTTP server inside Ghidra. By default the MCP server expects it at http://127.0.0.1:8080/.

How Claude Code reaches the program open in GhidraClaude Code starts the GhidraMCP server with uvx. The server talks over HTTP to the GhidraMCP plugin, which reads the program open in the CodeBrowser.Claude CodeMCPghidra-mcp server started by uvxHTTP, port 8080GhidraMCP plugin inside GhidrareadsProgram open in the CodeBrowser
Claude Code starts the GhidraMCP server with uvx. The server talks over HTTP to the GhidraMCP plugin, which reads the program open in the CodeBrowser.

3. Connect Claude Code

The README gives this command:

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

Per the Claude Code MCP docs, everything after -- is the command that starts the server, and the server is added at local scope by default: it only loads in the folder where you ran the command. Run it from the folder you will work in, or add --scope user before the name to make it available everywhere:

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

If you changed the port in Ghidra, change --ghidra-server to match.

Claude Desktop instead

Claude Desktop reads the same JSON shape the README shows for generic clients. Open Settings > Developer > Edit Config (the file is claude_desktop_config.json, per the MCP docs) and add:

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

Quit Claude Desktop fully and reopen it.

Headless option

GhidraMCP 2.0 can also import and analyse a binary itself through PyGhidra, with no Ghidra window. The README says this needs Python 3.10 to 3.13, the extension installed, and GHIDRA_INSTALL_DIR pointing at your Ghidra 12.1.4 folder:

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

Add --project DIR to keep the Ghidra project and your renames between runs. Use the GUI first. Headless gets easier once you know what a good session looks like.

How do I check it works?

  1. Make sure Ghidra is running with your target open in the CodeBrowser.
  2. In a terminal, run claude mcp list. The ghidra entry should show ✔ Connected. If it says ✘ Failed to connect, run claude mcp get ghidra to see the error.
  3. Start claude and type /mcp to see the server and its tool count.
  4. Ask something small and checkable:
text
Using the ghidra tools, list the functions in the open program and decompile the entry point.
Do not guess: only report what the tools return.

Compare the answer with what you see in Ghidra. If the function names and addresses match, the connection works.

Troubleshoot the connection in layers

This checklist comes from the documentation. It is not a tested compatibility matrix. Check the current GhidraMCP installation instructions before changing versions.

SymptomCheck firstNext decision
Extension missingMatch the extension release to Ghidra, restart, and enable the plugin in the CodeBrowser tool configuration.An absent extension is a Ghidra setup problem; changing the model will not install it.
Connection refusedCompare the plugin's HTTP port with --ghidra-server.The MCP bridge and the Ghidra HTTP server are separate processes.
URL-based client cannot connectThe documented example uses port 8081 and /mcp for the MCP endpoint; port 8080 serves Ghidra.Do not give the client the Ghidra server URL as its MCP endpoint.
uvx not found, or the server fails to startThe README's command runs through uvx, so uv must be installed and on the PATH of the shell where Claude Code starts the server.claude mcp get ghidra shows the error. Python 3.10+ with pip install is the README's alternative.
Ghidra will not start, or complains about JavaGhidra 12.1.4 needs a 64-bit JDK 21 per its Getting Started guide. ReVa's README says Ghidra 12.2+ needs Java 25.Match the JDK to your Ghidra version, not to the MCP server.
Headless mode cannot find GhidraThe README says GHIDRA_INSTALL_DIR must point at your Ghidra folder; PyGhidra mode needs Python 3.10 to 3.13.Set the variable in the same shell that launches the server.
Tools connect but no useful program appearsOpen and analyse the intended program in CodeBrowser.Inspect the tool result before asking the model to explain functions.

For Claude Code, inspect claude mcp list, claude mcp get ghidra, and /mcp. Check configuration scope if the server appears in one folder but not another. Project configuration can also require approval. See Claude Code's server management and troubleshooting documentation.

Before filing an issue, record the OS, Ghidra version, extension release, MCP command, client version, transport and exact error. Redact credentials and private binary contents. Change one layer at a time and note the result. A useful report says what failed and what still connects.

Your first session on a CrackMe

Give Claude a narrow goal and a way to check its answer. A prompt along these lines works well:

text
This is a CrackMe I downloaded for practice. Find the function that checks the input,
explain the check in plain English, and rename the functions and variables you
understand. Show me the decompiled code you based each conclusion on.
Derive the answer from the code; do not brute force it.

Then run the CrackMe with the answer Claude gives you. A correct password or key is the real test, and a confident explanation proves nothing. Look at Ghidra while Claude works: renamed functions appear in the CodeBrowser, so you can follow its reasoning and undo bad names.

Jackson Mittag's Claude and Ghidra MCP CrackMe tutorial walks through this same kind of session on video. Check which GhidraMCP version it uses before copying its install steps.

Where does the AI go wrong?

  • Wrong load address or loader. In the River Raid project, Claude noticed the 8 kB Atari ROM was loaded at the wrong address but could not rebase it through the MCP tools, so the author did that by hand. GhidraMCP exposes analysis, not every Ghidra setting. Get the import right yourself: processor, base address and loader.
  • Confident misidentification. The same project notes that Claude guessed the game was Centipede. Treat the model's claims about what a binary is as guesses until the code confirms them.
  • Patching is still on you. In River Raid the author applied the final byte patch by hand. Verify patches in an emulator or a test run, not in the chat.
  • Uneven results between models. CrackMeBench found large differences between models on the same stripped CrackMes, so one failed session does not mean the setup is broken. Try a narrower prompt or another model before rebuilding your install.

Which projects used this?

Further reading

By

I started this site on 13 October 2026 to keep track of reverse engineering projects where an AI model did real work. I work on it alone, with no investors and no ad networks.

About the site · @whyamas on X

Changes

  • Removed projects that were no longer published.

Sources

In practice

Directory projects behind this guide

Video: Full tutorial: Claude and Ghidra MCP work through a CrackMe
Research
YouTube · Research and benchmarks

Full tutorial: Claude and Ghidra MCP work through a CrackMe

Set up Ghidra MCP and let Claude work through a CrackMe.

Time About 6 minutes for Claude to solve it
River Raid (Atari 8-bit): One byte in an 8 kB Atari ROM, found by Claude driving Ghidra.
Works
Blog · Games and mods

Gave Atari River Raid unlimited lives with Claude driving Ghidra

One byte in an 8 kB Atari ROM, found by Claude driving Ghidra.

Platform Atari 8-bitModel Claude
Video: Live VIBE RE: testing MCP plugins for IDA and Ghidra on real samples
Research
YouTube · Malware (defensive)

Live VIBE RE: testing MCP plugins for IDA and Ghidra on real samples

A live session pitting MCP plugins for IDA and Ghidra against real samples.

Cost $1.38 for the IDA run
Educational CrackMe binaries: GPT-5.5 solved 11 of 12 stripped CrackMes; Claude Opus 4.7 solved 7.
Research
Blog · Research and benchmarks

CrackMeBench: a benchmark of agents recovering validation logic from stripped binaries

GPT-5.5 solved 11 of 12 stripped CrackMes; Claude Opus 4.7 solved 7.

Model GPT-5.5