mcp-server-jupyter
@ihrpr
关于 mcp-server-jupyter
MCP server for Jupyter Notebooks and JupyterLab
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-jupyter": {
"command": "uv",
"args": [
"venv",
"--seed"
]
}
}
}工具
7`notebook_path` (string)
`notebook_path` (string)
`notebook_path` (string)
`notebook_path` (string)
`cell_type` (string): "code" or "markdown"
`notebook_path` (string)
`notebook_path` (string)
概览
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
FAQ from mcp-server-jupyter
What tools does mcp-server-jupyter provide?
Six tools: read_notebook_with_outputs, read_notebook_source_only, read_output_of_cell, add_cell, edit_cell, and execute_cell. Each requires the notebook file path; cell‑specific tools also need a cell ID.
What runtime environment is required?
You must have Python and uv installed. A JupyterLab instance must be running, and the UV_PROJECT_ENVIRONMENT environment variable must point to that instance’s virtual environment.
How do I get the notebook path to use in tools?
In JupyterLab: right‑click the notebook in the file browser and choose “Copy Path”. In Jupyter Notebook: copy the path from the URL and modify it to a full system path. Always use the full path when calling tools.
Does the notebook auto‑refresh after changes?
No. After using add_cell or edit_cell, you must manually reload the notebook page in JupyterLab/Jupyter Notebook to see the modifications.
What transport/authentication does the server use?
The server communicates via standard MCP transport (stdio). No authentication configuration is described; it relies on the local filesystem and the running Jupyter instance.
数据与分析 分类下的更多 MCP 服务器
🎓 Semantic Scholar MCP Server
JackKuo666🔍 This project implements a Model Context Protocol (MCP) server for interacting with the Semantic Scholar API. It provides tools for searching papers, retrieving paper and author details, and fetching citations and references.
Deep Research
u14appUse any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Data Visualization MCP Server
isaacwassermanBright Data MCP
luminati-ioA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
Google Analytics MCP Server
surendranbGoogle Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
评论