
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

An MCP server that lets compatible AI assistants work with Jupyter Notebook files on the local machine, including listing, creating, reading, and editing notebooks and cells.
Python Notebook MCP server is cataloged as an MCP server attributed to usamak98. An MCP server that lets compatible AI assistants work with Jupyter Notebook files on the local machine, including listing, creating, reading, and editing notebooks and cells. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Python Notebook MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It must initialize the workspace with the full absolute path to the directory containing the notebooks.
README.md · 72c323973d06 · 采集于 2026-11-13 11:15:05 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MCP server enabling AI assistants to interact with Jupyter notebooks through the Model Context Protocol.
This server allows compatible AI assistants (like Cursor or Claude Desktop) to interact with Jupyter Notebook files (.ipynb) on your local machine.
Before you begin, ensure you have the following installed:
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)
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
Clone the Repository:
git clone https://github.com/UsamaK98/python-notebook-mcp.git # Or your fork/local path
cd python-notebook-mcp
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).
# Make script executable (if needed)
chmod +x ./install_unix.sh
# Run the script
bash ./install_unix.sh
# You might need to adjust PowerShell execution policy first
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
.\install_windows.ps1
These scripts will create the .venv, install dependencies, and output the exact paths needed for your MCP client configuration.
Option B: Manual Setup Follow these steps if you prefer manual control or encounter issues with the scripts.
# Create the environment (e.g., named .venv)
uv venv
# Activate the environment
# On macOS/Linux (bash/zsh):
source .venv/bin/activate
# On Windows (Command Prompt):
# .venv\Scripts\activate.bat
# On Windows (PowerShell):
# .venv\Scripts\Activate.ps1
(You should see (.venv) or similar at the start of your shell prompt)# Make sure your venv is active
uv pip install -r requirements.txt
Make sure your virtual environment (.venv) is activated if you used manual setup.
This method uses uv run to execute the server script directly using your current Python environment (which should now have the dependencies installed).
Run the Server:
# From the python-notebook-mcp directory
uv run python server.py
The server will start and print status messages, including the (uninitialized) workspace directory.
Client Configuration (mcp.json): Configure your MCP client (e.g., Cursor) to connect. Create or edit the client's MCP configuration file (e.g., .cursor/mcp.json in your workspace).
Template (Recommended):
{
"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
}
}
}
❓ Why the full path to Python? GUI applications like Cursor might not inherit the same
PATHenvironment as your terminal. Specifying the exact path to the Python interpreter inside your.venvensures the server runs with the correct environment and dependencies. ⚠️ IMPORTANT: Replace the placeholder paths with the actual absolute paths on your system.
fastmcp install)This method uses the fastmcp tool to create a dedicated, isolated environment for the server and register it with Claude Desktop. You generally don't need to activate the .venv manually for this method, as fastmcp install handles environment creation.
# From the python-notebook-mcp directory
fastmcp install server.py --name "Jupyter Notebook MCP"
fastmcp install uses uv behind the scenes to create the environment and install dependencies from requirements.txt.claude_desktop_config.json when using fastmcp install.Regardless of how you run the server, the first action you must take from your AI assistant is to initialize the workspace. This tells the server where your project files and notebooks are located.
# Example tool call from the client (syntax may vary)
initialize_workspace(directory="/full/absolute/path/to/your/project_folder")
⚠️ You must provide the full absolute path to the directory containing your notebooks. Relative paths or paths like
.are not accepted. The server will confirm the path and list any existing notebooks found.
Once the workspace is initialized, you can use the available tools:
# List notebooks
list_notebooks()
# Create a new notebook
create_notebook(filepath="analysis/new_analysis.ipynb", title="My New Analysis")
# Add a code cell to the notebook
add_cell(filepath="analysis/new_analysis.ipynb", content="import pandas as pd\ndf = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})\ndf.head()", cell_type="code")
# Read the first cell (index 0)
read_cell(filepath="analysis/new_analysis.ipynb", cell_index=0)
# Edit the second cell (index 1)
edit_cell(filepath="analysis/new_analysis.ipynb", cell_index=1, content="# This is updated markdown")
# Read the output of the second cell (index 1) after execution (if any)
read_cell_output(filepath="analysis/new_analysis.ipynb", cell_index=1)
# Read the entire notebook structure
read_notebook(filepath="analysis/new_analysis.ipynb")
| Tool | Description |
|---|---|
initialize_workspace | REQUIRED FIRST STEP. Sets the absolute path for the workspace. |
list_notebooks | Lists all .ipynb files found within the workspace directory. |
create_notebook | Creates a new, empty Jupyter notebook if it doesn't exist. |
read_notebook | Reads the entire structure and content of a notebook. |
read_cell | Reads the content and metadata of a specific cell by index. |
edit_cell | Modifies the source content of an existing cell by index. |
add_cell | Adds a new code or markdown cell at a specific index or the end. |
read_notebook_outputs | Reads all outputs from all code cells in a notebook. |
read_cell_output | Reads the output(s) of a specific code cell by index. |
If you need to debug the server itself:
uv run python server.py and observe the terminal output for errors or print statements.# Make sure fastmcp is installed in your environment
# uv pip install fastmcp
uv run fastmcp dev server.py
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Python Notebook MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/python-notebook-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.