What is mcp-server-jupyter?
mcp-server-jupyter is an MCP server that enables programmatic management and interaction with Jupyter notebook files. It provides tools to read, edit, add, and execute cells within notebooks. It is intended for developers using AI assistants (like Claude) who need to manipulate Jupyter notebooks remotely.
How to use mcp-server-jupyter?
Start JupyterLab in a uv-managed virtual environment, then add the server to your Claude Desktop configuration using uv run --with mcp-server-jupyter mcp-server-jupyter and set the UV_PROJECT_ENVIRONMENT env variable to that environment’s path. Provide the full notebook file path when calling tools.
Key features of mcp-server-jupyter
- Read notebook content with or without cell outputs
- Read output of a specific cell by its ID
- Add new code or markdown cells at any position
- Edit existing cell source code
- Execute a specific cell and return its output
- Integrates with Claude Desktop via MCP protocol
Use cases of mcp-server-jupyter
- An AI assistant reads a notebook to understand experiment results
- Automatically add a new markdown cell with documentation to a notebook
- Edit a cell’s code based on user feedback
- Execute a specific cell and check its output for correctness
评论