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.

コメント

「メモリとナレッジ」の他のコンテンツ