jupyter-mcp-server
by datalayer·★ 1,103·综合分 54
一个让AI系统能够实时交互Jupyter笔记本的MCP服务器,提供笔记本管理和单元格执行工具。
概述
由Datalayer开发的Jupyter MCP服务器允许AI模型实时连接和管理Jupyter笔记本。它提供了一套全面的工具用于笔记本管理、单元格操作和执行,支持多模态输出和JupyterLab集成。该服务器能够在整个笔记本范围内保持上下文感知,并与Claude Desktop、Cursor和Windsurf等任何MCP客户端协作。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您需要 AI 实时与 Jupyter 笔记本交互,特别是您已经在使用 Jupyter 进行数据分析或机器学习工作流时,请选择 Jupyter MCP Server。
什么时候不要选它
如果您需要高度定制的 Jupyter 扩展功能,或者您的工做流程中不使用 Jupyter 笔记本,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具list_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.
可对比工具
安装
# 安装必需的依赖
pip install jupyterlab==4.4.1 jupyter-collaboration==4.0.2 jupyter-mcp-tools>=0.1.4 ipykernel pycrdt
# 启动JupyterLab
jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0配置您的MCP客户端(例如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
- 哪些Jupyter部署与此MCP服务器兼容?
- 该服务器兼容任何Jupyter部署,包括本地服务器、JupyterHub和云平台。它也与Datalayer托管的笔记本兼容。
- 服务器如何处理笔记本上下文感知?
- 服务器通过理解完整的笔记本结构、单元格关系和执行历史来维护整个笔记本范围内的上下文感知,从而提供更相关的AI交互。
jupyter-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。