Ghidra MCP logo

Ghidra MCP

Connects AI agents to Ghidra with 219 tools for reverse engineering, binary analysis, automation, and debugger workflows.

Install Ghidra MCP

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for ghidra-mcp, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

ghidra-mcp MCP server connects AI tools to Ghidra through an installed Ghidra extension and a Python MCP bridge. Its 219 tools cover binary analysis, write operations, batch processing, P-code emulation, live debugging, documentation transfer, and Ghidra Server workflows. Use it when an agent needs to inspect or modify Ghidra projects rather than rely on read-only binary metadata. The bridge supports GUI and headless operation, with Docker deployment available for automated analysis.

Use cases

  • Analyze unfamiliar binaries with an AI assistant
  • Rename and document functions in bulk
  • Apply types, comments, and structures consistently
  • Transfer reverse-engineering documentation between binary versions
  • Automate headless Ghidra analysis in CI workflows

Key features

  • 219 MCP tools for Ghidra workflows
  • GUI and headless operation
  • P-code emulation and live debugger integration
  • Batch operations with convention enforcement
  • SHA-256-based documentation transfer
  • Ghidra Server repository and version-control support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

25/25 checks healthy over the last 15d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6.1kStargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Ghidra MCP works

What ghidra-mcp does

ghidra-mcp exposes Ghidra's reverse-engineering features through the Model Context Protocol. It provides 219 MCP tools for analyzing binaries and changing program metadata, including function renaming, type updates, comments, structure creation, script execution, P-code emulation, and debugger interaction.

The toolset also supports batch operations, convention enforcement, function-completeness analysis, and transferring documentation between binary versions using SHA-256 function hashes. For collaborative work, it can connect to Ghidra Server repositories and handle repository, version-control, checkout, and check-in workflows.

How it works

The integration has two parts: a Ghidra extension and a Python bridge. The extension runs inside Ghidra and exposes a local service; the bridge connects MCP clients to that service and presents the available capabilities as agent tools. In the GUI setup, the extension listens on 127.0.0.1:8089, where /check_connection can verify that it is responding.

The bridge can be used with Ghidra's GUI or in headless mode. Batch operations reduce the number of API calls for larger tasks, while atomic transactions and configurable timeouts help control changes made by agents. Docker deployment is available for headless and automated analysis workflows.

Setup and configuration

A release provides both the Ghidra extension ZIP and the Python bridge wheel. Installation requires Ghidra 12.1.4, Java 21, and uv. The extension must match the exact Ghidra version for which it was built.

Install the extension from Ghidra's project window using File > Install Extensions, restart Ghidra, then enable GhidraMCPPlugin under File > Configure > Utility > Configure. Confirm the plugin responds before starting the bridge.

Install the bridge with uv tool install and configure the MCP client to launch the absolute path to bridge-mcp-ghidra. Using an absolute path matters when the client starts from a GUI or service that does not inherit the shell's PATH. Windows uses the corresponding .exe path.

Tools and capabilities

  • Analyze functions, program structures, and binary contents through MCP.
  • Rename symbols, apply types, add comments, and create structures.
  • Execute scripts and use P-code emulation for analysis workflows.
  • Connect to live debugger sessions.
  • Apply batch changes and enforce naming and type conventions.
  • Transfer function documentation across binary versions with SHA-256 matching.
  • Work with Ghidra Server repositories and version-control operations.

Limitations and notes

Tagged releases are intended for stable use, while release candidates and main are beta channels whose interfaces can change. The dev branch is experimental and may rename or refactor tools. The GUI extension and Ghidra installation must use matching versions, and MCP clients should be configured with the bridge's absolute executable path.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ghidra MCP

ghidra-mcp is an MCP server that connects AI tools to Ghidra through a Ghidra extension and a Python bridge. Its 219 tools support binary analysis, renaming, typing, comments, structure creation, script execution, P-code emulation, live debugging, batch operations, and documentation transfer across binary versions.

Install the matching Ghidra extension from a release ZIP, enable its plugin in Ghidra, install the Python bridge wheel with uv, and configure your MCP client with the bridge executable's absolute path. Ghidra 12.1.4, Java 21, and uv are listed as prerequisites.

Yes, ghidra-mcp supports headless operation as well as Ghidra's GUI. The project also supports Docker deployment for automated analysis and CI/CD workflows.

Yes, ghidra-mcp includes write operations for renaming, applying types, adding comments, creating structures, and executing scripts. Convention enforcement can automatically fix some changes, warn about others, or reject invalid or no-op updates.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGhidra MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ghidra-mcp?style=directory)](https://allmcps.com/mcp/ghidra-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ghidra-mcp"><img src="https://allmcps.com/api/badge/ghidra-mcp?style=directory" alt="Ghidra MCP on AllMCPs" /></a>