
代码执行 MCP 二进制忍者服务器
概览
二进制忍者模型上下文协议(MCP)服务器,通过代码执行使LLM辅助倒置工程成为可能. 此插件执行 Anthropic 的代码执行模式 。 LLM没有访问典型的MCP"工具",而是会写出Python代码,直接针对二进制忍者API执行. 这种方法(被Cloudflare描述为"代码模式")更具有象征性效率并使得在一次执行中能够进行更复杂的多步骤分析. - 写入直接与二进制忍者API相对抗的 Python - 查询并变换二进制数据库 - 检查点/回滚,持续的工作空间文件,以及可重复使用的分析模式 - API 引用来源于代码,在工具描述中的骑行,所以模型总是有它,而且它永远不能从插件实际暴露的东西上漂移 - search api ()并描述 () 读取 Binary Ninja 自己的 API 共 31 个类型,所以包装器所不覆盖的任何东西都是模型向上看的东西而不是死端 1. 联合国.
概述(AI 翻译)
二进制忍者模型上下文协议服务器 LLM辅助反向工程通过代码执行.
□ 概览
此插件执行 Anthropic 的代码执行 模式。 而不是访问 典型的MCP"工具",LLM会写出Python代码,直接针对二进制忍者API执行. 这种方法(被Cloudflare称为"代码模式")是: 更具有象征性效率,并能在一次执行中进行更复杂的多步骤分析。
□ 关键特性
写Python,直接对抗二等忍者API
- 查询并变异二进制数据库
- 检查站/回滚、持续工作空间文件和可重复使用的分析模式
- API 参考来源于代码,在工具描述中的骑行,所以模型 总是有它,它永远不会漂移 从插件实际暴露的东西
- [ [T0] 和 [ [T1]] 读取 二进制忍者自己的API 跨31种类型,所以任何 包装不是盖的 是模特看上的东西 而不是死路一条
□ 安装
QQ方法 1: 插件管理器( 建议)
- 二进制忍者,打开插件管理器([[T2]).
- 联合国.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Binary Ninja Code Mode MCP
A Model Context Protocol (MCP) server for Binary Ninja that enables LLM-assisted reverse engineering through code execution.
Overview
This plugin implements Anthropic’s Code Execution pattern. Instead of accessing the typical MCP “tools”, the LLM writes Python code that executes directly against Binary Ninja’s API. This approach (described by Cloudflare as “Code Mode”) is more token-efficient and enables more complex multi-step analyses in a single execution.
Key Features
- Write Python that runs directly against Binary Ninja’s API
- Query and mutate the binary database
- Checkpoint/rollback, persistent workspace files, and reusable analysis patterns
- The API reference is generated from the code and rides in the tool description, so the model always has it and it can never drift from what the plugin actually exposes
search_api()anddescribe()read Binary Ninja’s own API across 31 types, so anything the wrapper does not cover is something the model looks up rather than a dead end
Installation
Method 1: Plugin Manager (Recommended)
- In Binary Ninja, open the Plugin Manager (
Plugins > Manage Plugins) - Search for
Code Mode MCPorbinja_codemode_mcp - Click
Install - Restart Binary Ninja
After installation, the plugin will be located in the community plugins folder:
# Linux
~/.binaryninja/repositories/community/plugins/akrutsinger_binja_codemode_mcp/
# macOS
~/Library/Application Support/Binary Ninja/repositories/community/plugins/akrutsinger_binja_codemode_mcp/
# Windows
%APPDATA%\Binary Ninja\repositories\community\plugins\akrutsinger_binja_codemode_mcp\
Method 2: Manual Installation
Clone or download this repository and copy to your Binary Ninja plugins folder:
# Linux
cp -r . ~/.binaryninja/plugins/binja_codemode_mcp/
# macOS
cp -r . ~/Library/Application\ Support/Binary\ Ninja/plugins/binja_codemode_mcp/
# Windows
xcopy /E /I . "%APPDATA%\Binary Ninja\plugins\binja_codemode_mcp"
Copy the whole repository, not just plugin/: plugin/ is a subpackage and imports config.py
and plugin.json from the directory above it.
MCP Client Configuration
The plugin serves MCP over HTTP at http://127.0.0.1:42069/mcp, authenticated with a bearer token.
There is no bridge script to launch, so the configuration no longer depends on where the plugin was
installed: point your client at the URL.
Claude Code — one command, no config file to edit:
claude mcp add binja-codemode-mcp -s user --transport http \
http://127.0.0.1:42069/mcp \
--header "Authorization: Bearer binja-codemode-local"
安装
npx -y mcp-remote http://127.0.0.1:42069/mcp --header Authorization: Bearer binja-codemode-local配置
{
"mcpServers": {
"binja-codemode-mcp": {
"type": "http",
"url": "http://127.0.0.1:42069/mcp",
"headers": {
"Authorization": "Bearer binja-codemode-local"
}
}
}
}