
Description
r2mcp is an MCP server that lets AI agents use radare2, the reverse engineering framework, to inspect and disassemble binaries. It is written in C using radare2's native APIs and works in three ways: from the command line, as a radare2 plugin, and as an MCP server. By default it talks over stdin and stdout. It can also run as an HTTP MCP server, with optional per-session state through an X-Session-ID header. It can connect to any local or remote radare2 or iaito session through r2pipe. For control, it supports a read-only mode, a sandbox lock and restricted tool sets, along with fine-grained tool configuration. Optional raw access lets an agent run r2 commands or r2js scripts. The README gives installation through r2pm, the radare2 package manager, a Codex plugin that copies its files into a personal marketplace, and a Docker image. It names OpenCode, VS Code, Claude and CLion among the agents it works with.…
Highlights
- Binary disassembly and inspection with radare2
- Read-only mode, sandbox lock and tool restrictions
- Connects to local or remote r2 sessions via r2pipe
- Stdio or HTTP MCP server modes
- Install with r2pm, Docker or the Codex plugin
Ratings & Reviews
No ratings yet
Be the first to rate radareorg/r2mcp.
People also visit

reverse-engineer-anything
Reverse engineer native, managed, Electron/JavaScript, packaged, firmware
radareorg/r2mcp FAQ
What is r2mcp?
An MCP server that connects AI agents to radare2 so they can analyse and disassemble binary files.
How do I install it?
The simplest route is r2pm, the radare2 package manager. The README also describes a Docker image and a Codex plugin.
Can I limit what the agent does?
Yes. The README lists a read-only mode, a sandbox lock, tool restriction and fine-grained tool configuration.
Can it run as a network service?
Yes, with the -H option for HTTP mode. A bare port binds to 127.0.0.1, and you must write 0.0.0.0 explicitly to accept network connections.
Which agents does it support?
The README names OpenCode, Mai, VS Code, Claude and CLion, and includes a Codex plugin.
What are the best radareorg/r2mcp alternatives?
Popular alternatives to radareorg/r2mcp include radare2, 13bm/GhidraMCP and ReVa. See all radareorg/r2mcp alternatives














