Server facts
Jupyter MCP Server
Project
- Author
- datalayer
- Repository
- github.com/datalayer/jupyter-mcp-server
- License
- BSD-3-Clause
- Category
- Data & Analytics
Tech
- Runtime / language
- pythonPython
- Transports
- stdio
- Remote available
- No
- Authentication
- Not specified
Activity
- GitHub stars
- 1,304
- Last commit
- Data as of
Tags
- Code Execution
- Data Science
- Jupyter
- Notebooks
- Python
Overview
Jupyter MCP Server connects AI assistants to notebooks for live inspection, editing, and execution. It can enumerate files and kernels, open or create notebooks, switch between them, and restart individual notebook kernels. Cell tools cover reading metadata and outputs, inserting or moving cells, replacing source, applying targeted edits, and running code. Execution feedback lets an assistant respond to failed cells, while supported output types include text, plots, and images. JupyterLab integration adds commands such as running every cell and inspecting the selected cell, with configuration available to expose further commands.
The Python project supports standard input/output and documents Streamable HTTP and Jupyter extension deployments. Its local quick start prepares JupyterLab with collaboration-related packages, starts a token-protected Jupyter service, and launches the MCP process through uvx or Docker. The README additionally flags MCP_TOKEN as required in client configuration from version 1.0.0, even though the abbreviated local example shows the Jupyter connection variables. Document storage and kernel execution can use separate URLs and credentials for more complex deployments. Images require a client and model that can handle multimodal content, and image output can be disabled. A hook system integrates OpenTelemetry for tool and kernel tracing. The README recommends breaking large data-science workflows into smaller steps and supplying clear dataset and environment context.
Install & configure
Requirements
- Python
- uv 0.6.14 or later
- A running authenticated Jupyter service
- JupyterLab collaboration setup as documented
- An MCP-compatible client
uvx jupyter-mcp-server@latestThe environment setup includes ipykernel, pycrdt, and jupyter-mcp-tools, with JupyterLab pinned to 4.4.1 and jupyter-collaboration to 4.0.2. It separately warns that MCP_TOKEN is required from v1.0.0; consult its linked provider setup for that token's configuration. Image output needs compatible clients and models.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"jupyter-mcp-server": {
"command": "uvx",
"args": [
"jupyter-mcp-server@latest"
],
"env": {
"JUPYTER_URL": "<URL of the running Jupyter service>",
"JUPYTER_TOKEN": "<Jupyter authentication token>",
"ALLOW_IMG_OUTPUT": "<true for image-capable clients, otherwise false>",
"MCP_TOKEN": "<MCP authentication token required by the README's version 1.0.0 notice>"
}
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"jupyter-mcp-server": {
"command": "uvx",
"args": [
"jupyter-mcp-server@latest"
],
"env": {
"JUPYTER_URL": "<URL of the running Jupyter service>",
"JUPYTER_TOKEN": "<Jupyter authentication token>",
"ALLOW_IMG_OUTPUT": "<true for image-capable clients, otherwise false>",
"MCP_TOKEN": "<MCP authentication token required by the README's version 1.0.0 notice>"
}
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"jupyter-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"jupyter-mcp-server@latest"
],
"env": {
"JUPYTER_URL": "<URL of the running Jupyter service>",
"JUPYTER_TOKEN": "<Jupyter authentication token>",
"ALLOW_IMG_OUTPUT": "<true for image-capable clients, otherwise false>",
"MCP_TOKEN": "<MCP authentication token required by the README's version 1.0.0 notice>"
}
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"jupyter-mcp-server": {
"command": "uvx",
"args": [
"jupyter-mcp-server@latest"
],
"env": {
"JUPYTER_URL": "<URL of the running Jupyter service>",
"JUPYTER_TOKEN": "<Jupyter authentication token>",
"ALLOW_IMG_OUTPUT": "<true for image-capable clients, otherwise false>",
"MCP_TOKEN": "<MCP authentication token required by the README's version 1.0.0 notice>"
}
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"jupyter-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"jupyter-mcp-server@latest"
],
"env": {
"JUPYTER_URL": "<URL of the running Jupyter service>",
"JUPYTER_TOKEN": "<Jupyter authentication token>",
"ALLOW_IMG_OUTPUT": "<true for image-capable clients, otherwise false>",
"MCP_TOKEN": "<MCP authentication token required by the README's version 1.0.0 notice>"
}
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| list_files | Enumerate directories and files exposed by the Jupyter service. |
| list_kernels | Inspect available kernels and running kernel sessions. |
| connect_to_jupyter | Change Jupyter connections without restarting; unavailable in extension mode. |
| use_notebook | Open, create, or switch to a notebook. |
| list_notebooks | List available notebooks and their current status. |
| restart_notebook | Restart the kernel for a managed notebook. |
| unuse_notebook | Disconnect a notebook and free its associated resources. |
| read_notebook | Read notebook cell sources with brief or detailed output. |
| read_cell | Inspect one cell's source, metadata, and outputs. |
| insert_cell | Add a code or Markdown cell at a chosen position. |
| delete_cell | Remove a cell by index. |
| move_cell | Reposition a cell within its notebook. |
| overwrite_cell_source | Replace an existing cell's source content. |
| edit_cell_source | Apply targeted find-and-replace changes to cell source. |
| execute_cell | Run a cell with timeout control and multimodal results. |
| insert_execute_code_cell | Create a code cell and run it in one operation. |
| execute_code | Run code directly in the kernel, including magic and shell commands. |
| notebook_run-all-cells | Run current notebook cells in sequence when JupyterLab mode is enabled. |
| notebook_get-selected-cell | Inspect the selected notebook cell in JupyterLab mode. |
Names, permissions, and defaults can change. Check the current upstream documentation before granting access.
Use cases
- Inspect a notebook and repair failed analysis cells with output feedback.
- Create, edit, and execute cells from an MCP assistant.
- Switch between several notebooks during a data-science workflow.
- Trace tool calls and kernel execution with observability hooks.
Strengths
- Combines notebook structure editing with live kernel execution.
- Supports plots, images, and text outputs.
- Manages multiple notebooks and dynamic server connections.
- Includes JupyterLab integration and tracing hooks.
Limitations
- Requires a configured Jupyter environment and authentication tokens.
- Image handling depends on client and model capabilities.
- Dynamic server connection is unavailable in Jupyter extension mode.
Frequently asked questions
Independent listing, not an affiliation or security review. Grant the least access needed and verify the upstream instructions before running code.