XHack Logo
XHack
Products
Services
Compliance
Pricing
Resources
Company
Sign upLogin
XHack Logo
XHackOffensive Security

Certified offensive security team delivering penetration testing evidence written for your auditor.

OSCP+OSCPC-AI/MLPenCASA
support@xhack.io

24/7 SOC Operations

XHack Status
Under attack? Get help now
Services
  • VAPT Services
  • Red Teaming
  • SOC Services
  • Threat Intelligence
  • Incident Response
  • Managed Testing
Pricing
  • Platform Plans
  • Services Pricing
Compliance
  • SOC 2
  • PCI DSS
  • ISO 27001
  • GDPR
  • HIPAA
  • ISO 42001
  • AI Maturity Assessment
  • TX-RAMP
  • NBFC / SECP
  • All Frameworks
Products
  • Vulnerability Assessment
  • GitGuard
  • AI Probe
  • SOC Dashboard
  • AI Agent
  • Cloud Investigation
Comparison
  • XBOW vs XHack
  • Horizon3 vs XHack
  • Strix vs XHack
  • Pentera vs XHack
Resources
  • Platform Tour
  • All Features
  • Install the Agent
  • XHack AI
  • Documentation
  • Blog
  • Case Studies
  • Documents
  • FAQ
Company
  • About Us
  • Our Team
  • Certifications
  • Security and Trust
  • VAPT Explained
  • Contact

© 2026 XHACK (SMC-PRIVATE) LIMITED. All rights reserved.

Registered with the SECP, CUIN 0361945. Verify

Security & TrustVulnerability DisclosurePrivacy PolicyTerms of ServiceRefund Policy
Blog/Security

Ghidra MCP: How to Connect Claude Code to Ghidra for Reverse Engineering

XHack

XHack

Author

November 2, 2026

14 min read

Ghidra MCP: How to Connect Claude Code to Ghidra for Reverse Engineering

Table of contents

16

What Ghidra MCP Means

Ghidra MCP Options in 2026: GhidraMCP vs ReVa

How to Set Up a Ghidra MCP Server With Claude Code

What a Ghidra MCP Server Can Do, and What It Cannot

A Practical Ghidra MCP Workflow

Ghidra MCP Security: What to Check Before You Connect

When a Ghidra MCP Server Is Not the Right Tool

How XHack Fits Around Ghidra MCP

FAQ: Ghidra MCP Questions Answered

What is a Ghidra MCP server?

How do I connect Claude Code to Ghidra?

Is a Ghidra MCP server free?

Is a Ghidra MCP server safe to use?

Which is better, GhidraMCP or ReVa?

Can XHack use a Ghidra MCP server?

The Bottom Line on Ghidra MCP

By Salman Khan, OSCP+, Founder of XHack, SRT (Synack Red Team member)

Read this in 30 seconds: A Ghidra MCP server lets an AI assistant such as Claude Code read and annotate a binary through Ghidra, instead of you pasting decompiled code into a chat. Two open-source projects do this today, GhidraMCP and ReVa, and both document a one-line setup for Claude Code.

  • Two projects lead, with different designs. GhidraMCP (about 11,700 GitHub stars, version 2.0 released 10 October 2026) is a plugin plus a Python bridge, and ReVa (about 900 stars, v7.3.1) is a Ghidra extension with a tool-driven design and a headless mode.
  • Setup is short, but the prerequisites are not. You need a matching Ghidra version (GhidraMCP’s README says 12.1.4), Java, and a Python launcher, and a plugin installed and enabled in Ghidra first.
  • The server can do real work, but it still guesses. It can decompile, rename and list functions, and ReVa’s README shows prompts such as summarising a program from main and renaming variables as it goes.
  • Security needs thought. ReVa warns that its scripting tools should not be exposed on a public interface without an API key, and Claude Code’s docs tell you to trust each MCP server before connecting it.
  • Verify what the model tells you. Names and summaries are suggestions until you confirm them against the disassembly.

If you search for Ghidra MCP, you will find GitHub repositories, directory pages and a few tutorials. This guide pulls the setup, the options and the risks into one place, so you can decide whether a Ghidra MCP server is worth running for your work.

A note on method. I built this from the projects’ own READMEs and Claude Code’s documentation, read on 2 November 2026. I have not run a benchmark, so I make no claim about how much time it saves. Where I describe behaviour, it is what the maintainers document. I run XHack, so I say where our product fits and where it does not.

Ghidra MCP guide: connect Claude Code to Ghidra through GhidraMCP or ReVa, with setup, security and verification steps
Ghidra MCP: how Claude Code connects to Ghidra through an MCP server

What Ghidra MCP Means

Three pieces make up a Ghidra MCP setup.

Ghidra is the reverse engineering framework released by the US National Security Agency. It is free and open source under the Apache 2.0 licence, and it includes a decompiler.

MCP, the Model Context Protocol, is an open standard that lets an AI client call tools provided by a server. Claude Code’s documentation describes it as an open source standard for AI-tool integrations that gives the assistant access to your tools, databases and APIs.

A Ghidra MCP server sits between them. It exposes Ghidra functions, such as decompiling a function or renaming a variable, as tools the assistant can call. The assistant asks, the server runs the action in Ghidra and returns the result.

The practical change is the loop. Without it, you copy code out of Ghidra, paste it into a chat, read the answer and type changes back by hand. With a Ghidra MCP server, the assistant can read a function, follow a cross-reference, rename things and keep going.

For the wider picture of AI in reverse engineering, see AI reverse engineering. This article stays on Ghidra MCP.

Ghidra MCP Options in 2026: GhidraMCP vs ReVa

Two open-source projects are the main choices. Both are licensed under Apache 2.0, and the figures below come from their GitHub pages on 2 November 2026.

GhidraMCPReVa (Reverse Engineering Assistant)
MaintainerLaurieWiredcyberkaida
DesignGhidra plugin plus a Python MCP bridgeGhidra extension with a tool-driven design
GitHub starsAbout 11,700About 900
Latest release2.0 (10 October 2026)v7.3.1 (3 September 2026), repository updated 27 October
Ghidra versionREADME says 12.1.412.0 and above, Java 21 (Java 25 for Ghidra 12.2 and up)
ModesPlugin with a running Ghidra, or headless through PyGhidraAssistant mode in the Ghidra UI, or headless
Features listedDecompile and analyse binaries, auto-rename methods and data, list methods, classes, imports and exportsMany small tools, with namespace and cross-references added to decompilation output
Claude CodeOne claude mcp add command in the READMENamed as the recommended client, plus a plugin marketplace with skills

Stars measure interest, not quality. GhidraMCP is the more widely known project. ReVa says it is designed around small tools with extra context to limit what it calls context rot and to reduce hallucination, and that this lets it handle large binaries and even firmware images. Those are the maintainer’s claims, and I have not tested them.

If you are unsure, start with GhidraMCP for the simplest path and try ReVa if you work on larger projects or want headless automation.

How to Set Up a Ghidra MCP Server With Claude Code

This is an outline of the documented steps, not a replacement for the READMEs, which change with each release. Always follow the current README for your Ghidra version.

Before you start

  1. Install Ghidra from the official site, in the version the project requires.
  2. Install the tools the project needs: GhidraMCP uses uv (or Python 3.10 or newer), and ReVa needs the Java version for your Ghidra release.
  3. Install Claude Code, if you do not already have it.

GhidraMCP

  1. Download the latest release, which contains the Ghidra plugin and the Python MCP client.
  2. In Ghidra, choose File, then Install Extensions, add the release zip, and restart Ghidra.
  3. Make sure the GhidraMCP plugin is enabled under File, Configure, Developer. You can optionally change the port under Edit, Tool Options.
  4. Add the server to Claude Code. The README gives this command, which assumes Ghidra’s default address:
claude mcp add ghidra -- uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --ghidra-server http://127.0.0.1:8080/

ReVa, assistant mode

  1. Install the ReVa extension for your exact Ghidra version and enable the ReVa plugin in both the project view and the Code Browser, as its README describes.
  2. Start Ghidra and open a project, because ReVa listens only while Ghidra is running.
  3. Add it to Claude Code with the command from the README:
claude mcp add --scope user --transport http ReVa -- http://localhost:8080/mcp/message

ReVa, headless mode

ReVa can also run without the Ghidra interface, which its README recommends for automation and CI pipelines. You set GHIDRA_INSTALL_DIR, install the tool with uv, and register it with claude mcp add. A project is created in the current directory.

Check that it works. Inside Claude Code, the /mcp command shows which servers are connected, as ReVa’s README notes.

Ghidra MCP setup flow: install Ghidra and the plugin, register the server with Claude Code, check it with /mcp, then analyse an authorised binary and verify the results
Ghidra MCP setup flow with Claude Code in five steps

Claude Code’s documentation explains how servers are scoped. A local-scope server loads only in the project where you added it and stays private to you, a project-scope server is stored in .mcp.json and shared through version control, and a user-scope server loads in all your projects. For a reverse engineering server you use on many binaries, user scope is common, as in ReVa’s command, but pick the scope on purpose.

What a Ghidra MCP Server Can Do, and What It Cannot

The projects document what they offer, and it is worth reading closely.

GhidraMCP lists decompiling and analysing binaries, automatically renaming methods and data, and listing methods, classes, imports and exports. ReVa’s README shows the kind of questions it expects:

  • Examine the programs in this project and explain how the main binary relates to its shared libraries.
  • What are the interesting strings in this program?
  • Does this program use encryption, and where?
  • Start from main, examine the program in detail, rename variables as you go and summarise it.
  • Import these two binaries, diff them and explain the changes.

What a Ghidra MCP server does not do is remove your responsibility. Four limits matter.

It is still a language model. ReVa’s README says the model prioritises the tools’ information but can answer from training when there is none. Names and summaries can be wrong, and the same goes for any AI-assisted decompiler output (see AI reverse engineering). Check a name against strings, imports and call sites before you accept it.

Large binaries strain the context. ReVa’s design targets this, which suggests it is a real problem. Expect to guide the assistant through a big program in stages.

It acts on your project. The documented features include renaming, so the assistant changes your Ghidra database. Work on a copy, and use Ghidra’s own history to review edits.

It does not replace judgement. A model can summarise a function, but whether a finding matters, or is safe to report, is a decision for you.

A Practical Ghidra MCP Workflow

This is a general workflow for authorised analysis. It does not depend on a particular sample.

  1. Start with scope. Write down what you are allowed to analyse and why, before you open the file.
  2. Work on a copy in an isolated machine or virtual machine.
  3. Let Ghidra analyse first. Run Ghidra’s auto-analysis before the assistant starts, so it works from the conventional output.
  4. Ask for structure before names. Request an overview of the program, its imports and its strings, then drill into specific functions.
  5. Have it explain, then confirm. For each function it summarises, check the evidence: cross-references, strings, constants.
  6. Review renames in Ghidra. Accept the ones the evidence supports and revert the rest.
  7. Keep a written record of what you verified and what is only a model suggestion.

That last step is the same discipline as any AI-assisted analysis: the model proposes, you confirm.

Ghidra MCP Security: What to Check Before You Connect

Giving an AI client the ability to drive a reverse engineering tool is a security decision. These points come from the projects’ documentation and Claude Code’s docs, plus our own reasoning where marked.

Trust each server. Claude Code’s documentation says to verify that you trust each MCP server before connecting it, and that servers fetching external content can expose you to prompt injection. A server you installed from a repository is code running on your machine.

Keep it on localhost. ReVa’s README warns that it provides access to the PyGhidra scripting environment. If you let it listen on a public interface, enable its API key authentication or disable the scripting tools. The default is to listen on localhost. The same principle applies to any Ghidra MCP server: do not expose it to a network you do not control.

Be careful with automatic approval. ReVa’s README shows how to add a permission rule so its tools run without prompts. That is convenient, and it removes a checkpoint. Consider whether you want it on a machine that holds anything sensitive.

Think about what the binary says. In our reading, a binary’s strings and comments are external content that the assistant will read. If you analyse hostile samples, text inside them could try to steer the model, so treat the model’s actions as untrusted input and keep it away from anything you cannot afford to lose. This is an inference, not something the projects document.

Isolate samples. Run unknown or malicious binaries only in a lab cut off from your network and from client data.

Stay inside scope. Analyse only software you are authorised to analyse, and follow its licence. This is not legal advice.

For the general picture of securing these servers, MCP server security covers the core risks, and MCP server vulnerabilities for bug hunters covers what researchers test.

Ghidra MCP security checklist: trust each server, keep it on localhost, keep approval prompts on, treat binary content as untrusted, isolate samples and stay in scope
Ghidra MCP security checklist for connecting an AI assistant to a reverse engineering tool

When a Ghidra MCP Server Is Not the Right Tool

A Ghidra MCP server is not always worth the setup.

  • For one small function, pasting a snippet into a chat is faster.
  • For sensitive samples that must stay offline, an assistant that sends code to a hosted model may break your rules. Use a local model or none at all.
  • For learning, doing the analysis yourself builds skill that an assistant would skip.
  • For mobile apps, a dedicated pipeline may fit better than a general disassembler workflow.

How XHack Fits Around Ghidra MCP

XHack does not ship a Ghidra integration, and I have not published a tested Ghidra MCP setup for it. What it does support is the protocol. The XHack agent speaks MCP, so you can connect external MCP servers and let the agent use their tools in chat, including remote MCP connections added from the web console. The MCP connections feature page describes this. Whether a particular Ghidra server works in your setup is something to test, not something I can promise.

Where XHack is strongest for reverse engineering is mobile work: its agent page lists native APK and IPA static analysis, jadx and androguard decompilation pipelines, exported-component testing over ADB and Frida hooks. Unrestricted capability is gated behind identity verification, activity is audit-logged, and XHack does not store your agent chats.

The honest limit is that the self-serve agent is agent-driven, so you confirm what it finds, and XHack’s Terms say AI output can be wrong. XHack AI mistakes explains where our own agent gets things wrong. For malware lab workflow, see AI malware analysis, and for CTF practice, AI for CTF.

Individual plans run $20, $49 and $150 a month with a 7-day free trial, one per person, on the pricing page.

FAQ: Ghidra MCP Questions Answered

What is a Ghidra MCP server?

A Ghidra MCP server is a program that exposes Ghidra’s functions, such as decompiling a function or renaming a variable, as tools an AI client can call through the Model Context Protocol. GhidraMCP and ReVa are the two main open-source options.

How do I connect Claude Code to Ghidra?

Install Ghidra and a Ghidra MCP plugin, then register the server with claude mcp add. GhidraMCP’s README gives a one-line command that uses uvx, and ReVa’s README gives one for its HTTP server on port 8080. Use /mcp in Claude Code to confirm the connection.

Is a Ghidra MCP server free?

Yes. GhidraMCP and ReVa are both open source under the Apache 2.0 licence, and Ghidra is free. You still need an AI client, and a hosted model or Claude Code plan is a separate cost.

Is a Ghidra MCP server safe to use?

It can be, with care. Trust the server you install, keep it listening on localhost, be careful with automatic tool approval, run unknown binaries only in an isolated lab, and treat the model’s output as unverified. ReVa warns that its scripting tools should not be exposed publicly without an API key.

Which is better, GhidraMCP or ReVa?

It depends on your work. GhidraMCP is the more widely used and has the simplest documented setup. ReVa is built around small tools with extra context and supports headless automation. Try one on a binary you are allowed to analyse and judge the results yourself, because I have not benchmarked either.

Can XHack use a Ghidra MCP server?

XHack’s agent supports MCP connections, including remote ones from the web console, so it can use external MCP servers. We have not published a tested Ghidra setup, so test it on your own stack before you rely on it.

The Bottom Line on Ghidra MCP

A Ghidra MCP server turns an AI assistant from a chat window you paste code into into something that can work inside your reverse engineering project. GhidraMCP is the simplest to start with, ReVa suits larger projects and automation, and Claude Code connects to either with one command.

The tool does not change the rules of the work. Keep it on localhost, trust what you install, work on authorised samples in isolation, and verify every name and summary before you rely on it. If your work is mobile apps, try the XHack agent’s mobile pipelines on the 7-day trial and read the verification terms first.


Categories

Security

Previous

CVE-2026-97229: Critical GitLab RCE Is Exploited, and Upgrading GitLab May Not Be Enough

Next

Is Uncensored AI Safe? Seven Risks and How to Reduce Them in 2026

On this page

What Ghidra MCP Means

Ghidra MCP Options in 2026: GhidraMCP vs ReVa

How to Set Up a Ghidra MCP Server With Claude Code

What a Ghidra MCP Server Can Do, and What It Cannot

A Practical Ghidra MCP Workflow

Ghidra MCP Security: What to Check Before You Connect

When a Ghidra MCP Server Is Not the Right Tool

How XHack Fits Around Ghidra MCP

FAQ: Ghidra MCP Questions Answered

What is a Ghidra MCP server?

How do I connect Claude Code to Ghidra?

Is a Ghidra MCP server free?

Is a Ghidra MCP server safe to use?

Which is better, GhidraMCP or ReVa?

Can XHack use a Ghidra MCP server?

The Bottom Line on Ghidra MCP

Related articles

Continue reading

Offline AI Malware Analysis: How to Run It Without Your Samples Leaving the Building

Security

Offline AI Malware Analysis: How to Run It Without Your Samples Leaving the Building

Offline AI malware analysis without sample leaks: the four tiers, a two-machine lab, the tools to run first and how to p...

Read article
LLM for Reverse Engineering: Which Model Is Best? What the 2026 Evidence Shows

Security

LLM for Reverse Engineering: Which Model Is Best? What the 2026 Evidence Shows

LLM for reverse engineering: what SRE-Bench and other 2026 evidence shows, why refusals matter and five tests to rank mo...

Read article
Claude Code Bug Bounty: What It Does Well, Where It Stalls and 6 Rules to Follow

Security

Claude Code Bug Bounty: What It Does Well, Where It Stalls and 6 Rules to Follow

Claude Code bug bounty workflow: what the YesWeHack lab test found, how Anthropic safeguards reroute security work and s...

Read article