Until December 31: monthly plans give up to 2.5 times their price in credit. Scale is $200 a month with $400 of usage credit. See plans →

Binary Ninja MCP

Set up Binary Ninja MCP with Claude Code or OpenCode on Abliterator: the built-in 6.0 server, community servers compared, editions, Sidekick and a first analysis.

Published Binary NinjaMCPReverse EngineeringClaude Code

Quick answer

Binary Ninja MCP is a Model Context Protocol server that lets an AI client open binaries, list functions and strings, and read Pseudo C in Binary Ninja. Since version 6.0 of September 3, 2026, Vector 35 ships one in every edition: an HTTP server inside the GUI at 127.0.0.1:24642. Add it to Claude Code or OpenCode, point the client at Abliterator and pick kimi-k3.1-pro-abliterated.

What a Binary Ninja MCP server does

A Binary Ninja MCP server lets an AI client work inside Binary Ninja through the Model Context Protocol. The model calls tools that open a file, run analysis, list functions, strings and imports, and render disassembly, IL or Pseudo C, then reads the results and decides what to ask next. Since Binary Ninja 6.0 (Krypton), released September 3, 2026, Vector 35 ships its own server in two variants: an HTTP server inside the GUI, in every edition including Free, and a standalone stdio binary, binaryninja_mcp, for headless use in Commercial and Ultimate. Before 6.0, Binary Ninja MCP servers came from community plugins, which still exist and offer more write tools.

The server has no model of its own. The MCP client, such as Claude Code or OpenCode, sends the tool results to a model and runs the calls the model asks for, so the client decides which model does the reasoning. That is how a Binary Ninja MCP server reaches Abliterator: through a client that accepts a custom endpoint.

This guide follows Vector 35's MCP documentation, docs/guide/mcp.md at the stable/6.0.10905 tag of the binaryninja-api repository (commit 775c3b5, the current stable release, October 20, 2026), checked 2026-12-03. The client commands follow the Claude Code and OpenCode documentation linked below. We did not run Binary Ninja for this guide.

Only for systems you own or have written permission to test. For reverse engineering, also respect the software's license and the law where you are, and analyze samples in an isolated VM. For other disassemblers and debuggers, see AI reverse engineering.

Binary Ninja MCP servers compared

The built-in server is the default choice on 6.0 and later. The community servers predate it and add tools the built-in one does not document, such as byte patching and scripting. Figures were checked 2026-12-03 in each repository or in Vector 35's documentation.

Server Stars Transport Tools Binary Ninja edition and version License Maintained
Built-in GUI server (docs) Part of Binary Ninja HTTP at http://127.0.0.1:24642/mcp, optional bearer token Not listed; the docs name the categories and tell you to read the list in your client 6.0 or later, every GUI edition, Free included, native Windows too Binary Ninja's license Yes, by Vector 35
Built-in headless server, binaryninja_mcp Part of Binary Ninja stdio Same as the GUI server 6.0 or later, Commercial or Ultimate, macOS and Linux; on Windows only under WSL Binary Ninja's license Yes, by Vector 35
fosdickio/binary_ninja_mcp 482 stdio bridge (Python or npm) to an HTTP plugin on localhost:9009 56 in the Python bridge Any edition that runs plugins, so not Free; plugin.json asks for build 4000 or later; Python 3.12+ GPL-3.0 Slowing: last commit 2026-04-05, release v1.2.1 of 2026-03-22, 24 open pull requests
mrphrazer/binary-ninja-headless-mcp 264 stdio, TCP 181 A headless-capable license (Commercial or Ultimate); Python 3.11+ GPL-2.0 Yes; last commit 2026-09-19, no releases
Invoke-RE/binja-lattice-mcp (BinjaLattice) 67 stdio, to a token-authenticated REST plugin 25 Any edition that runs plugins MIT Last commit 2026-07-01
MCPPhalanx/binaryninja-mcp 54 SSE on port 7000, with a stdio relay 15 GUI plugin, or headless with uvx binaryninja-mcp server (Commercial or Ultimate) Apache-2.0 No commits since 2025-05-13
symgraph/BinAssistMCP 50 SSE, streamable HTTP 45 Any edition that runs plugins MIT Archived; its README sends users to the built-in server
  • Tool counts come from the source or README. fosdickio's count is the @mcp.tool() functions in bridge/binja_mcp_bridge.py (the npm bridge registers 55), BinjaLattice's the @mcp.tool() functions in mcp_server.py, and the others' their READMEs.
  • What the built-in server can change. Vector 35's documentation describes file and view management, analysis control and read-only inspection: entry points, segments, sections, symbols, imports, exports, strings, memory reads, disassembly, IL, Pseudo C, callers, callees and cross-references. The 6.0 release notes add that both variants "can rename objects, create and apply types, and create data variables as well."
  • fosdickio's server writes more: it renames functions, variables and data, sets comments, prototypes and types, and patches bytes. Its README shows the same advice as IDA's ida-pro-mcp: tell the model to use a conversion tool instead of converting number bases itself.
  • mrphrazer's server opens sessions read-only by default, supports undo and redo, and exposes arbitrary scripting through binja.eval. Its README says MCP traffic is unauthenticated by default, by design for "trusted, containerized agent environments."
  • Plugins will be able to add their own tools to the built-in server: the docs/dev/mcp-tools.md page on the dev branch documents it, but the 6.0.10905 stable docs do not yet.

This guide walks through the built-in GUI server. It ships with Binary Ninja, so there is nothing else to install or keep in step with new releases, it works in every edition, and Vector 35 maintains it; BinAssistMCP's author archived that project in its favor. If you need byte patching, or you run Binary Ninja 5.x, use fosdickio's plugin; the client setup below is the same apart from the server command. For Ghidra and IDA, see Ghidra MCP and IDA Pro MCP.

Binary Ninja editions, plugins and headless mode

Which server you can run depends on the edition. Vector 35's purchase page says: "Plugins work in all editions except for Free, but only the Commercial and Ultimate editions can run plugins without running the GUI." Personal, the non-commercial edition, reaches the API "only through plugins loaded via the GUI or entered interactively in the built-in python console." Prices are list prices for a named license, checked 2026-12-03.

Edition List price Built-in GUI MCP server Community MCP plugins Headless API and binaryninja_mcp Commercial use
Free $0 Yes, since 6.0 No: Free has "no API or plugins" No Non-commercial use and commercial evaluation
Personal (Non-Commercial) $199 Yes Yes, inside the GUI No No
Commercial $1,799 Yes Yes Yes; binaryninja_mcp on macOS and Linux Yes
Ultimate $3,499 Yes Yes Yes; binaryninja_mcp on macOS and Linux Yes

Native Windows packages do not include binaryninja_mcp.exe. Vector 35's release notes blame Windows file locking, "where a running MCP server can corrupt or block an installation," and the docs suggest the GUI server on Windows, or the Linux build under WSL.

Vector 35's own AI: Sidekick

Sidekick is Vector 35's AI service and plugin for Binary Ninja. It runs agents across one or many binaries in separate workspaces, records findings with links to the code that supports them, has a second agent check each finding, and saves names, types and comments to the database as transactions you can revert. Facts below come from Vector 35's FAQ, pricing page and documentation, checked 2026-12-03:

  • Requirements. A Binary Ninja license with active support, in any edition except Free, "because it lacks the ability to run plugins." Sidekick 26.3, the current release, needs Binary Ninja 6.0.10601 or later.
  • Plans. Sidekick Free costs nothing with active support and has a limited monthly allowance; Vector 35 may use Free plan data "for product development and training purposes." Paid plans are Basic at $30, Pro at $100 and Max at $300 a month, with 1, 4 and 10 times the Basic usage; Pro and Max prohibit data collection for training.
  • Where the model runs. The hosted service sends only the context a request needs, typically the selected function, its disassembly or IL and the data it references, not the whole binary. Sidekick Self-Hosted, at $5,000 per concurrent user per year with a minimum of three, runs on your own hardware and, per the FAQ, can use your own inference server or a cloud service "so long as it conforms to the OpenAI API specification."
  • MCP. Sidekick is also an MCP client: it can load tools from external MCP servers over stdio.

Sidekick and the MCP route solve the same problem from opposite ends. Sidekick brings Vector 35's agents, verification and model routing. The MCP route brings your own client and lets you choose the model. Another community route skips MCP altogether: the BinAssist plugin (MIT, release 2.1.0) calls "any OpenAI v1-compatible or Anthropic API" from inside Binary Ninja, per its README, so it can be pointed at https://abliterator.ai/v1 directly.

How the server reaches a model

With the built-in GUI server the chain has three parts:

  1. Binary Ninja serves the open file over HTTP at http://127.0.0.1:24642/mcp. With the headless variant, the MCP client starts binaryninja_mcp and talks to it over stdio instead.
  2. The MCP client, Claude Code or OpenCode here, connects to that server, gives its tools to the model and runs the calls the model asks for.
  3. The model is Abliterator. Claude Code reaches it through the Anthropic Messages API at https://abliterator.ai; OpenCode through the OpenAI-compatible API at https://abliterator.ai/v1. Both send the tools as native tool calls, which both models support (tool calling).

Vector 35's docs show configurations for Claude Desktop, Cursor, VS Code and Codex. This guide uses Claude Code and OpenCode because both accept a custom model endpoint.

Before you start

  • An isolated VM with Binary Ninja, the MCP client and the binaries. Static analysis does not run the program, but the client can run commands, so keep it off your workstation and production networks.
  • Binary Ninja 6.0 or later. The current stable build is 6.0.10905, from October 20, 2026.
  • Claude Code or OpenCode, with an Abliterator key from /keys. Create a key for this lab only, with a spend limit (authentication). New accounts get $10 of credit.

Turn on the built-in server

The steps are from Vector 35's MCP documentation:

  1. Open Settings with Ctrl+, (Cmd+, on macOS).
  2. Enable ui.mcp.enabled. The setting needs a restart.
  3. Set ui.mcp.token to a long random string. Left blank, the server accepts requests without authorization, so any local process can call it.
  4. Leave ui.mcp.port at 24642 and ui.mcp.endpoint at /mcp unless something else uses them.
  5. Restart Binary Ninja and open your binary.
  6. Choose Plugins > MCP > Start Server, then Plugins > MCP > Copy Connection Info. It copies the exact URL and the Authorization header for this session.

Generate the token in a terminal and keep it in an environment variable for the client:

export BN_MCP_TOKEN="$(openssl rand -hex 24)"
echo "$BN_MCP_TOKEN"

Paste the printed value into ui.mcp.token. Vector 35's own Codex example uses the same variable name, BN_MCP_TOKEN.

Route 1: Claude Code

Point Claude Code at Abliterator with the variables from the Claude Code guide:

export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY

export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"

Then add the GUI server with the --transport http form from Claude Code's MCP docs, which takes the bearer token through --header:

claude mcp add --transport http binaryninja http://127.0.0.1:24642/mcp \
  --header "Authorization: Bearer $BN_MCP_TOKEN"
claude mcp list

The shell expands $BN_MCP_TOKEN before Claude Code stores the entry, so the token is saved in ~/.claude.json; use a token for this VM only. The default scope, local, ties the server to the current directory; add --scope user to use it everywhere.

On Commercial or Ultimate, macOS or Linux, you can run the headless server instead. Claude Code starts it over stdio; everything after -- is the command, and -p stops it loading user and Extension Manager plugins:

export BN_DIR="/path/to/your/binaryninja"   # the folder that holds binaryninja_mcp
claude mcp add --transport stdio binaryninja -- "$BN_DIR/binaryninja_mcp" -p

The headless server has no UI to follow, so the model opens files and picks the active view through MCP tools.

Start Claude Code in your lab directory without its shell tool, so the model can read the binary through Binary Ninja but cannot run it:

mkdir -p ~/re-lab && cd ~/re-lab
claude --disallowedTools "Bash"

Per Claude Code's CLI reference, a bare tool name in --disallowedTools removes that tool from the model's context. Run /mcp inside the session to see binaryninja and its tools. Claude Code asks before each tool call you have not allowed; approve read tools as they come and keep anything that renames or retypes on ask.

Route 2: OpenCode

OpenCode reaches Abliterator as an OpenAI-compatible provider, set up as in the OpenCode guide. Add the Binary Ninja server next to that providers block in opencode.jsonc, as a remote server in the format of OpenCode's MCP servers docs:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "abliterator/kimi-k3.1-pro-abliterated",
  "mcp": {
    "servers": {
      "binaryninja": {
        "type": "remote",
        "url": "http://127.0.0.1:24642/mcp",
        "oauth": false,
        "headers": { "Authorization": "Bearer {env:BN_MCP_TOKEN}" },
        "codemode": false,
      },
    },
  },
  "permissions": [
    { "action": "shell", "resource": "*", "effect": "deny" },
  ],
}
Field Why
type: "remote", url OpenCode connects to a running Streamable HTTP server instead of starting one
oauth: false OpenCode tries OAuth on remote servers by default; Binary Ninja uses a bearer token
{env:BN_MCP_TOKEN} OpenCode substitutes the variable; it does not expand $NAME in JSON strings
codemode: false Puts the tools on the model's native tool list instead of OpenCode's default Code Mode
permissions Denies the shell action, so the model cannot run the binary

For the headless server, use "type": "local" with "command": ["/path/to/your/binaryninja/binaryninja_mcp", "-p"]; JSON strings do not expand ~ or variables in a command. Run opencode mcp list to check the connection, then start opencode in your lab directory.

First task: a program you compiled

The safest first target is a binary you built from source you have read, because you can check every claim the model makes. This program prints a 32-bit hash and a bucket name for each word on its command line. Save it as ~/re-lab/wordhash.c in the VM:

#include <stdint.h>
#include <stdio.h>

static uint32_t fnv1a32(const char *s) {
    uint32_t h = 0x811c9dc5u;
    for (; *s; s++) {
        h ^= (unsigned char)*s;
        h *= 0x01000193u;
    }
    return h;
}

static const char *bucket_name(uint32_t h) {
    switch (h % 3) {
    case 0:
        return "bucket-a";
    case 1:
        return "bucket-b";
    default:
        return "bucket-c";
    }
}

int main(int argc, char **argv) {
    if (argc < 2) {
        fprintf(stderr, "usage: %s WORD...\n", argv[0]);
        return 2;
    }
    for (int i = 1; i < argc; i++) {
        uint32_t h = fnv1a32(argv[i]);
        printf("%08x  %s  %s\n", h, bucket_name(h), argv[i]);
    }
    return 0;
}

Build it and strip the symbols, so the model has unnamed functions to work out. -fno-inline keeps the two helpers as separate functions:

cd ~/re-lab
cc -O1 -fno-inline -o wordhash wordhash.c
strip wordhash
./wordhash hello world

Open wordhash in Binary Ninja, let analysis finish and start the MCP server. Then send these prompts one at a time. The built-in server's tool names start with bn_; /mcp in Claude Code lists them.

  1. "Give me a triage summary of the active binary: format, architecture, entry point, imports and strings. Which library functions does it use?" The server returns a compact summary with entry point, segment, section, symbol, function and string counts, and list tools for imports and strings. Expect the printf family in the imports (some Linux toolchains link __printf_chk instead) and the usage message and three bucket- names in the strings.
  2. "List the functions. Render Pseudo C for main and explain it. For each unnamed function it calls, propose a name and give a one-line reason. Don't rename anything yet." After stripping, the helpers appear under generated names that start with sub_, and the model proposes names from what each body does.
  3. "Render Pseudo C for the function main calls in its loop. If it implements a known algorithm, name it and quote the constants that identify it." A correct answer names 32-bit FNV-1a and quotes the offset basis 0x811c9dc5 and the prime 0x01000193.
  4. "Rename the two helpers to the names you proposed." Renaming is a write, so keep it on ask in the client and watch the names change in the Binary Ninja window.

Check the model's claim in step 3 against a second implementation. The two outputs match if it is right:

./wordhash hello world
python3 -c 'import sys
for w in sys.argv[1:]:
    h = 0x811c9dc5
    for b in w.encode():
        h = ((h ^ b) * 0x01000193) & 0xFFFFFFFF
    print("%08x  %s" % (h, w))' hello world

Address parameters on the built-in server are strings that Binary Ninja evaluates as expressions, so "0x401000", "main" and ".text" all work. If the model keeps sending addresses as JSON numbers, add "pass addresses as strings" to your prompt. Text inside a binary comes from whoever wrote it, and strings or symbol names can be written to read like instructions to the model. Keep write tools on ask, keep the shell tool off, save a copy of the database before a session that renames, and confirm conclusions in the listing before they go into a report. For indicators, detections and report writing on real samples, see malware analysis.

Which model to use

Both models support tool calling (tool calling) and a 1,048,576-token context. They refuse far less than the originals: refusals fell from 94% to 1% on DeepSeek V4.1 Flash and from 94% to 3% on Kimi K3.1 Pro (benchmarks).

Model Use it for Notes
kimi-k3.1-pro-abliterated Long sessions that read, name and retype across a whole binary Terminal-Bench 4.0 went from 66.6 to 62.3 after abliteration, a drop that is plausible but not statistically shown (benchmarks), so try it on a binary you know first
deepseek-v4.1-flash-abliterated Single questions, string and import triage, many small binaries On security suites it stayed within noise of the original: CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6 (benchmarks)

Each turn resends the tool definitions and the conversation, including earlier Pseudo C. Abliterator caches the repeated prefix automatically and bills it at $0.40 per 1M tokens on kimi-k3.1-pro-abliterated and $0.10 on deepseek-v4.1-flash-abliterated (prompt caching). The built-in server paginates long lists with offset and limit, so ask for one function or one page at a time on large binaries.

Why a hosted model sometimes stops

Hosted frontier models run cyber safeguards that judge each request, and decompiled code from a suspicious sample can trip them even when the work is defensive. The providers say so in their own policies:

  • Anthropic. Its Usage Policy, effective November 12, 2026, "does not prohibit security research, testing, or tool development conducted on systems you own or operate," and says "encountering a block does not by itself indicate a violation." Its Cyber Verification Program lists malware analysis under Defense Access, the only tier individuals can apply for; it is not on the Free plan, and enrolled users "may experience some model refusals and classifier blocks for allowed security work."
  • OpenAI. Its Usage Policies, effective November 20, 2026, prohibit "circumventing our safeguards." Its Daybreak Trusted Access program lists malware analysis under Daybreak Blue, requires approval, and says "Some safeguards can still apply after approval, even with Daybreak Red."

If your team works under one of these programs, use it. Abliterator serves models with the refusal behavior removed from the weights, so the analysis does not depend on a safeguard's judgment of each request. Some uses are always prohibited; see the acceptable use policy. More on each provider: Claude refused and ChatGPT refused.

Troubleshooting

Symptom Cause Fix
claude mcp list or opencode mcp list cannot connect to 127.0.0.1:24642 ui.mcp.enabled is off, Binary Ninja was not restarted, or the server was not started Enable the setting, restart, then Plugins > MCP > Start Server. Copy Connection Info reports "not running" until it starts
The client reaches the server but its requests are rejected The client sends no bearer token, or one that does not match ui.mcp.token Copy the header from Copy Connection Info, or re-export BN_MCP_TOKEN and add the server again
Connection refused after changing the port ui.mcp.port or ui.mcp.endpoint changed while the server ran Restart the GUI MCP server; with port 0 the OS picks one, so read it from Copy Connection Info
binaryninja_mcp: No such file or directory, or the stdio server fails to start Wrong path, native Windows, or an edition without the headless server Use the absolute path; on Windows use the GUI server or the Linux build under WSL; check you have Commercial or Ultimate. Run the command in a terminal to see its error
A tool returns no_active_binary_view No view is selected, common with the headless server Ask the model to list the binary views and set one active first
400 that names defer_loading or tool_reference, or Extra inputs are not permitted Claude Code v2.1.304 and later turn on tool search behind a custom ANTHROPIC_BASE_URL (MCP docs) Set ENABLE_TOOL_SEARCH=false; v2.1.305 and later also retry without tool search
404 Model "claude-..." is not available on abliterator A Claude Code model alias is not pinned Set every model variable in Route 1
The model describes tool calls in text and never makes them The model or client lacks tool calling Use kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated, which both support tool calling

Large Pseudo C output is normal. Claude Code warns when a tool result passes 10,000 tokens and caps one result at 25,000 tokens by default; raise the cap with MAX_MCP_OUTPUT_TOKENS (MCP docs).

Frequently asked questions

Does Binary Ninja have an MCP server?

Yes. Binary Ninja 6.0, released September 3, 2026, includes a first-party MCP server. The GUI server runs over HTTP in every edition, Free included, and the headless binaryninja_mcp server runs over stdio in Commercial and Ultimate on macOS and Linux.

Does the Binary Ninja MCP server work in the free edition?

The GUI server does: Vector 35's 6.0 release notes say it is included in all editions, including Free. The headless binaryninja_mcp server is not in Free or Personal, and community MCP plugins need an edition that runs plugins, which Free does not.

What is Binary Ninja Sidekick?

Sidekick is Vector 35's own AI service and plugin for Binary Ninja. It runs agents across your binaries, records findings with evidence and saves names, types and comments to the database. It needs a Binary Ninja license with active support and does not run in the Free edition (checked 2026-12-03).

Which model should I use with Binary Ninja MCP?

Use kimi-k3.1-pro-abliterated for long sessions that read and rename across a whole binary, and deepseek-v4.1-flash-abliterated for quick questions and string or import triage. Both support tool calling and a 1,048,576-token context.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.