bethington/ghidra-mcp
Ghidra MCP Server — 200+ MCP tools for AI-powered reverse engineering. GUI plugin + headless server, lazy tool loading, convention enforcement, batch operations, Ghidra Server integration, and Docker deployment.
What it solves
This project bridges the gap between Ghidra, a powerful tool for reverse engineering, and modern AI automation. It allows AI agents to interact directly with Ghidra to perform complex tasks like binary analysis, code documentation, and data structure discovery, moving beyond simple read-only operations to full, automated control.
How it works
It uses the Model Context Protocol (MCP) to create a secure, two-way communication channel between your AI client (like Claude or Cursor) and Ghidra. By installing a Ghidra extension and a bridge component, you expose 219 specific tools to your AI. These tools allow the AI to read decompiled code, perform P-code emulation, manage debugging sessions, and apply changes like renaming functions or adding comments directly to your Ghidra project.
Who it’s for
This is designed for reverse engineers and security researchers who want to use AI to speed up their analysis workflows. It is particularly useful for teams needing consistent documentation standards or individuals looking to automate repetitive tasks like function labeling and cross-binary analysis.
Highlights
- 219 MCP Tools: Provides extensive control over Ghidra, including writing, renaming, commenting, and structure creation.
- Convention Enforcement: Built-in rules ensure AI agents follow consistent naming and documentation standards, reducing the need for manual review.
- Dynamic Analysis: Supports P-code emulation and live debugger integration for real-time binary inspection.
- Cross-Binary Documentation: Automatically propagates documentation across different versions of a binary using function hash matching.
- Production-Ready: Includes features like atomic transactions, batch operations, and support for both GUI and headless (automated) Ghidra modes.
Related
- Project
- Project
- Project
- Project
- Project