Jupyter MCP Server logo

Jupyter MCP Server

by datalayer

Connects MCP-compatible AI clients to Jupyter notebooks for inspection, editing, execution, and multimodal output handling.

Install Jupyter MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "datalayer-jupyter-mcp-server": {
      "command": "uvx",
      "args": [
        "jupyter-mcp-server@latest"
      ],
      "env": {
        "DOCUMENT_PROVIDER": "YOUR_VALUE_HERE",
        "PROVIDER": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

datalayer/jupyter-mcp-server connects MCP clients with Jupyter notebooks for real-time inspection, updates, and code execution. It can target a local Jupyter Server, JupyterHub, Datalayer, or supported remote code-sandbox backends, including Kaggle, Google Colab, Modal, Daytona, E2B, CoreWeave, and Cloudflare. Agents can work across multiple notebooks and use cell output feedback when adapting execution. Reach for it when an AI coding or data-science workflow needs notebook context rather than isolated code execution.

Use cases

  • Inspect and update notebooks through an AI coding client
  • Execute data-science cells and review their outputs
  • Switch between multiple notebooks during an agent session
  • Run notebook code in remote sandbox environments
  • Connect an agent to a local Jupyter Server or JupyterHub

Key features

  • Real-time notebook interaction
  • Context-aware cell execution
  • Multimodal text, image, and plot outputs
  • Multiple notebook support
  • Configurable document providers and sandbox variants
  • OAuth 2.1 and personal access token authentication

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

49/49 checks healthy over the last 88d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · jupyter-mcp-server@latest (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.3kStargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Jupyter MCP Server works

What datalayer/jupyter-mcp-server does

datalayer/jupyter-mcp-server exposes Jupyter notebook operations through the Model Context Protocol. It is designed for AI agents that need to inspect notebook state, make changes, execute cells, and work with outputs such as text, plots, and images.

The server supports real-time notebook interaction and can switch between multiple notebooks. It also provides JupyterLab-oriented behavior, including automatic notebook opening. Notebook documents and code execution are configured separately, allowing a notebook to live in one environment while code runs through a selected sandbox variant.

How it works

An MCP client connects to the server and uses its notebook and execution capabilities. The server maintains notebook context so agent requests can account for the surrounding document rather than treating each cell as an isolated snippet. Cell output is fed back into the execution workflow, allowing later actions to respond to failures and results.

Document access can use the collaboration API of a Jupyter Server or the Datalayer provider. Execution can use jupyter-server, datalayer, daytona, e2b, coreweave, cloudflare, kaggle, google-colab, monty, or modal, depending on the configured sandbox variant.

A hosted deployment is available at https://mcp.datalayer.run/mcp, so clients can connect without running a local process. The project can also point at a Jupyter instance already operated locally or through JupyterHub.

Setup and configuration

Install the Python package with:

Terminal
pip install jupyter-mcp-server

The hosted endpoint provides browser-based OAuth 2.1 sign-in. Approved scopes include notebooks:read, notebooks:write, code:execute, and data:read; the user's Datalayer permissions continue to limit which notebooks are accessible. Personal access tokens are also supported for command-line and scripted use.

Use --document-provider to select where notebook documents are stored. The former --provider option and PROVIDER environment variable remain deprecated aliases; new configurations should use the document-provider name. Select the execution environment independently with --sandbox-variant.

Tools and capabilities

  • Inspect and modify Jupyter notebooks in real time.
  • Execute notebook code with cell-output feedback.
  • Preserve broader notebook context during agent interactions.
  • Handle text, image, and plot outputs.
  • Work with multiple notebooks.
  • Open notebooks automatically through JupyterLab integration.
  • Connect to local, JupyterHub, hosted Datalayer, and supported sandbox environments.

Limitations and notes

The notebook server and code-sandboxes package must use compatible variant names. For jupyter-mcp-server 1.5.0 or newer, install code-sandboxes 1.1.1 or newer; earlier server versions require code-sandboxes 1.0.9 or earlier. A mismatch can cause execution to fail with an unknown sandbox-variant error.

Version 2 of the server uses the MCP Python SDK 2, while versions before 2 use the SDK's pre-2 dependency range. Environments containing another package pinned to mcp<2 may need to remain on a pre-2 server release.

OAuth scopes control the operation types an agent may request, but they do not grant access beyond the user's own Datalayer permissions.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Jupyter MCP Server

datalayer/jupyter-mcp-server is an MCP server that connects AI agents to Jupyter notebooks and supported code-sandbox environments. Its main tools support real-time notebook inspection and updates, cell execution with output feedback, multi-notebook workflows, and handling text, image, and plot outputs through MCP-compatible clients.

Install it with `pip install jupyter-mcp-server`. You can run it against a local Jupyter Server or JupyterHub, or connect an MCP client to the hosted endpoint at `https://mcp.datalayer.run/mcp` without running a local process.

Yes, datalayer/jupyter-mcp-server works with Cursor and other MCP-compatible clients. The project also names Claude Desktop and Windsurf, and provides a Claude Code plugin with notebook, run, and status commands.

It supports Jupyter Server, Datalayer, Daytona, E2B, CoreWeave, Cloudflare, Kaggle, Google Colab, Monty, and Modal execution variants. Configure the execution target separately with `--sandbox-variant`; notebook document storage uses `--document-provider`.

Authentication can use OAuth 2.1 or personal access tokens. OAuth opens a browser for sign-in and grants approved scopes such as notebook reading, notebook writing, code execution, and data reading, while the user's Datalayer permissions still restrict notebook access.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewJupyter MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/datalayer-jupyter-mcp-server?style=directory)](https://allmcps.com/mcp/datalayer-jupyter-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/datalayer-jupyter-mcp-server"><img src="https://allmcps.com/api/badge/datalayer-jupyter-mcp-server?style=directory" alt="Jupyter MCP Server on AllMCPs" /></a>