UP

usamak98/python-notebook-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

46 stars 13 forks 品質 76 トレンド 4MIT

usamak98/python-notebook-mcp は [https://github.com/usamak98/python-notebook-mcp.] からインポートされた MCP サーバーの候補です

概要

usamak98/python-notebook-mcp は [https://github.com/usamak98/python-notebook-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Python ノートブック MCP MCP サーバーにより、AI アシスタントがモデル・コンテキスト・プロトコルを介して Jupyter ノートと対話することができます。

このサーバーは、ローカルマシンでJuppyter Notebookファイル(.ipynb)とやり取りするために、互換性のあるAIアシスタント(CursorやClaude Desktopなど)を使用できます。

受託者

開始する前に、次のインストールを行ってください。

1.Python: バージョン 3.10 以降 2.[uv: Astralの高速Pythonパッケージインストーラと仮想環境マネージャ。 持っていない場合は、インストールしてください。

3.[fastmcp] CLI (オプション、Claudeデスクトップ[[fastmcp install]])の場合): Claude Desktopの[fastmcp install]メソッドを使用する場合は、fastmcp]コマンドが必要です。

↔ 設定

1。 リポジトリのクローン:

2.設定方法の選択:

*オプションA:自動設定(推奨) プロジェクトのルートディレクトリ([cd-ed)からOSの適切なスクリプトを実行します。

  • MacOS / Linux:**

※Windows(PowerShell):**

これらのスクリプトは [.venv] を作成し、依存関係をインストールし、MCP クライアントの設定に必要な正確なパスを出力します。

*オプションB:手動設定

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

This server allows compatible AI assistants (like Cursor or Claude Desktop) to interact with Jupyter Notebook files (.ipynb) on your local machine.

📋 Prerequisites

Before you begin, ensure you have the following installed:

  1. Python: Version 3.10 or higher.
  2. uv: The fast Python package installer and virtual environment manager from Astral. If you don’t have it, install it:
    # On macOS / Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # On Windows (PowerShell)
    powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    
    # IMPORTANT: Add uv to your PATH if prompted by the installer
    # For macOS/Linux (bash/zsh), add to your ~/.zshrc or ~/.bashrc:
    # export PATH="$HOME/.local/bin:$PATH"
    # Then restart your shell or run `source ~/.zshrc` (or equivalent)
    
  3. fastmcp CLI (Optional, for Claude Desktop fastmcp install): If you plan to use the fastmcp install method for Claude Desktop, you need the fastmcp command available.
    # Using uv
    uv pip install fastmcp
    
    # Or using pipx (recommended for CLI tools)
    pipx install fastmcp
    

🔧 Setup

  1. Clone the Repository:

    git clone https://github.com/UsamaK98/python-notebook-mcp.git # Or your fork/local path
    cd python-notebook-mcp
    
  2. Choose Setup Method:

    • Option A: Automated Setup (Recommended) Run the appropriate script for your OS from the project’s root directory (where you just cd-ed into).
      • macOS / Linux:
        # Make script executable (if needed)
        chmod +x ./install_unix.sh
        # Run the script
        bash ./install_unix.sh
        
      • Windows (PowerShell):
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "jupyter": { // Use the absolute path to the Python executable inside your .venv "command": "/full/absolute/path/to/python-notebook-mcp/.venv/bin/python", // macOS/Linux // "command": "C:\\full\\absolute\\path\\to\\python-notebook-mcp\\.venv\\Scripts\\python.exe", // Windows "args": [ // Absolute path to the server script "/full/absolute/path/to/python-notebook-mcp/server.py" ], "autoApprove": ["initialize_workspace"] // Optional: Auto-approve certain safe tools } } }