Ghidra MCP Setup: Connect Ghidra to Claude Code, Codex and Cursor
Use when someone wants to connect Ghidra to Claude Code, Codex, Cursor or another MCP client for AI-assisted reverse engineering, or their Ghidra MCP won't connect. Compares the main Ghidra MCP servers (GhidraMCP, ReVa, pyghidra-mcp and others), gives a setup path for each style, the first-hour workflow, and troubleshooting.
by skillstore33 · MIT
The skill
Use when someone wants to connect Ghidra to Claude Code, Codex, Cursor or another MCP client for AI-assisted reverse engineering, or their Ghidra MCP won't connect. Compares the main Ghidra MCP servers (GhidraMCP, ReVa, pyghidra-mcp and others), gives a setup path for each style, the first-hour workflow, and troubleshooting.
Ghidra MCP Setup: Connect Ghidra to Claude Code, Codex and Cursor
Rule for using this skill: Ask which client they use, whether they want Ghidra's GUI open or a headless setup, and whether the binary can be sent to a cloud model. Recommend one server from the table, walk through its setup, then the first-hour workflow. Analyze only software they own or are authorized to examine.
Pick a server
There are several Ghidra MCP servers; they differ in how they talk to Ghidra.
| Server | Style | Best for |
|---|---|---|
GhidraMCP (LaurieWired/GhidraMCP, about 10k stars) |
A Ghidra plugin plus a Python bridge; you work in the Ghidra GUI while the agent reads and renames | Interactive work, the most tutorials |
ReVa (cyberkaida/reverse-engineering-assistant) |
Ghidra extension with tools designed for LLMs, plus agent skills for triage and deep analysis | Guided analysis with smaller, structured results |
pyghidra-mcp (clearbluejar/pyghidra-mcp) |
Headless, via PyGhidra, with semantic search over the project | Automation, CI, many binaries, no GUI |
Others (suidpit/ghidra-mcp, bethington/ghidra-mcp, GhidrAssistMCP) |
Variants | Specific needs; check activity and docs |
Rule of thumb: GUI and learning, GhidraMCP. Headless and scale, pyghidra-mcp. Structured, token-efficient answers, ReVa.
Setup: plugin style (GhidraMCP)
- Install the Ghidra version the release asks for: the plugins are built for specific Ghidra versions, and a mismatch is the most common failure.
- In Ghidra: File > Install Extensions, add the release's extension zip, restart, then enable the plugin in File > Configure > Developer.
- Open your binary in the CodeBrowser and let auto-analysis finish. The plugin starts a local HTTP server.
- Register the bridge with your client as an MCP server: a command that runs the release's Python bridge script with the Ghidra server URL (by default a localhost port). Follow the release README for the exact command; it changes between versions.
- Restart the client and ask: "List the functions in the open program." If you get a list, it works.
Setup: headless style (pyghidra-mcp)
- Install Ghidra and set
GHIDRA_INSTALL_DIRto its folder. - Install the server per its README (it runs on PyGhidra; use a Python virtual environment).
- Register it with your client as an MCP server, pointing it at the binary or project to import.
- The server imports and analyzes the binary itself. Large binaries take minutes the first time.
The first hour
- Triage: "List imports, exports, notable strings and the 20 largest functions."
- Find the entry point for your question: search strings (error messages, URLs, file names) and follow their cross-references.
- Decompile one function at a time and ask for a summary with the evidence: addresses, called functions, strings.
- Rename and comment as you confirm, so the agent's later answers build on verified names.
- Save the project often. Renames live in the Ghidra project, not in the chat.
Ask for structured results (lists, small decompiled functions) rather than whole files: dumping everything wastes context and invites hallucination.
Troubleshooting
| Symptom | Fix |
|---|---|
| Client shows no Ghidra tools | Restart the client after registering; check the MCP config path and the bridge command |
| Tools listed but calls fail | Ghidra isn't running, the program isn't open, or the plugin isn't enabled |
| "Connection refused" | Port mismatch between the plugin and the bridge URL, or a firewall |
| Extension won't install | Ghidra version mismatch: install the version the release names |
| Answers about the wrong file | More than one program is open: close the others |
Sources
- GhidraMCP: https://github.com/LaurieWired/GhidraMCP
- ReVa (reverse-engineering-assistant): https://github.com/cyberkaida/reverse-engineering-assistant
- pyghidra-mcp: https://github.com/clearbluejar/pyghidra-mcp
- Installing and using Ghidra MCP on Linux: https://medium.com/@corentin_mh/installing-and-using-ghidra-mcp-on-linux-a-complete-real-world-guide-8569699af6ec
- Reverse engineering with AI and Ghidra MCP (2026): https://blog.huli.tw/2026/03/01/en/reverse-engineering-with-ai-ghidra-mcp/
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/ghidra-mcp-setup-claude-code-codex-cursor-96658882056.
Details
- Publisher
- skillstore33
- Category
- AI & Agents › Tool & MCP integration
- License
- MIT
- Updated
- 2026-11-30
References
More from skillstore33
Acrylic Color Reference Cards on White and Black Know exactly how your colors mix before you paint
Stencils, Mouth Atomizer and Glue Gun Stencil Techniques Spray and sponge crisp patterns with homemade stencils
Staging Action and Reaction in Storyboards Show action, character reaction and pacing clearly across panels
Drawing Characters of Different Ages Make babies, kids, teens, adults and seniors read at a glance