Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

radare2-mcp

MCP.Pizza Chef: radareorg

radare2-mcp is an MCP server that integrates the radare2 reverse engineering framework with AI assistants via a stdin/stdout communication model. It enables seamless binary analysis, file exploration, and inspection by exposing radare2's capabilities as an MCP server, allowing AI models like Claude to interact directly with binaries for advanced analysis workflows.

Use This MCP server To

Perform binary analysis through AI-driven radare2 commands Explore and inspect binary files interactively with AI assistance Integrate radare2 reverse engineering into AI-enhanced workflows Automate malware or vulnerability analysis using AI and radare2 Enable AI assistants to query binary structures and metadata Use radare2 features remotely via MCP protocol for security audits

README

Radare2 MCP Server

Screenshot_2025-03-22_at_5 34 47_PM Screenshot_2025-03-22_at_5 36 17_PM

A MCP server for using radare2 with AI assistants like Claude.

Features

This implementation provides a simple MCP server that:

  • Uses a direct stdin/stdout communication model
  • Provides basic tool capabilities
  • Allows seamless binary analysis with radare2
  • Direct integration of radare2 with AI assistants
  • File exploration and inspection

Installation

The simplest way to install the package is by using r2pm:

$ r2pm -Uci r2mcp

The r2mcp executable will be copied into the r2pm's bindir in your home, but this binary is not suposed to be executed from the shell because it will only work when launched from the MCP service handler of your language model of choice.

Configuration

In the Claude Desktop app press CMD + , to open the Developer settings to edit the configuration file and restart the client after editing the json file explained below

Claude Desktop Integration

To use this with Claude Desktop, update your Claude configuration file:

  1. Locate your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the following to your configuration file:

{
  "mcpServers": {
    "radare2": {
      "command": "r2pm",
      "args": ["-r", "r2mcp"]
    }
  }
}

Docker

Alternatively, you can use Docker to run r2mcp.

docker build -t r2mcp .

Then, update your Claude Desktop configuration file to use the Docker image:

{
  "mcpServers": {
    "radare2": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-v", "/tmp/data:/data", "r2mcp"]
    }
  }
}

radare2-mcp FAQ

How do I install radare2-mcp?
Install radare2-mcp easily using r2pm with the command `r2pm -Uci r2mcp`.
How does radare2-mcp communicate with AI assistants?
It uses a direct stdin/stdout communication model to interact with AI assistants like Claude.
Can radare2-mcp be run standalone from the shell?
No, radare2-mcp is designed to be launched from an MCP service handler, not directly from the shell.
What capabilities does radare2-mcp expose?
It provides basic tool capabilities for binary analysis, file exploration, and inspection using radare2.
Which AI assistants are compatible with radare2-mcp?
radare2-mcp works with AI assistants supporting MCP, such as Claude, OpenAI GPT models, and Gemini.
Is radare2-mcp suitable for automated security analysis?
Yes, it enables automation of malware and vulnerability analysis by integrating radare2 with AI workflows.
Does radare2-mcp support real-time binary inspection?
Yes, it allows interactive exploration and inspection of binaries in real time via MCP.