clearbluejar/pyghidra-mcp
Python Command-Line Ghidra MCP
What it solves
pyghidra-mcp bridges the gap between the Ghidra reverse engineering suite and modern AI agents. It allows LLMs and autonomous agents to interact with binary analysis data, perform automated reverse engineering tasks, and navigate Ghidra projects through a standardized interface.
How it works
It acts as a Model Context Protocol (MCP) server that connects to Ghidra via pyghidra and jpype. It exposes Ghidra's analytical capabilities—such as decompilation, cross-references, and symbol searching—as tools that an LLM can invoke. It supports a headless mode for automated pipelines and a GUI mode that synchronizes with a live Ghidra CodeBrowser instance.
Who it’s for
This tool is designed for security researchers, reverse engineers, and developers building AI-assisted workflows or automated CI/CD pipelines for binary analysis who want to integrate Ghidra's deep analytical power into their agentic systems.
Highlights
- Headless and GUI support: Run in the background for automation or launch a live Ghidra GUI for interactive navigation.
- Agent-optimized: Provides compact tool schemas and focused, structured data responses to minimize token usage.
- Semantic search: Includes vector-based search (via ChromaDB) for fast, fuzzy lookups across decompiled code and symbols.
- Automation-ready: Designed for repeatable behavior in CI/CD pipelines and large-scale reverse engineering tasks.
- Flexible CLI: Includes a dedicated CLI client for interactive terminal-based analysis without spawning new Ghidra processes for every command.
Related
- Project
- Project
- Project
- Project
- Project