Jupyter MCP Server

v1.0.0Developer Toolsstable

Enables interaction with Jupyter notebooks through the Model Context Protocol, supporting code execution and markdown insertion within JupyterLab environments.

aijupytermcpmcp-servertools
Share:
1,118
Stars
0
Downloads
0
Weekly
0/5

What is Jupyter MCP Server?

Jupyter MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables interaction with jupyter notebooks through the model context protocol, supporting code execution and markdown insertion within jupyterlab environments.

Enables interaction with Jupyter notebooks through the Model Context Protocol, supporting code execution and markdown insertion within JupyterLab environments.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables interaction with Jupyter notebooks through the Model

Use Cases

Execute code notebooks through MCP
Markdown and code integration in JupyterLab
datalayer

Maintainer

LicenseBSD 3-Clause
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx jupyter-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Jupyter MCP Server

Jupyter MCP Server bridges JupyterLab and MCP-compatible AI clients, enabling LLMs like Claude to read, write, and execute cells in live Jupyter notebooks through natural language. It exposes a comprehensive set of tools covering file listing, kernel management, cell insertion, cell execution, source editing, and notebook-level run-all operations, all backed by real-time collaboration via jupyter-collaboration. Data scientists and researchers use it to let AI assistants write and run analysis code directly inside their notebooks without copy-pasting between interfaces.

Prerequisites

  • Python 3.8 or later with pip
  • JupyterLab 4.4.1 and jupyter-collaboration 4.0.2 installed
  • The uv package manager installed for uvx-based deployment
  • A running JupyterLab instance with a known token
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install JupyterLab and collaboration dependencies

Install the specific versions of JupyterLab, the collaboration extension, and the MCP tools package required by the server.

pip install jupyterlab==4.4.1 jupyter-collaboration==4.0.2 jupyter-mcp-tools>=0.1.4 ipykernel pycrdt
2

Start JupyterLab with a known token

Launch JupyterLab on a fixed port with a specific token so the MCP server can authenticate. Keep this terminal running while using the MCP server.

jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0
3

Install and run the MCP server via uvx

In a separate terminal, install uv and launch the Jupyter MCP server using uvx, pointing it at your running JupyterLab instance.

pip install uv
uvx jupyter-mcp-server@latest
4

Configure your MCP client

Add the Jupyter MCP server to your Claude Desktop or compatible client configuration, passing the JupyterLab URL and token as environment variables.

{
  "mcpServers": {
    "jupyter": {
      "command": "uvx",
      "args": ["jupyter-mcp-server@latest"],
      "env": {
        "JUPYTER_URL": "http://localhost:8888",
        "JUPYTER_TOKEN": "MY_TOKEN"
      }
    }
  }
}
5

Verify notebook access

In your MCP client, ask the AI to list available notebooks or kernels. This confirms the server has successfully authenticated with JupyterLab and can see your workspace.

Jupyter MCP Server Examples

Client configuration

Claude Desktop configuration for Jupyter MCP Server with authentication and image output enabled.

{
  "mcpServers": {
    "jupyter": {
      "command": "uvx",
      "args": ["jupyter-mcp-server@latest"],
      "env": {
        "JUPYTER_URL": "http://localhost:8888",
        "JUPYTER_TOKEN": "MY_TOKEN",
        "ALLOW_IMG_OUTPUT": "true",
        "MCP_TOKEN": "your_mcp_token"
      }
    }
  }
}

Prompts to try

Example prompts that demonstrate cell execution, notebook editing, and data analysis workflows.

- "List all open notebooks and their active kernels"
- "Insert a Python cell at the end of my notebook that imports pandas and reads data.csv"
- "Execute the cell I just added and show me the output"
- "Read the source of cell 3 in my analysis notebook"
- "Run all cells in the notebook from top to bottom and summarize any errors"
- "Add a markdown cell explaining what the previous code block does"

Troubleshooting Jupyter MCP Server

Connection refused or authentication errors when the MCP server tries to reach JupyterLab

Confirm JupyterLab is running on the port specified in JUPYTER_URL and that the JUPYTER_TOKEN exactly matches the --IdentityProvider.token value used when launching JupyterLab. If running in Docker, ensure the container network allows the MCP server to reach localhost:8888.

Cell execution hangs or times out

Check that the notebook has an active kernel ('list_kernels' tool or JupyterLab UI). If the kernel is idle or dead, restart it via the JupyterLab interface or use the 'restart_notebook' tool before retrying execution.

Image outputs from matplotlib or other libraries are not returned

Set the environment variable ALLOW_IMG_OUTPUT=true in your MCP client configuration. Without this flag the server filters out binary image outputs and only returns text. Restart the MCP server after adding the variable.

Frequently Asked Questions about Jupyter MCP Server

What is Jupyter MCP Server?

Jupyter MCP Server is a Model Context Protocol (MCP) server that enables interaction with jupyter notebooks through the model context protocol, supporting code execution and markdown insertion within jupyterlab environments. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Jupyter MCP Server?

Follow the installation instructions on the Jupyter MCP Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Jupyter MCP Server?

Jupyter MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Jupyter MCP Server free to use?

Yes, Jupyter MCP Server is open source and available under the BSD 3-Clause license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "jupyter-mcp-server": { "command": "npx", "args": ["-y", "jupyter-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Jupyter MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides