PlugWiki
coderunner logo

CodeRunner MCP Server by InstaVM: Setup for Claude, Gemini CLI and Other Apps

Community

Lets Claude, Gemini CLI and other AI apps run Python code and read web pages inside a sandbox on your Mac.

CodeRunner runs a sandbox on your Mac and exposes it to your AI app, so the assistant can run Python, work with Office and PDF files, and read web pages. It needs a Mac with Apple silicon, and you set it up by cloning the repo and running its installer. It is made by InstaVM, the maker of this tool.

The code runs in a container, not directly on your Mac. By default that container has unrestricted network access, and the installer can turn that off.

Good for

  • Mac users who want an AI to run code without touching their own files
  • Analysts who want charts, spreadsheets and PDFs made by code
  • Developers testing agents that run code

Works in

Tap an app to see how to set it up and any known problems.

Install coderunner MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the coderunner MCP server to Claude Code. Run this command:
    
    claude plugin marketplace add https://github.com/instavm/coderunner-plugin
    claude plugin install instavm-coderunner
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires macOS on Apple silicon, Python 3.10+, CodeRunner installed.

Install first: clone the repo and run ./install.sh on a Mac with Apple silicon. The installer needs sudo and sets up Apple's container tool. The server then listens at coderunner.local:8222.

From the project README. Source.

Tools

  • Runs Python code in the sandbox

    Runs the Python you give it in a persistent Jupyter kernel inside the sandbox and returns the result, streaming progress as it runs. Pass a session ID to keep state separate from other agents.

    Try: “Load the CSV I uploaded and plot the monthly totals.”

    Runs code · execute_python_code

  • Opens a named, separate Python session

    Reserves an isolated kernel under a session name, so one agent's variables do not mix with another's. Up to five named sessions can run at once.

    Try: “Start a Python session called analysis.”

    Runs code · start_python_session

  • Lists open Python sessions

    Returns the named sessions that are currently active.

    Try: “Which Python sessions are open?”

    Read · list_python_sessions

  • Closes a Python session

    Stops a session and throws away its kernel state.

    Try: “Stop the analysis session.”

    Runs code · stop_python_session

  • Reads the text of a web page

    Opens the page in a Playwright browser inside the sandbox and returns all the text visible on it.

    Try: “Get the visible text from https://example.com/pricing.”

    Network · navigate_and_get_all_visible_text

  • Lists the skills in the sandbox

    Lists the built-in skills, such as working with Word, Excel, PowerPoint, PDF and image files.

    Try: “What skills does the sandbox have?”

    Read · list_skills

  • Shows how a skill works

    Returns the documentation for one skill.

    Try: “Show me how the PDF skill works.”

    Read · get_skill_info

  • Reads a file from a skill

    Returns a skill's file or example, so the assistant can follow it.

    Try: “Open the example script from the xlsx skill.”

    Read · get_skill_file

Read from the source code

Permissions

high risk · 4 things to watch

High risk

The assistant can run any Python code it likes inside a container on your Mac, with open internet access by default. Install with CODERUNNER_NETWORK=none if you do not need the network, and keep private files out of the shared folders.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It runs any Python code the assistant writes

    execute_python_code runs arbitrary code in the container and the project documents no read-only mode. Treat everything in the container as reachable by the model, and keep secrets out of uploads. github.com

  • The container has open internet access by default

    Code in the sandbox can reach the network unless you install with CODERUNNER_NETWORK=none. That mode also moves the endpoint to 127.0.0.1:8222. github.com

  • The local endpoint has no sign-in and also serves REST routes

    Inside the container the server listens on all interfaces (uvicorn --host 0.0.0.0, port 8222) with no authentication. Besides /mcp it serves plain REST routes such as /execute that run Python code. Host and Origin checks block drive-by requests from web pages, but anything that can reach port 8222 can run code in the sandbox. github.com

  • Two host folders are shared with the container

    The installer mounts ~/.coderunner/assets/skills/user and ~/.coderunner/assets/outputs into the container, so files written there appear on your Mac. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Talks toAnything the container can reach, unless installed with CODERUNNER_NETWORK=none
Sign-in and keysNo credentials. The README documents no sign-in for the local endpoint.
Scopes
  • A container on your Mac, with two folders from ~/.coderunner/assets mounted in

Questions

Is CodeRunner official?

It is made by InstaVM, which publishes it as its own local sandbox. It is not an official server for Claude, Gemini or any other app you connect it to.

What do I need to run it?

A Mac with Apple silicon (M1 to M4) and Python 3.10 or later. The installer warns if macOS is older than 26 and says some features of Apple's container tool might not work. Clone the repo and run ./install.sh, which installs Apple's container tool with sudo and starts the sandbox.

Does it run code on my Mac directly?

No. Code runs in a container named coderunner. Two folders under ~/.coderunner/assets are shared with it, and the container has network access unless you set CODERUNNER_NETWORK=none.

What is the CodeRunner MCP server URL?

http://coderunner.local:8222/mcp by default, or http://127.0.0.1:8222/mcp when installed with CODERUNNER_NETWORK=none.

Do I need an API key?

No. The README documents no account or key for the local server.

Can I stop it and start over?

Yes. Run container stop coderunner to stop it and container start coderunner to resume with your uploads and packages. To start clean, delete the container and run the installer again.

How many tools does it have?

Eight, counted from server.py on the main branch. The repository has no release tags or GitHub releases, so there is no tagged version to count against.

Information

updated Nov 2, 2026

Publisher
Community
License
Apache-2.0
Last commit
Oct 10, 2026
Open issues
3

WebsiteGitHubIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 4
  1. github.com · github.com
  2. github.com · github.com
  3. github.com · github.com
  4. github.com · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.