jupyter-mcp-server
by datalayer
Overview
This server acts as an MCP (Model Context Protocol) adapter, allowing AI agents to connect, manage, and interact with Jupyter Notebooks in real-time, supporting dual-mode operation as a standalone server or a Jupyter extension.
Installation
docker run -i --rm -e JUPYTER_URL='http://localhost:8888' -e JUPYTER_TOKEN='YOUR_JUPYTER_TOKEN' -e ALLOW_IMG_OUTPUT='true' datalayer/jupyter-mcp-server:latestEnvironment Variables
- PROVIDER
- JUPYTERLAB
- RUNTIME_URL
- RUNTIME_ID
- RUNTIME_TOKEN
- DOCUMENT_URL
- DOCUMENT_ID
- DOCUMENT_TOKEN
- JUPYTER_URL
- JUPYTER_TOKEN
- ALLOWED_JUPYTER_MCP_TOOLS
- TRANSPORT
- START_NEW_RUNTIME
- PORT
- ALLOW_IMG_OUTPUT
- JUPYTER_MCP_SERVER_URL
Security Notes
The server's core functionality involves executing arbitrary code within a Jupyter kernel, which is a powerful operation inherent to its design. The `execute_code` and `execute_cell` tools allow running Python code and shell commands, making the server a high-privilege endpoint. Additionally, the default `FastMCPWithCORS` configuration sets `allow_origins=["*"]`, which poses a significant Cross-Origin Resource Sharing (CORS) vulnerability if the server is exposed publicly without explicitly restricting allowed origins. There are no obvious signs of obfuscation or hardcoded sensitive secrets within the provided source, but the combination of powerful execution capabilities and a permissive default CORS policy makes it risky for unhardened deployments. Users must configure CORS origins and ensure that only trusted AI agents or clients are permitted to interact with the server.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
atlantis-mcp-server
An MCP (Model Context Protocol) server for hosting and managing dynamic Python functions and third-party MCP tools, enabling AI agents to discover and utilize shared capabilities across a network.
agentxsuite
A unified open-source platform for connecting, managing, and monitoring AI agents and tools across various Model Context Protocol (MCP) servers.
AI-Prompt-Guide-MCP
Orchestrates AI agents for project management and development workflows by linking structured markdown specifications and tasks.