Jupyter MCP Server
Published
At a glance
- Category
- Data & analytics
- GitHub repository
- datalayer/jupyter-mcp-server
- Watch out for
- It is maintained by Datalayer, not by Project Jupyter, and the hosted endpoint requires a Datalayer account.
Jupyter MCP Server is not a Project Jupyter release. It is built and maintained by Datalayer, Inc., under the BSD-3-Clause license, and it connects an agent to live Jupyter notebooks so it can read cells, edit them and run code while you watch the changes appear in JupyterLab. The repository is active, with release v2.2.6 published in November 2026.
The usual way to run it is locally over stdio, pointed at a JupyterLab instance through JUPYTER_URL and JUPYTER_TOKEN. The docs also cover Streamable HTTP and running it as a Jupyter Server extension, and Datalayer now hosts an instance at https://mcp.datalayer.run/mcp that signs you in with OAuth 2.1 against your Datalayer account.
The notable design choice is the split between where notebook documents live and where code runs. Execution goes to a Jupyter Server by default, but the SANDBOX_VARIANT setting can send it to other code-sandboxes backends such as Datalayer, Kaggle, Google Colab, Modal, Daytona, E2B, CoreWeave or Cloudflare, mostly through optional extras.
How it connects
Your AI app
An assistant or agent that supports MCP
Jupyter MCP Server
Runs as
- Python (uv / pip)
- Docker
- Remote (HTTP)
Gives the agent
- Notebook management
- Cell editing
- Code execution
- Server and files
- Code sandboxes
- JupyterLab commands and prompts
Jupyter
Signs in with
- Token
What it can do
- Notebook management
- list_notebooks, use_notebook, unuse_notebook, read_notebook and restart_notebook open, switch between, read and reset the notebooks the agent is working on.
- Cell editing
- read_cell, insert_cell, delete_cell, move_cell, edit_cell_source, overwrite_cell_source and clear_cell_output change notebook content one cell at a time or wholesale.
- Code execution
- execute_cell runs a cell in the active kernel, insert_execute_code_cell adds and runs one in a single step, and execute_code runs arbitrary code on the active backend with multimodal output.
- Server and files
- list_files, list_kernels and connect_to_jupyter let the agent browse the Jupyter file system, see running kernels and attach to a server at runtime.
- Code sandboxes
- With the optional jupyter_mcp_sandboxes extension installed, launch_sandbox, list_sandboxes, use_sandbox and terminate_sandbox manage remote execution backends.
- JupyterLab commands and prompts
- In JupyterLab mode, jupyter-mcp-tools exposes commands such as notebook_run-all-cells and notebook_get-selected-cell, and the jupyter-cite prompt lets you cite specific cells.
Setting it up
Install the JupyterLab side first with pip install jupyterlab jupyter-collaboration jupyter-mcp-tools ipykernel, then start it with jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0. Install uv (pip install uv) and add a server entry to your client config, for example Claude Desktop: "jupyter": {"command": "uvx", "args": ["jupyter-mcp-server@latest"], "env": {"JUPYTER_URL": "http://localhost:8888", "JUPYTER_TOKEN": "MY_TOKEN", "ALLOW_IMG_OUTPUT": "true"}}. For production the README offers the Docker image datalayer/jupyter-mcp-server:latest with the same variables passed through -e (use http://host.docker.internal:8888 as the URL on macOS and Windows). DOCUMENT_ID optionally fixes the default notebook path, relative to where JupyterLab started. Claude Code users can instead run /plugin marketplace add datalayer/jupyter-mcp-server followed by /plugin install datalayer, and the docs link client guides for VS Code, Cursor, Cline and Windsurf.
claude mcp add --transport http jupyter https://mcp.datalayer.run/mcpIf the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Load a CSV in a running notebook, explore it cell by cell and leave the plots in place for review
- Fix a failing cell by reading its output, editing the source and re-running it
- Reorder, clean up and clear outputs in a messy notebook before sharing it
- Run the same notebook code on a remote GPU sandbox such as Datalayer or Kaggle instead of the local kernel
Limitations and things to watch
- It is maintained by Datalayer, not by Project Jupyter, and the hosted endpoint requires a Datalayer account.
- Real-time editing depends on jupyter-collaboration being installed and working in JupyterLab.
- The execution tools run arbitrary code with the permissions of the connected kernel, so give it a token only for a server you are comfortable letting an agent run code on.
- Recent releases renamed options (--provider became --document-provider in v1.3.2) and changed pins with code-sandboxes, so older configs may need updating per the release notes.
- Sandbox lifecycle tools and non-default backends need extra packages such as jupyter_mcp_sandboxes or the matching extras.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /datalayer/jupyter-mcp-server
- jupyter-mcp-server.datalayer.tech /mcp
- github.com /datalayer/jupyter-mcp-server/releases
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.