MCP: support running python scripts in the context of the server

Open
#8,343 0 comments 3 reactions 1 assignee View on GitHub

@iamausertoo is already working on this.

Since Jul 22, 2026.

Assessment

This issue has not been assessed yet.

Description

Component: MCP

What is the feature you'd like to have?
I want to have an action on the MCP server to run an arbitrary python script in the context of the current session. I want my agent to be able to give a python script to the server and get results back.

Is your feature request related to a problem?
Largely to work around missing features in the MCP server, since binja has a lot of features and not all of them are exposed over MCP.

Are any alternative solutions acceptable?
I can tell my agent to stop using the MCP server and write the script itself, but this will require a bunch of extra coordination to transfer analysis data between the different sessions (and for BNDBs, could cause file locking problems).

Additional Information:
Likely should be edition-gated to Commercial and above, due to headless support being a Commercial+ feature.

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.