Skip to main content

MCP server that provides notebook-aware context and analysis for .ipynb files

Project description

Notebook MCP

Notebook MCP

Notebook MCP is a Model Context Protocol (MCP) server that provides deep semantic understanding of Jupyter notebooks for AI assistants and automation workflows.


🧠 Why Notebook MCP?

Jupyter notebooks are difficult for AI assistants to reason about because they are:

  • Stateful
  • Non-linear
  • Execution-order dependent
  • Mixed with outputs and markdown

Notebook MCP solves this by building execution graphs and runtime awareness.


✨ Features

  • Static notebook dependency analysis
  • Execution state detection (stale / unexecuted cells)
  • Rerun planning engine
  • Focused notebook context generation
  • Notebook to deterministic Python conversion
  • Jupyter kernel runtime execution and inspection

📦 Installation

pip install notebook-mcp

🚀 Running Server

notebook-mcp-python

🔧 Environment Variables (Optional)

For Jupyter runtime integration:

JUPYTER_BASE_URL=http://localhost:8888
JUPYTER_TOKEN=<your_token>

🧪 Example Use Cases

  • AI notebook debugging
  • Automated notebook refactoring
  • Execution dependency tracking
  • Runtime variable inspection

🧩 Integration

Notebook MCP is designed to integrate with:

  • AI coding assistants
  • MCP clients
  • Notebook automation workflows

📚 Source Code

GitHub: https://github.com/akram-side-projects/notebook-mcp


🤝 Contributions

PRs and feedback welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notebook_mcp-1.5.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notebook_mcp-1.5.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file notebook_mcp-1.5.0.tar.gz.

File metadata

  • Download URL: notebook_mcp-1.5.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for notebook_mcp-1.5.0.tar.gz
Algorithm Hash digest
SHA256 615b2e0306a9589e0420fbb9b60b6a3804c747bb04249c07bc00e998f301d807
MD5 184625c86e6e70daf8b95a970f859c6f
BLAKE2b-256 35cd3b72770b67d0801b0d62abbaa26a72ce85ba508dc3255495632db3424339

See more details on using hashes here.

File details

Details for the file notebook_mcp-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: notebook_mcp-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for notebook_mcp-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de029714897b9f9e6483ef978a7fd42561ff1b126b8ce12e8b29b58b600e6bc2
MD5 2d242a75eb1f9922461005bd76e2c496
BLAKE2b-256 1c2271a920db0dd1143bb0f9da5134ed28bf0bd3f976ff7183a0592b3580a762

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page