AI Tools
CodingIntermediate

ghidra-mcp

MCP Bridge: Connects the Ghidra reverse engineering tool with AI agents.

ghidra-mcp is an open-source tool released on February 15, 2026, by the bethington team, a group of security analysts and developers from the United States. It is a unified server based on the Model Context Protocol (MCP), which enables bidirectional communication between Ghidra, a leading open-source reverse engineering framework, and LLM agents. Similar to how GPT models understand context and generate text in the field of text analysis, ghidra-mcp transforms and delivers complex machine code binary data and decompiled control flow graphs into semantic information structures that AI can understand. This tool abstracts Ghidra's more than 250 internal API endpoints and analysis tools into the MCP standard, providing a virtual environment where agents can directly access and read/write to the binary being analyzed.

Existing reverse engineering analysis tools typically operate in a read-only manner, such as executing unidirectional scripts or simply viewing decompiled source code. This forces analysts to manually rename and add comments in the Ghidra UI, which is inefficient, after reviewing AI suggestions. However, ghidra-mcp provides full write access, allowing AI agents to directly modify variable and function identifiers, define new structures and unions, and write comments directly to the entire binary. In particular, the convention enforcement mechanism based on the tool layer, introduced in version 5.0, forces AI agents to adhere to a set of naming rules and type safety criteria, fundamentally solving the problem of inconsistent analysis quality caused by large language models (LLMs) outputting results in different styles.

Security analysts can use this tool to build highly specific and automated static and dynamic analysis pipelines. For example, by running the ghidra-mcp server in a workstation environment and connecting it to AI development environments such as Claude Code or Cursor, agents can perform PCode-graph data flow analysis, tracing intermediate value propagation paths while exploring unidentified functions within a large binary end-to-end. Furthermore, by leveraging the P-code emulation feature supported in the latest version and the TraceRmi architecture for live debugger integration, advanced automation scenarios become a reality, such as safely executing dynamic decryption routines or API hashing algorithms within a sandbox and immediately reflecting the results in the analysis database, which are difficult to identify through static analysis alone.

💻 System Requirements

🧠RAM

0 (No GPU memory required, as it operates based on CPU computation)

💾Storage

No model required; 2GB or less is needed for installing the Ghidra program and plugins.

Installation

4-1. Quick Start

# Clone the repository and install macOS environment dependencies
git clone https://github.com/bethington/ghidra-mcp.git && cd ghidra-mcp
brew install openjdk@21 maven python ghidra

4-2. Detailed Installation

# 1. Register Maven dependencies according to the Ghidra installation path (macOS example)
python -m tools.setup install-ghidra-deps --ghidra-path /opt/homebrew/opt/ghidra/libexec

# 2. Pre-check the build environment and install required packages
python -m tools.setup ensure-prereqs --ghidra-path /opt/homebrew/opt/ghidra/libexec

# 3. Build the ghidra-mcp plugin using Maven
python -m tools.setup build

# 4. Deploy the built Zip file to the Ghidra Extension directory
python -m tools.setup deploy --ghidra-path /opt/homebrew/opt/ghidra/libexec

# 5. Install and run dependencies for Standalone Debugger server execution (optional)
python -m pip install -r requirements-debugger.txt
python -m debugger

FAQ

What is ghidra-mcp?

ghidra-mcp is an open-source tool released on February 15, 2026, by the bethington team, a group of security analysts and developers from the United States. It is a unified server based on the Model Context Protocol (MCP), which enables bidirectional communication between Ghidra, a leading open-source reverse engineering framework, and LLM agents. Similar to how GPT models understand context and generate text in the field of text analysis, ghidra-mcp transforms and delivers complex machine code binary data and decompiled control flow graphs into semantic information structures that AI can understand. This tool abstracts Ghidra's more than 250 internal API endpoints and analysis tools into the MCP standard, providing a virtual environment where agents can directly access and read/write to the binary being analyzed. Existing reverse engineering analysis tools typically operate in a read-only manner, such as executing unidirectional scripts or simply viewing decompiled source code. This forces analysts to manually rename and add comments in the Ghidra UI, which is inefficient, after reviewing AI suggestions. However, ghidra-mcp provides full write access, allowing AI agents to directly modify variable and function identifiers, define new structures and unions, and write comments directly to the entire binary. In particular, the convention enforcement mechanism based on the tool layer, introduced in version 5.0, forces AI agents to adhere to a set of naming rules and type safety criteria, fundamentally solving the problem of inconsistent analysis quality caused by large language models (LLMs) outputting results in different styles. Security analysts can use this tool to build highly specific and automated static and dynamic analysis pipelines. For example, by running the ghidra-mcp server in a workstation environment and connecting it to AI development environments such as Claude Code or Cursor, agents can perform PCode-graph data flow analysis, tracing intermediate value propagation paths while exploring unidentified functions within a large binary end-to-end. Furthermore, by leveraging the P-code emulation feature supported in the latest version and the TraceRmi architecture for live debugger integration, advanced automation scenarios become a reality, such as safely executing dynamic decryption routines or API hashing algorithms within a sandbox and immediately reflecting the results in the analysis database, which are difficult to identify through static analysis alone.

When should I use ghidra-mcp?

MCP Bridge: Connects the Ghidra reverse engineering tool with AI agents.

📄 Official Docs🐙 GitHub

📝 Update Notes

  1. vv6.0.07/25/2026

    GhidraMCP v6.0.0이 정식 출시되어 272개의 MCP 도구와 195개의 GUI 엔드포인트를 포함한 강력한 기능을 제공합니다. 이번 업데이트는 Ghidra의 역공학 플랫폼을 AI 모델과 효율적으로 연결하여 소프트웨어 분석의 정교함을 한층 높여줍니다. 바이오 정보학 알고리즘의 구조를 분석하거나 실험 장비 소프트웨어의 보안성을 검토해야 하는 연구원분들께 분석 자동화와 효율성을 높여줄 유용한 도구가 될 것입니다.

  2. vv5.14.26/27/2026

    GhidraMCP v5.14.2는 Ghidra 리버스 엔지니어링 플랫폼을 AI와 연결하여 분석을 자동화해 주는 MCP 서버 업데이트예요. 이번 업데이트에는 251개의 도구와 194개의 GUI 엔드포인트가 포함되어 AI가 훨씬 더 정밀하게 소프트웨어 구조를 제어할 수 있게 되었어요. 바이오 정보학 알고리즘이나 실험 장비용 소프트웨어의 바이너리 코드를 분석해야 하는 연구원분들에게 AI 기반의 강력한 코드 분석 환경을 제공할 수 있습니다. AI를 활용해 복잡한 소프트웨어 로직을 빠르게 해독하고 분석 효율을 높이고 싶다면 이번 업데이트를 추천드려요.

  3. vv5.14.16/22/2026

    GhidraMCP v5.14.1 업데이트를 통해 251개의 MCP 도구와 194개의 GUI 엔드포인트를 새롭게 사용할 수 있게 되었습니다. 이번 버전은 Ghidra 리버스 엔지니어링 플랫폼과 AI 모델 간의 연결성을 대폭 강화하여, 복잡한 바이너리 기반의 생물학적 알고리즘 분석을 더욱 정교하게 지원합니다. 바이오 정보학 소프트웨어의 내부 로직을 AI와 함께 효율적으로 파악하고 싶은 연구원님께 이번 업데이트를 추천드려요.

🧪 Related Code of Life

No related Code of Life posts yet.