
jbeno/cursor-notebook-mcp 是从 https://github.com/jbeno/cursor-notebook-mcp. 导入的 MCP 服务器候选
概览
jbeno/cursor-notebook-mcp 是从 https://github.com/jbeno/cursor-notebook-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
该目录包含一个模型上下文协议(MCP)服务器,旨在允许 AI 代理在光标内与 Jupyter Notebook(.ipynb)文件交互。该服务器旨在克服光标的限制。自版本 0.50.5 起,在代理模式下,模型无法根据 AI 聊天窗中的对话编辑笔记本或笔记本单元格。这为代理提供了一套 MCP 工具,允许直接操作笔记本单元。
虽然设计上是通过光标解决限制,但该MCP服务器除了配置指令外,没有其他光标专用功能。你可以轻松配置它用于VS Code(Insiders)、ClaudeCode或任何能利用MCP的模型/代理。注意VS Code(Insiders)现在对Jupyter Notebook的支持相当不错。
该 MCP 服务器使用 nbformat 库安全操作笔记本结构,并通过限制操作至用户自定义目录来强制执行安全。它还使用 nbconvert 来支持将笔记本导出为 Python 脚本、HTML 等多种格式。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Jupyter Notebook MCP Server (for Cursor)
This directory contains a Model Context Protocol (MCP) server designed to allow AI agents within Cursor to interact with Jupyter Notebook (.ipynb) files. It was created to overcome a limitation with Cursor. As of version 0.50.5, in Agent mode, the model could not edit notebooks or notebook cells in response to dialog in the AI chat pane. This provides the agent with a suite of MCP tools that allow direct notebook cell manipulation.
Although designed to overcome a limitation with Cursor, this MCP server does not have anything specific to Cursor other than the configuration instructions. You could easily configure this for use with VS Code (Insiders) or Claude Code or any model/agent that can take advantage of MCP. Note that VS Code (Insiders) has pretty good Jupyter Notebook support now.
This MCP server uses the nbformat library to safely manipulate notebook structures and enforces security by restricting operations to user-defined directories. It also uses nbconvert to enable exporting notebooks to various formats like Python scripts, HTML, and more. The server handles all notebook operations through a clean API that maintains notebook integrity and prevents malformed changes.
Latest Version
Current Version: 0.3.2 - See the CHANGELOG.md for details on recent changes. This version includes a fix for pydantic 2.12.0+ compatibility. Previous additions include SFTP support, Streamable HTTP transport, and new tools like notebook_edit_cell_output, notebook_bulk_add_cells, and notebook_get_server_path_context to improve notebook editing and path handling.
Video Walkthrough
Notebook MCP Server 0.3.0 Update (YouTube)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"notebook_mcp": {
"url": "http://127.0.0.1:8080/mcp"
}
}
}