Short answer: Ghidra MCP is an open source MCP server that connects Ghidra, the free reverse engineering suite released by the NSA, to AI agents such as Claude. It exposes more than 200 tools, so an agent can rename functions, set types, add comments, build structures, run scripts and emulate code inside a Ghidra project. It is licensed under Apache-2.0, has about 4,500 stars on GitHub and is actively developed. Use it only on software you are allowed to analyze.
What it does
Reverse engineering means taking a compiled program and working out what it does without the source code. Security researchers do this to study malware, audit firmware, find vulnerabilities and check how old software works. It is slow, detailed work: hundreds of unnamed functions, unknown data structures and lots of manual note-taking. Ghidra MCP lets an AI agent take on much of that busywork through the Model Context Protocol (MCP).
According to the project README, it offers:
- A Ghidra GUI plugin and a headless server for running without the interface.
- Tools for renaming, typing, commenting and creating structures.
- Script execution and P-code emulation.
- Batch operations, Ghidra Server integration for shared projects, and Docker deployment.
- Lazy tool loading by default, because some AI providers reject a single tool list that is too large.
What you need
- Java 21 and Apache Maven 3.9 or newer.
- Ghidra 12.1.3 or a compatible version.
- Python 3.10 or newer (the project recommends uv).
- An MCP-capable AI client, such as Claude Desktop or Claude Code.
The README has install steps for Windows, Linux and macOS. The project ships frequent releases, with a 7.0 release candidate published in September 2026.
Who it's for
- Security researchers and malware analysts who want an AI assistant inside their Ghidra workflow.
- Firmware and embedded developers checking what a binary actually does.
- Agent builders who want a serious, large MCP server to study as a reference for tool design and tool loading.
- Students learning reverse engineering, who can ask the agent to explain code as they go.
What to watch out for
- Stay legal. Reverse engineering is legal in many cases, such as security research, interoperability and analyzing your own or open software. It can break the law or a license agreement when used to crack software, bypass copy protection or copy someone else's code. Check the license of what you analyze and the rules where you live. If you are unsure, ask a lawyer.
- Security of the server. The HTTP server listens only on your own machine by default, with no authentication. Authentication, file-root limits and script execution are opt-in through environment variables. Do not expose it to a network without turning those on.
- Malware handling. If you analyze malicious samples, do it in an isolated virtual machine, as you would without AI.
- Check the AI's work. An agent can confidently mislabel a function. Treat its names and comments as suggestions until you verify them.
- Setup is technical. Java, Maven, Ghidra and Python all need to be in place before it works.
- The live debugger tools only appear on Windows and need a separate debugger server, which now lives in another repository.
Source: bethington/ghidra-mcp on GitHub
More AI tools and ready prompts at masterphub.io