Skip to main content
Glama
rsprudencio

Binary Ninja MCP Server

by rsprudencio

二进制忍者 MCP 服务器

用于 Binary Ninja 交互和自动化的模型上下文协议服务器。该服务器提供通过大型语言模型与 Binary Ninja 交互的工具。

概述

Binary Ninja MCP 服务器是一个插件和服务器实现,允许大型语言模型通过模型上下文协议 (MCP) 与 Binary Ninja 交互。它提供以下功能:

  • 获取函数的汇编代码

  • 获取函数的反编译代码(HLIL)

  • 重命名函数和变量

  • 添加评论

Related MCP server: IDA Pro MCP Server

安装

使用 uv(推荐)

使用uv时无需特殊安装。我们将使用uvx直接运行binja_mcp

使用 PIP

或者,您可以通过 pip 安装binja-mcp

pip install binja-mcp

安装后,您可以使用以下命令将其作为脚本运行:

python -m binja_mcp

二进制忍者插件安装

克隆此存储库或将克隆的存储库链接到 Binary Ninja 的插件目录:

  • Linux: ~/.binaryninja/plugins/

  • macOS: ~/Library/Application Support/Binary Ninja/plugins/

  • Windows: %APPDATA%\Binary Ninja\plugins\

配置

与 Claude Desktop/Cursor 一起使用

将其添加到您的claude_desktop_config.json或 Cursor MCP 服务器:

"mcpServers": {
  "binja": {
    "command": "uvx",
    "args": [
        "-n",
        "mcp-server-binja"
    ]
  }
}
"mcpServers": {
  "binja": {
    "command": "python",
    "args": [
        "-m", 
        "mcp_server_binja"
    ]
  }
}

用法

  1. 打开 Binary Ninja 并加载二进制文件

  2. 从工具菜单或使用键盘快捷键启动 MCP 服务器

  3. 使用 Claude Desktop、Cursor 或任何您喜欢的 MCP 客户端与二进制文件进行交互

可用命令

以下命令可通过 MCP 接口使用:

  • binja_get_function_assembly :获取指定函数的汇编代码

  • binja_get_function_decompiled :获取指定函数的反编译代码

  • binja_get_global_variable :获取有关全局变量的信息

  • binja_get_current_function_assembly :获取当前函数的汇编

  • binja_get_current_function_decompiled :获取当前函数的反编译代码

发展

如果您正在进行本地开发,则有两种方法可以测试您的更改:

  1. 运行 MCP 检查器来测试您的更改:

npx @modelcontextprotocol/inspector uvx binja_mcp
  1. 通过将以下内容添加到claude_desktop_config.json来使用 Claude 桌面应用程序进行测试:

{
  "mcpServers": {
    "binja": {
      "command": "uv",
      "args": [ 
        "--directory",
        "/<path to mcp-server-binja>/src",
        "run",
        "mcp-server-binja"
      ]
    }
  }
}

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A server that enables seamless integration of Binary Ninja's reverse engineering capabilities with LLM assistance, allowing AI tools like Claude to interact with binary analysis features in real-time.
    417
    GPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that allows LLMs to autonomously reverse engineer applications by exposing Ghidra's functionality, including decompiling binaries, analyzing code, and renaming methods and data.
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rsprudencio/binja_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server