Enables Large Language Models to interact with Binary Ninja via Model Context Protocol, providing functionalities like retrieving assembly and decompiled code, renaming functions and variables, and adding comments for enhanced binary analysis and automation.
Unlock the full potential of Binary Ninja MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
A Model Context Protocol server for Binary Ninja interaction and automation. This server provides tools to interact with Binary Ninja via Large Language Models.
The Binary Ninja MCP Server is a plugin and server implementation that allows Large Language Models to interact with Binary Ninja through the Model Context Protocol (MCP). It provides functionalities such as:
When using uv
no specific installation is needed. We will
use uvx
to directly run binja_mcp.
Alternatively you can install binja-mcp
via pip:
pip install binja-mcp
After installation, you can run it as a script using:
python -m binja_mcp
Clone this repository OR link the cloned repository into Binary Ninja's plugin directory:
~/.binaryninja/plugins/
~/Library/Application Support/Binary Ninja/plugins/
%APPDATA%\Binary Ninja\plugins\
Add this to your claude_desktop_config.json
or Cursor MCP servers:
Using uvx
"mcpServers": { "binja": { "command": "uvx", "args": [ "-n", "mcp-server-binja" ] } }
Using pip installation
"mcpServers": { "binja": { "command": "python", "args": [ "-m", "mcp_server_binja" ] } }
The following commands are available through the MCP interface:
binja_get_function_assembly
: Get assembly code for a named functionbinja_get_function_decompiled
: Get decompiled code for a named functionbinja_get_global_variable
: Get information about a global variablebinja_get_current_function_assembly
: Get assembly for the current functionbinja_get_current_function_decompiled
: Get decompiled code for the current functionIf you are doing local development, there are two ways to test your changes:
npx @modelcontextprotocol/inspector uvx binja_mcp
claude_desktop_config.json
:{ "mcpServers": { "binja": { "command": "uv", "args": [ "--directory", "//src", "run", "mcp-server-binja" ] } } }
This project is licensed under the MIT License - see the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!