Radare2 MCP Server logo

Radare2 MCP Server

by radareorg

Radare2 MCP Server enables seamless binary analysis with radare2 by providing a simple MCP server for AI assistants like Claude. It allows direct integration of radare2 with AI assistants for file exploration and inspection.

View on GitHub

Last updated: N/A

What is Radare2 MCP Server?

Radare2 MCP Server is a server that allows you to use radare2, a reverse engineering framework, with AI assistants like Claude. It acts as a bridge, enabling the AI to leverage radare2's capabilities for binary analysis.

How to use Radare2 MCP Server?

To use the server, install it using r2pm. Then, configure your AI assistant (e.g., Claude Desktop) to use the server by adding the appropriate configuration to the assistant's configuration file, specifying the command and arguments to execute the r2mcp binary. Alternatively, you can use Docker to run the server.

Key features of Radare2 MCP Server

  • Direct stdin/stdout communication

  • Basic tool capabilities

  • Seamless binary analysis with radare2

  • Direct integration of radare2 with AI assistants

  • File exploration and inspection

Use cases of Radare2 MCP Server

  • Automated binary analysis with AI assistance

  • Reverse engineering assistance

  • Vulnerability analysis

  • Malware analysis

FAQ from Radare2 MCP Server

What is MCP?

MCP stands for Message Channel Protocol. It's a protocol used for communication between applications, in this case, between an AI assistant and radare2.

How do I install r2mcp?

The recommended way to install r2mcp is using the r2pm package manager: r2pm -Uci r2mcp.

How do I configure Claude to use r2mcp?

You need to update the Claude configuration file (claude_desktop_config.json) with the appropriate mcpServers configuration, specifying the command and arguments to execute r2mcp.

Can I use Docker to run r2mcp?

Yes, you can use Docker. The README provides instructions on how to build and run the r2mcp Docker image and configure Claude to use it.

Where is the Claude configuration file located?

The location depends on your operating system: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json, Linux: ~/.config/Claude/claude_desktop_config.json