MCP.so
登录

Python notebook MCP Server

@UsamaK98

基本信息

分类

记忆与知识

传输方式

stdio

作者

UsamaK98

提交者

Usama Khatab

关于 Python notebook MCP Server

A lightweight python notebook mcp server that allows AI agents and other MCP clients to interact with python notebook files seamlessly.

Python notebook MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "python-notebook-mcp": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "fastmcp"
      ]
    }
  }
}

Python notebook MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python notebook?

Python notebook is an MCP (Model Context Protocol) server that enables AI assistants (such as Cursor or Claude Desktop) to interact with Jupyter Notebook files (.ipynb) on your local machine. It is designed for developers and data scientists who want to use AI tools to programmatically manage notebooks.

How to use Python notebook?

To use Python notebook, ensure Python 3.10+ and uv are installed, then clone the repository and run the automated setup script (install_unix.sh on macOS/Linux or install_windows.ps1 on Windows) or manually create a virtual environment and install dependencies from requirements.txt. The server is started with uv run python server.py (for Cursor) or fastmcp install server.py --name "Jupyter Notebook MCP" (for Claude Desktop). The first action from your AI assistant must be to call initialize_workspace(directory="/full/absolute/path/to/project").

Key features of Python notebook

  • Initialize workspace with an absolute directory path.
  • List all .ipynb files in the workspace.
  • Create new empty Jupyter notebooks.
  • Read entire notebook structure and content.
  • Add, read, and edit code or markdown cells.
  • Read outputs from specific or all code cells.

Use cases of Python notebook

  • Automatically create and populate new Jupyter notebooks from an AI prompt.
  • Edit existing notebook cells without leaving the AI assistant interface.
  • Inspect notebook contents and outputs for debugging or documentation.
  • Enable AI-assisted data analysis workflows inside a local notebook environment.
  • Manage multiple notebook projects through a centralized workspace configuration.

常见问题

1

What is the first action required after starting the server?

You must call the `initialize_workspace` tool with the full absolute path to a directory containing your notebooks. Relative paths or dots (`.`) are not accepted.

2

Can I edit existing cells in a notebook?

Yes, the `edit_cell` tool modifies the source content of an existing cell by its index, and `add_cell` adds new code or markdown cells at a specific index or the end.

3

What runtime dependencies does Python notebook require?

Python 3.10 or higher, the `uv` package manager, and optionally the `fastmcp` CLI (for Claude Desktop integration). All other dependencies are installed from `requirements.txt`.

4

Where are my notebook files stored?

Notebooks reside on your local filesystem in the workspace directory you provide during `initialize_workspace`. The server does not copy or move files.

5

What transport or authentication does Python notebook use?

The server uses standard MCP stdio transport for communication with the client. No authentication is mentioned in the README.

评论

记忆与知识 分类下的更多 MCP 服务器