rizin-mcp
Rizin MCP Server
Rizin MCP Server is a server that integrates the Rizin reverse engineering tool, RzGhidra decompiler (pdg), and Mandiant capa behavioral capability identification with MCP (Model Context Protocol).
It empowers Large Language Models (such as Claude, GPT-4, Llama 3) to automatically open binary files, identify behavioral labels (MITRE ATT&CK / MBC), automatically extract program feature addresses, and directly perform C pseudocode decompilation and analysis.
Repository Structure
rizin-mcp/
├── src/
│ └── rizin_mcp/
│ ├── __init__.py
│ ├── server.py # Core logic for the MCP Server
│ └── rz_extractor.py # Efficient Rizin feature extractor (RizinFeatureExtractor)
├── examples/ # Standalone example/dev-time scripts (not part of the installed package)
│ └── client_proxy.py # Manual client proxy for multi-turn tool-calling tests
├── docker/ # Docker deployment configuration (Dockerfile, compose)
├── tests/ # Unit tests (pytest) and validation scripts
├── .gitignore # Git ignore configuration
├── LICENSE # MIT License
├── README.md # Project documentation
└── pyproject.toml # Project configuration and dependency management (uv / pip)Quick Start
1. Installation and Preparation
Use uv for fast environment setup and dependency installation:
git clone https://github.com/kd992102/rizin-mcp.git
cd rizin-mcp
uv sync2. Start MCP Server
You can start the MCP Server directly via the package CLI or as a module:
uv run python -m rizin_mcp.serverTesting and Integration
A. Testing with Anthropic's Official Web UI (MCP Inspector)
npx @modelcontextprotocol/inspector uv run python -m rizin_mcp.serverAfter executing, open http://localhost:6274 in your browser to test, view analysis logs, and inspect C decompiled code on the web interface.
B. Integrating with Claude Desktop
Add the following to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"rizin-analyzer": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\rizin-mcp",
"run",
"python",
"-m",
"rizin_mcp.server"
]
}
}
}C. Deployment using Docker (Headless Mode)
This project supports encapsulating the server in a Docker container for execution:
docker compose -f docker/docker-compose.yml up -dProvided MCP Tools
Tool Name | Description |
| Open a binary file and perform automatic analysis ( |
| Use Mandiant capa against capa-rules to identify binary capabilities and feature addresses. Runs as a background job (returns a |
| Poll a background |
| List all function names, addresses, and sizes (supports keyword filtering). |
| Call RzGhidra (pdg) to decompile a specific address/function into C code (Ghidra's |
| Get the assembly disassembly for a specific function. |
| Get architectural information such as Headers, Sections, Imports, and Exports. |
| List every entry in the PE resource table (.rsrc), flagging when a resource's declared type doesn't match its actual content (magic bytes) - a strong signal for embedded/disguised files. |
| Extract the raw bytes of a specific PE resource by type + ID, base64-encoded. |
| Search the import table by function name and/or DLL keyword, returning structured JSON. |
| Search for readable strings present in the binary file. |
| Find cross-references/call dependencies for a function or address. |
| Given an imported function name, list every call site and the function it belongs to, in one call. |
| Execute custom, read-only Rizin commands (e.g., |
| Safely close the currently opened file and session. |
Acknowledgments
This project relies heavily on the excellent work of the open-source community. We would like to express our gratitude to the following projects:
Mandiant capa: For their powerful automated malware capability detection engine and comprehensive capa-rules.
Rizin: For providing an extremely fast and robust binary analysis framework.
rz-ghidra: For bringing the formidable Ghidra decompiler to the Rizin ecosystem.
License
This project is licensed under the MIT License.