LaurieWired/GhidraMCP
MCP Server for Ghidra
🧠 LLMs Get a Reverse Engineering Superpower with ghidraMCP
ghidraMCP bridges the gap between AI and Ghidra, letting LLMs autonomously reverse engineer binaries.
ghidraMCP is a Model Context Protocol (MCP) server that integrates with Ghidra, enabling large language models (LLMs) to perform autonomous reverse engineering tasks. By exposing core Ghidra functionalities through MCP-compatible clients, it allows AI agents to decompile binaries, analyze code structures, and interact with disassembled programs programmatically. Built as both an MCP server and a Ghidra plugin, it supports seamless integration with popular tools like Claude Desktop, Cline, and 5ire.
✨ Highlights
- Decompile and analyze binaries: Full access to Ghidra's decompiler engine for translating machine code into readable pseudocode.
- Automatic method and data renaming: AI agents can programmatically rename functions and data structures for better code understanding.
- List methods, classes, imports, and exports: Enumerate key components of a binary to map out its structure.
- MCP-compliant server: Uses the standardized Model Context Protocol for broad compatibility with MCP clients.
- Plugin-based architecture: Installs directly into Ghidra via its extension system for tight integration.
- Multi-client support: Works with Claude Desktop, Cline, and 5ire out of the box.
- Configurable HTTP bridge: Python-based MCP client bridges communication between LLMs and the Ghidra backend.
- Open source and extensible: Apache 2.0 licensed, built with Java and Maven for easy customization.
💡 Why it matters
Traditional reverse engineering relies heavily on manual exploration inside GUI tools like Ghidra. ghidraMCP changes this by allowing LLMs to act as autonomous analysts, capable of navigating and interpreting binaries without constant human input. This opens new possibilities for automated malware analysis, vulnerability discovery, and legacy code comprehension.
By combining the analytical power of LLMs with Ghidra's robust reverse engineering capabilities, ghidraMCP enables more efficient workflows for security researchers, developers, and AI enthusiasts alike. It’s a practical bridge between two powerful paradigms: artificial intelligence and binary analysis.
#Ghidra #MCP #ReverseEngineering #AI #OpenSource #TiniX