About datalayer/jupyter-mcp-server
datalayer/jupyter-mcp-server is an MCP server published by datalayer in the Developer Tools category: 🪐 🔧 Model Context Protocol (MCP) Server for Jupyter. Conduid read 18 tools from its source: clear_cell_output, connect_to_jupyter, delete_cell, edit_cell_source, execute_cell, execute_code and 12 more. It is published to PyPI as jupyter_mcp_server and runs with uvx.
The repository has 1.3K stars and 210 forks, is licensed BSD-3-Clause, and its last commit was on 1 Dec 2026. The latest release is v2.2.5 (5 Nov 2026). It follows v2.2.4 (11 Oct 2026), and the 5 most recent releases go back to v2.2.1 (20 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include devtools.
Install
claude mcp add jupyter-mcp-server -- uvx jupyter-mcp-server@latestuvx jupyter-mcp-server@latestuvx jupyter_mcp_serverpip install jupyter_mcp_servergit clone https://github.com/datalayer/jupyter-mcp-serverTools (18)
clear_cell_outputClear the outputs and execution count of a single code cell in the currently| Parameter | Type | Description |
|---|---|---|
| cell_id | string | Address the cell by its notebook cell id instead of its index. An index is a position, and a position stops being true the moment anyone inserts a cell above it; an id does not. Every result says which id it acted on, so read a cell once and address it by id afterwards. Given both, the id wins. |
| cell_index | integer | Index of the code cell to clear (0-based). Omit when passing cell_id. |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
connect_to_jupyterConnect to a Jupyter server dynamically with URL and token.| Parameter | Type | Description |
|---|---|---|
| document_provider | string | Which backend holds the notebook documents |
| jupyter_token | string | Jupyter server authentication token |
| jupyter_url * | string | Jupyter server URL to connect to (e.g., 'http://localhost:8888') |
delete_cellDelete specific cells from the currently activated notebook and return the cell source of deleted cells (if include_source=True).| Parameter | Type | Description |
|---|---|---|
| cell_ids_to_delete | array | Address the cells by their notebook cell ids instead of their indices. Safer for a multi-cell delete than indices, which shift as earlier cells go. Given both, the ids win; every id is checked before any cell is deleted, so a bad one fails the whole call rather than half-deleting the notebook. |
| cell_indices | array | List of cell indices to delete (0-based). Omit when passing cell_ids_to_delete. |
| include_source | boolean | Whether to include the source of deleted cells |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
edit_cell_sourcePerform a surgical find-and-replace within a cell's source (like an editor's Edit tool).| Parameter | Type | Description |
|---|---|---|
| cell_id | string | Address the cell by its notebook cell id instead of its index. An index is a position, and a position stops being true the moment anyone inserts a cell above it; an id does not. Every result says which id it acted on, so read a cell once and address it by id afterwards. Given both, the id wins. |
| cell_index | integer | Index of the cell to edit (0-based). Omit when passing cell_id. |
| new_string * | string | Replacement string |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
| old_string * | string | Exact string to find in cell source |
| replace_all | boolean | Replace all occurrences (default: first only) |
execute_cell| Parameter | Type | Description |
|---|---|---|
| cell_id | string | Address the cell by its notebook cell id instead of its index. An index is a position, and a position stops being true the moment anyone inserts a cell above it; an id does not. Every result says which id it acted on, so read a cell once and address it by id afterwards. Given both, the id wins. |
| cell_index | integer | Index of the cell to execute (0-based). Omit when passing cell_id. |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
| progress_interval | integer | Seconds between progress updates (MCP keepalive + optional stream log) |
| stream | boolean | Enable streaming progress (including time indicator) updates for long-running cells |
| timeout | integer | Maximum seconds to wait for execution (0 = use config default) |
execute_codeExecute code directly in a kernel (not saved to notebook).| Parameter | Type | Description |
|---|---|---|
| code * | string | Code to execute (supports magic commands with %, shell commands with !) |
| kernel_id | string | Target an existing kernel by ID (e.g. a raw kernel with no notebook). If omitted, uses the current notebook's kernel. |
| progress_interval | integer | Seconds between MCP progress keepalive updates during long-running execution |
| timeout | integer | Maximum seconds to wait for execution (0 = use config default) |
insert_cellInsert a cell to specified position from the currently activated notebook.| Parameter | Type | Description |
|---|---|---|
| cell_index * | integer | Target index for insertion (0-based), use -1 to append at end |
| cell_source * | string | Source content for the cell |
| cell_type * | string | Type of cell to insert |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
insert_execute_code_cellInsert a cell at specified index from the currently activated notebook and then execute it with timeout and return it's outputs| Parameter | Type | Description |
|---|---|---|
| cell_index * | integer | Index of the cell to insert and execute (0-based) |
| cell_source * | string | Code source for the cell |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
| progress_interval | integer | Seconds between progress updates (MCP keepalive + optional stream log) |
| stream | boolean | Enable streaming progress (including time indicator) updates for long-running cells |
| timeout | integer | Maximum seconds to wait for execution (0 = use config default) |
list_filesList all files and directories recursively in the Jupyter server's file system.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of items to return (0 means no limit) |
| path | string | The starting path to list from (empty string means root directory) |
| pattern | string | Glob pattern to filter file paths |
| start_index | integer | Starting index for pagination (0-based) |
list_kernelsList all available kernels in the Jupyter server.list_notebooksList all notebooks that have been used via use_notebook toolmove_cellMove a cell from source_index to target_index within the currently activated notebook.| Parameter | Type | Description |
|---|---|---|
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
| source_cell_id | string | Address the cell to move by its id rather than its index. |
| source_index | integer | Index of the cell to move (0-based). Omit when passing source_cell_id. |
| target_cell_id | string | Put the moved cell where this cell is now, addressed by id rather than by an index that the move itself will shift. |
| target_index | integer | Destination index where the cell will end up (0-based). Omit when passing target_cell_id. |
overwrite_cell_sourceReplace the entire source of a cell in the currently activated notebook.| Parameter | Type | Description |
|---|---|---|
| cell_id | string | Address the cell by its notebook cell id instead of its index. An index is a position, and a position stops being true the moment anyone inserts a cell above it; an id does not. Every result says which id it acted on, so read a cell once and address it by id afterwards. Given both, the id wins. |
| cell_index | integer | Index of the cell to overwrite (0-based). Omit when passing cell_id. |
| cell_source * | string | New complete cell source |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
read_cellRead a cell as readable text entries.| Parameter | Type | Description |
|---|---|---|
| cell_id | string | Address the cell by its notebook cell id instead of its index. An index is a position, and a position stops being true the moment anyone inserts a cell above it; an id does not. Every result says which id it acted on, so read a cell once and address it by id afterwards. Given both, the id wins. |
| cell_index | integer | Index of the cell to read (0-based). Omit when passing cell_id. |
| include_outputs | boolean | Include outputs in the response (only for code cells) |
| notebook_name | string | Target this specific connected notebook instead of the currently activated one. Use when multiple clients share this server, to avoid racing the shared 'current notebook' pointer. Omit to use the currently activated notebook. |
restart_notebookRestart the kernel for a specific notebook.| Parameter | Type | Description |
|---|---|---|
| notebook_name * | string | Notebook identifier to restart |
unuse_notebookUnuse from a specific notebook and release its resources.| Parameter | Type | Description |
|---|---|---|
| notebook_name * | string | Notebook identifier to disconnect |
use_notebookConnect to or create a notebook by path and activate it for following cell operations.| Parameter | Type | Description |
|---|---|---|
| kernel_id | string | Existing kernel to use for this notebook. When provided, use_notebook verifies it is alive and creates a Jupyter session binding the notebook to it when no session exists (or switches an already-connected notebook to that kernel). When omitted, a sandbox already selected with use_sandbox is reused; otherwise, if the notebook has a live Jupyter session, use_notebook triggers use_sandbox for that session and says so in the reply. With neither, no kernel is created. Pass 'NEW' to start an isolated kernel. |
| mode | string | Notebook operation mode: 'connect' to connect to existing and activate it, 'create' to create new and activate it |
| notebook_name | string | Optional unique identifier for the notebook. When omitted, defaults to the notebook path. |
| notebook_path * | string | Path to the notebook file, relative to the Jupyter server root (e.g. 'notebook.ipynb') |
use_notebook_by_nameSwitch the active notebook to an already-connected notebook by its registered name.| Parameter | Type | Description |
|---|---|---|
| notebook_name * | string | Identifier of an already-connected notebook to activate (registered earlier via use_notebook). |
Security checks
- ✓README presentThe repository's README runs to about 2.3K words.
- ✓License declaredThe repository declares the BSD-3-Clause license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 73 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 2.3K words, fetched 20 days ago. The original in the repository is authoritative.
Read full README