Jupyter MCP Server logo

Jupyter MCP Server

Connects AI clients to Jupyter Server for multi-notebook editing, code execution, and text, image, and table outputs.

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": {
    "jupyter-mcp-server": {
      "command": "uvx",
      "args": [
        "better-jupyter-mcp-server"
      ],
      "env": {
        "ALLOW_IMG": "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.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx better-jupyter-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The jupyter-mcp-server MCP server connects MCP-compatible AI IDEs and CLI tools to Jupyter Server instances. It can manage multiple notebooks, edit and execute cells, restart kernels, and return text, image, and table outputs. Use it for interactive data analysis, visualization, debugging, or machine learning workflows that need notebook state. It runs over stdio and requires a Jupyter Server URL and authentication token.

Use cases

  • Execute and inspect notebook cells during data analysis
  • Modify multiple notebooks in an interactive workflow
  • Debug temporary Python or Jupyter code without saving it
  • Review visualizations and table outputs from notebook execution

Key features

  • Multi-notebook connection management
  • Notebook and cell editing
  • Interactive cell execution
  • Temporary unsaved code execution
  • Kernel restart support
  • Text, image, and table outputs

Security & health

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

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · better-jupyter-mcp-server (PyPI)

Adoption & maintenance

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

GitHub stars9Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Jupyter MCP Server works

What jupyter-mcp-server does

The jupyter-mcp-server MCP server gives an AI client access to Jupyter notebooks through the Model Context Protocol. It supports more than one connected notebook, allowing an agent to switch between notebooks during a larger analysis or development task.

Notebook operations include connecting to or creating a notebook by path, listing active notebook connections, restarting a notebook kernel, and reading notebook source without outputs. Cell operations cover listing cell metadata, reading cell contents, inserting or deleting cells, replacing cell content, and executing a selected cell.

The server also includes two combined or temporary execution paths. append_execute_code_cell adds a code cell at the end of a notebook and runs it, while execute_temporary_code runs code without saving it to the notebook. Cell results can include text, images, and tables when image output is enabled and the client can process those response types.

How it works

The jupyter-mcp-server MCP server communicates with a running Jupyter Server and its kernels. Before using the MCP tools, the client needs the Jupyter Server URL and its authentication token.

A typical workflow is to connect a notebook, inspect its cells, execute or modify selected cells, and read the resulting output. Connecting can take approximately 10 to 30 seconds because a kernel must be started. Restarting a notebook clears its imported packages and variables.

The MCP process uses stdio transport. The repository can be launched with FastMCP through uv, or installed for client configuration with uvx using the better-jupyter-mcp-server package command.

Setup and configuration

The documented environment requires Python 3.12 or newer and uv. An Anaconda environment is recommended by the project. For a source installation, clone the repository, run uv sync, and start it with uv run fastmcp run src/main.py.

A Jupyter environment must also be prepared. The documented setup installs jupyter, nbformat, datalayer_pycrdt, and jupyter-collaboration, then starts Jupyter Lab. Run jupyter server list to obtain the server URL and token. The Jupyter project directory should be the location containing the notebooks the client needs to access.

The sample MCP configuration uses stdio and can set ALLOW_IMG to true to permit image data in responses. Source users can adjust related settings in src/config.toml. Client-specific integration details are maintained separately in the repository documentation.

Tools and capabilities

  • Connect to or create a notebook by path with connect_notebook.
  • List active notebook connections with list_notebook.
  • Inspect notebook source and cell metadata with read_notebook and list_cell.
  • Read, insert, delete, overwrite, and execute cells.
  • Restart a notebook kernel.
  • Append and execute a code cell in one operation.
  • Run unsaved temporary code for debugging, magic commands, or intermediate values.
  • Return supported text, image, and table outputs from cell reads and execution.

Limitations and notes

The server requires a reachable Jupyter Server and its authentication token; installing the MCP package alone does not provide that notebook backend. Notebook connection is slower than ordinary metadata operations because kernel startup is involved.

Image output depends on configuration and client support. The README specifically recommends a multimodal model and an MCP client that can receive and interpret image data, noting that some clients may not support this response type. For large data-science tasks, the project recommends splitting work into smaller stages and providing notebook paths, dataset context, and clear task instructions.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Jupyter MCP Server

jupyter-mcp-server is an MCP server that connects AI clients to Jupyter Server and provides tools for managing notebooks, editing and executing cells, restarting kernels, and running temporary code. It supports multiple connected notebooks and can return text, image, and table outputs when configuration and client support allow it.

Install it with `uvx` by configuring the `better-jupyter-mcp-server` command, or clone the repository and run `uv sync`. The source setup starts the server with `uv run fastmcp run src/main.py` and uses stdio transport.

Start Jupyter Lab, run `jupyter server list`, and provide the displayed URL and authentication token to the AI client through its prompt or rules. The notebook path can also be included to help the client locate the target notebook.

Yes, Cursor is named as a supported MCP-compatible client in the project documentation. Configure the server with stdio transport, then provide the Jupyter Server URL and token before using notebook tools.

Yes, it can return image data when image output is enabled and the MCP client supports image responses. The sample configuration sets `ALLOW_IMG` to `true`, and the project recommends a multimodal model and compatible client for image results.

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/jupyter-mcp-server?style=directory)](https://allmcps.com/mcp/jupyter-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/jupyter-mcp-server"><img src="https://allmcps.com/api/badge/jupyter-mcp-server?style=directory" alt="Jupyter MCP Server on AllMCPs" /></a>