radare2-mcp
radare2とAIアシスタントを統合するためのMCPサーバーです。標準入力/出力を介した通信モデルを使用し、バイナリ解析やファイルの探索・検査をシームレスに行うことができます。AIアシスタントとの直接的な統合により、ユーザーは効率的に作業を進めることができます。
GitHubスター
78
ユーザー評価
未評価
お気に入り
0
閲覧数
21
フォーク
15
イシュー
3
インストール方法
難易度
中級推定所要時間
10-20 分
必要な環境
radare2: Latest version
Claude Desktop: Latest version
インストール方法
インストール方法
前提条件
必要なソフトウェアとバージョンを明記してください。radare2: 最新版
Claude Desktop: 最新版
インストール手順
1. r2pmを使用してインストール
bash
$ r2pm -Uci r2mcp
トラブルシューティング
よくある問題
問題: サーバーが起動しない 解決策: radare2とClaude Desktopのバージョンを確認してください。設定方法
設定方法
Claude Desktop設定
Claude DesktopアプリでCMD + ,
を押して開発者設定を開き、以下の設定ファイルを編集します。
Claude Desktopの設定ファイルの場所
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
設定ファイルの内容
以下の内容を設定ファイルに追加します:json
{
"mcpServers": {
"radare2": {
"command": "r2pm",
"args": ["-r", "r2mcp"]
}
}
}
使用例
使用例
基本的な使用方法
MCPサーバーの基本的な使用方法を以下に示します:Claude Desktopでの使用
1MCPサーバーの起動確認
Claude Desktopを開き、設定が正しく読み込まれていることを確認してください。
2基本コマンドの実行
Available tools from this MCP server:
- tool1: Description of tool1
- tool2: Description of tool2
プログラムでの使用
javascript
// JavaScript例(Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');
const client = new MCPClient();
await client.connect();
// ツールの実行
const result = await client.callTool('toolName', {
parameter1: 'value1',
parameter2: 'value2'
});
console.log(result);
使用ケース
AIアシスタントを使用してバイナリファイルの解析を自動化する。
radare2を用いて複雑なバイナリデータを視覚化する。
CLIから直接AIアシスタントにバイナリ分析の結果を送信する。
ファイルシステム内の特定のファイルを探索し、情報を取得する。
作者情報
632
フォロワー
76
リポジトリ
0
Gist
0
貢献数
関連するMCP
Multi-Process-MCP
0
This project was completed during my Operating Systems course. The concept of the project is take an input file that lists various commands that should be performed by the CLI and would execute if they are valid commands with valid arguments. The project adds a multi process feature by having multiple processes working on the input file and thus increasing the efficiency of the application. All the code was written using C.