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.3.tar.gz (15.0 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.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.3.tar.gz
  • Upload date:
  • Size: 15.0 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.3.tar.gz
Algorithm Hash digest
SHA256 5655c86195043f7884288dfda5a322871d5c2d84841372a0eaf2c05254c385a9
MD5 4bbc793a5887615cc69d968567458cd4
BLAKE2b-256 260e22cb64257425e42a14c7090f237ebb1cf9663ff9ff98386e0b5fea1cab4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 597b49cf09d211121b5467d16e31f63f1a31fd526400a2729ac88e9c275a5c29
MD5 f4322249095dd15c5461d62fcce94059
BLAKE2b-256 51f4ce73df00ecc6fd88890e6f42c2b5be7ed2045ea09b8cc54ab5885b0d9374

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