Enable Jupyter MCP server integration for seamless collaboration with Claude Desktop on all platforms
The Jupyter MCP Server is an implementation designed to enable interaction between Jupyter notebooks running in any environment, including local JupyterLab instances. It provides a standardized interface defined by the Model Context Protocol (MCP) for real-time collaboration within JupyterLab and seamless integration with AI applications like Claude Desktop across macOS, Windows, and Linux.
The Jupyter MCP Server offers several core features that enhance the user experience in working with Jupyter notebooks. These capabilities are essential for developers looking to integrate their Jupyter-based workflows with advanced AI tools:
The server also supports programmatically adding and executing code or markdown cells in notebooks, providing a powerful toolset for automated tasks and data processing.
At the heart of the Jupyter MCP Server is its adherence to the Model Context Protocol (MCP). This protocol defines how external systems can interact with Jupyter notebooks, ensuring that the server can be seamlessly integrated into AI application ecosystems. The architecture includes:
ipykernel
and jupyter-collaboration
, the server enables real-time collaboration features.The architecture diagram below illustrates the flow:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
To get started, ensure the following dependencies are installed:
JupyterLab
(version 4.4.1
)jupyter-collaboration
(version 4.0.2
)ipykernel
datalayer_pycrdt
(version 0.12.15
)You can install these via pip:
pip install jupyterlab==4.4.1 jupyter-collaboration==4.0.2 ipykernel
pip uninstall -y pycrdt datalayer_pycrdt
pip install datalayer_pycrdt==0.12.15
Building the server can be done via:
make build-docker
The Jupyter MCP Server enables several key use cases, particularly for developers working on AI applications that require interactive notebook support. Here are two typical workflows:
For macOS and Windows users, the configuration involves setting up an MCP server that can be interacted with by a client like Claude Desktop:
{
"mcpServers": {
"jupyter": {
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "SERVER_URL", "-e", "TOKEN", "-e", "NOTEBOOK_PATH",
"datalayer/jupyter-mcp-server:latest"
],
"env": {
"SERVER_URL": "http://host.docker.internal:8888",
"TOKEN": "MY_TOKEN",
"NOTEBOOK_PATH": "notebook.ipynb"
}
}
}
}
For Linux users, the configuration is slightly different to accommodate host networking:
{
"mcpServers": {
"jupyter": {
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "SERVER_URL", "-e", "TOKEN", "-e", "NOTEBOOK_PATH", "--network=host",
"datalayer/jupyter-mcp-server:latest"
],
"env": {
"SERVER_URL": "http://localhost:8888",
"TOKEN": "MY_TOKEN",
"NOTEBOOK_PATH": "notebook.ipynb"
}
}
}
}
The Jupyter MCP Server supports seamless integration with a wide range of AI applications and tools. The compatibility matrix provided below outlines the status for various MCP clients:
MCP Client | Claude Desktop | Continue | Cursor |
---|---|---|---|
Resources | ✅ | ✅ | ❌ |
Tools | ✅ | ✅ | ✅ |
Prompts | ✅ | ✅ | ❌ |
Status | Full Support | Full Support | Tools Only |
The server can be further configured for enhanced security and performance. Key areas to consider:
SERVER_URL
, TOKEN
to securely manage API keys.The Jupyter MCP Server enhances AI applications by providing a standardized interface for interaction within Jupyter notebooks, enabling seamless integration with various tools and platforms.
You need to have JupyterLab
(version 4.4.1
), jupyter-collaboration
(4.0.2
), ipykernel
, and datalayer_pycrdt
(0.12.15
) installed.
The server is built for compatibility with specific versions, so using an unsupported version may result in issues.
For Linux hosts, you need to include --network=host
when running the Docker container.
Currently, some tools and services might not support all features due to varying levels of compatibility with the MCP protocol.
Contributions are welcome! Developers can contribute by reporting bugs, suggesting improvements, or adding new functionality. Visit the official repository for more details on contribution guidelines.
For further information about the Model Context Protocol and its implementation, visit:
By integrating the Jupyter MCP Server into your AI development workflow, you can leverage a standardized protocol to connect with various tools and platforms, enhancing productivity and collaboration.
This comprehensive documentation provides a detailed guide for developers looking to integrate this powerful server into their projects.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration