Servers
Radare2 MCP Server
@dnakov
MCP stdio server for radare2
Overview
What is Radare2 MCP Server?
An MCP server that integrates the radare2 binary analysis framework with AI agents like OpenCode, Mai, VSCode, Claude, and CLION. It is written in C using native radare2 APIs and supports local or remote r2/iaito sessions via r2pipe, with optional HTTP server mode and raw r2 command access.
How to use Radare2 MCP Server?
Install via r2pm -Uci r2mcp or build from source with make install. Configure your MCP client (Claude Desktop, VS Code, Zed) to use r2pm with args: ["-r", "r2mcp"]. Alternatively, run as an HTTP server with r2mcp -H <port> or as an r2 core plugin with the r2mcp start command inside a radare2 session.
Key features of Radare2 MCP Server
- Fully written in C using native radare2 APIs.
- Seamless binary analysis with radare2 integration.
- Connect to local or remote r2/iaito via r2pipe.
- Supports readonly mode, sandbox lock, and tool restrictions.
- HTTP server mode with optional session multiplexing.
- Optional raw access to r2 commands or JavaScript scripts.
Use cases of Radare2 MCP Server
- Analyze binaries interactively with AI assistants like Claude or Copilot.
- Debug and reverse engineer executables from within code editors (VS Code, Zed).
- Run automated binary