jupyter-mcp-server
by datalayer·★ 1,103·Score 54
An MCP server that enables AI systems to interact with Jupyter notebooks in real-time, providing tools for notebook management and cell execution.
Overview
The Jupyter MCP Server developed by Datalayer allows AI models to connect and manage Jupyter notebooks in real-time. It provides a comprehensive set of tools for notebook management, cell operations, and execution, with multimodal output support and JupyterLab integration. The server maintains context awareness across entire notebooks and works with any MCP client such as Claude Desktop, Cursor, and Windsurf.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Jupyter MCP Server if you need AI to interact with Jupyter notebooks in real-time, especially if you're already using Jupyter for data analysis or machine learning workflows.
When NOT to choose this
Avoid if you need highly customized Jupyter extensions beyond what's provided, or if you're not using Jupyter notebooks for your workflow.
Tools this server exposes
12 tools extracted from the READMElist_filesList files and directories in the Jupyter server's file system.
list_kernelsList all available and running kernel sessions on the Jupyter server.
connect_to_jupyterConnect to a Jupyter server dynamically without restarting the MCP server.
use_notebookConnect to a notebook file, create a new one, or switch between notebooks.
list_notebooksList all notebooks available on the Jupyter server and their status.
restart_notebookRestart the kernel for a specific managed notebook.
unuse_notebookDisconnect from a specific notebook and release its resources.
read_notebookRead notebook cells source content with brief or detailed format options.
read_cellRead the full content (Metadata, Source and Outputs) of a single cell.
insert_cellInsert a new code or markdown cell at a specified position.
delete_cellDelete a cell at a specified index.
execute_cellExecute a cell with timeout, supports multimodal output including images.
Comparable tools
Installation
# Install required dependencies
pip install jupyterlab==4.4.1 jupyter-collaboration==4.0.2 jupyter-mcp-tools>=0.1.4 ipykernel pycrdt
# Start JupyterLab
jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0Configure your MCP client (e.g., Claude Desktop):
{
"mcpServers": {
"jupyter": {
"command": "uvx",
"args": ["jupyter-mcp-server@latest"],
"env": {
"JUPYTER_URL": "http://localhost:8888",
"JUPYTER_TOKEN": "MY_TOKEN",
"ALLOW_IMG_OUTPUT": "true"
}
}
}
}FAQ
- What Jupyter deployments are compatible with this MCP server?
- The server is compatible with any Jupyter deployment including local servers, JupyterHub, and cloud platforms. It also works with Datalayer hosted notebooks.
- How does the server handle notebook context awareness?
- The server maintains context awareness across entire notebooks by understanding the complete notebook structure, cell relationships, and execution history to provide more relevant AI interactions.
Compare jupyter-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.