symgraph/GhidrAssistMCP
In-process MCP server for reading and annotating binaries in Ghidra
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
GhidrAssistMCP is a Java extension that runs an MCP server inside Ghidra, not a standalone service that parses binaries itself. In desktop mode, the runtime starts with the project manager before any CodeBrowser opens. CodeBrowser windows share the service, configuration, and bounded request log. Requests can use the focused program or select one explicitly with program_name; project paths disambiguate duplicate filenames and are preferable for automation.
Java MCP SDK 2.0.1 serves Streamable HTTP at /mcp with protocol revision 2025-11-25. The legacy /sse and /message endpoints use 2024-11-05; supporting both transports does not imply support for the newer 2026-07-28 revision. The tool catalog uses explicit operation names, input contracts, and read/write annotations. Administrators can change tool availability without restarting the transport, and configuration persists across sessions.
Key Capabilities & Differentiators
Version 3.1.0 exposes 103 tools, 96 enabled by default. Clients can read pseudocode, disassembly, p-code, control-flow graphs, and cross-references, or update comments, names, types, and structures. Six program resource templates cover metadata, functions, strings, imports, exports, and segments, while seven prompts provide analysis starting points. Desktop project lifecycle tools can open and save projects before a CodeBrowser is present; the headless launcher manages its own project instead.
get_pseudocode_batch reads multiple functions from one program using a shared decompiler session. It returns full pseudocode by default; start_line and max_lines request a page per function, with line ranges, completeness, and any errors reported per item. Repeated function results can be reused within the batch, but batch responses do not enter the cross-request cache. Batch decompilation, batch renames, and program analysis support native MCP progress and return final results on the original request. For batch decompilation, the client timeout still applies to the entire batch.
Trade-offs & Limitations
Compared with direct Ghidra scripting, the MCP extension is most useful when clients need to discover operations and interact with a live, shared session. A fixed, unattended analysis pipeline can stay simpler as a direct script: there is no MCP transport to manage, no tool catalog to refresh, and no risk of selecting a program by UI focus. MCP batch reads reduce call overhead and reuse decompiler setup, but large calls still have to finish within one client timeout. Use smaller batches to reduce the scope of a timeout and line pagination to bound response size.
The default catalog is broad and includes write operations. Treat read/write annotations as descriptive metadata, not access control. Keep the listener on loopback unless you have separately established how access will be controlled, and disable tools that a client does not need. For disposable headless sessions, agent_lab narrows the available operations by disabling arbitrary file import, script execution, and GUI/project lifecycle tools while allowing sandbox-local export. The profile is not a substitute for OS or container isolation.
Hardware & Deployment Guide
Use the extension ZIP built for Ghidra 12.0, 12.1, or 12.2 Public and run Ghidra on Java 25 or newer. Install via File → Install Extensions, restart Ghidra, and check the shared settings under Window → GhidrAssistMCP. The default listener is localhost:8080. For a source installation, point GHIDRA_INSTALL_DIR at Ghidra and run the bundled ./gradlew installExtension with Ghidra stopped.
For headless use, launch through analyzeHeadless and the bundled ghidra_scripts/GAMCPStartServerScript.java. The script can start before analysis, or run as a post-script with wait=true to keep the session open after analysis. Release 2.11.0 added the restricted agent_lab profile, 3.0.0 moved startup to the project manager and added lifecycle control there, and 3.1.0 added Ghidra 12.2 compatibility, batch pseudocode, and native progress for selected operations. Refresh client tool definitions after upgrading.
/mcp and legacy SSE at /sse with /message.get_pseudocode_batch reuses one decompiler session and returns per-function code, pagination metadata, or errors.agent_lab profile allows sandbox-local export but disables arbitrary file import, Ghidra script execution, and GUI/project lifecycle tools.Teams that already use Ghidra and want an MCP client to read decompiler output, inspect references, or annotate authorized binaries in a shared analysis session.
You need a standalone disassembler, only run a fixed batch workflow, or cannot run the required Ghidra and Java versions.
Quick Start & Installation
git clone <repository-url> cd GhidrAssistMCP
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| GhidrAssistMCP ★ | 823 | +2 | Java | MIT | In-process MCP server for reading and annotating binaries in Ghidra |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/symgraph/GhidrAssistMCP.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about GhidrAssistMCP
How should an MCP client connect and select the right program?
http://localhost:8080/mcp using Streamable HTTP. Use tools/list to retrieve the current parameter schemas and refresh the tool catalog after upgrades. In sessions with multiple open programs, pass the project path as program_name rather than relying on which CodeBrowser window has focus.Does the extension require a GPU, and what drives resource use?
Can a company self-host it and analyze proprietary binaries?
When is this preferable to direct Ghidra scripting or manual CodeBrowser use?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy