Skip to main content

Sandboxes extension for Jupyter MCP Server (launch/use code-sandboxes runtimes as an alternative to Jupyter kernels)

Project description

Datalayer

Become a Sponsor

🪐🔧 Jupyter MCP Server Sandboxes Extension

jupyter_mcp_sandboxes is an optional extension for jupyter-mcp-server that adds sandbox-backed code execution. It is discovered automatically through the jupyter_mcp_server.extensions entry point (powered by reactor) once installed.

Features

Installing this extension exposes four additional MCP tools:

  • launch_sandbox — launch a sandbox runtime (eval, docker, jupyter, datalayer, colab, kaggle, monty, modal).
  • list_sandboxes — list launched sandboxes and their state.
  • use_sandbox — select (or clear) the active sandbox used by execute_code.
  • terminate_sandbox — stop and unregister a sandbox.

It also lets SANDBOX_VARIANT route the standard notebook/cell execution tools through a non-jupyter backend via a SandboxKernel adapter.

Installation

pip install jupyter_mcp_sandboxes

Backend-specific extras are provided by the underlying code-sandboxes package, e.g.:

pip install "code-sandboxes[modal]"   # Modal
pip install "code-sandboxes[colab]"   # Google Colab
pip install "code-sandboxes[kaggle]"  # Kaggle

Usage

Once installed, start jupyter-mcp-server as usual — no flag is required. The sandbox tools appear automatically. To route execute_code through a specific backend by default, set SANDBOX_VARIANT:

SANDBOX_VARIANT=monty jupyter-mcp-server start --transport streamable-http

License

BSD 3-Clause License. Copyright (c) 2024- Datalayer, Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_mcp_sandboxes-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_mcp_sandboxes-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_mcp_sandboxes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f49976eccf04017dd8f16356cae6fff458ec3b066c24556f6e9abe731c476b7
MD5 893e42ebfb37c20b4eb158eb88cc54cf
BLAKE2b-256 41be104ac2a0e0b94acd2cbd02e0ecd2a505fa3e7deaa358a35b756da9546730

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page