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.2.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.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3bde27c7dae0305c4f48559e6bb2ce830b86c3b7aedb8927047a57b9ee5493b1
MD5 bb849e1ff17bbb47cc52c16afc6a330f
BLAKE2b-256 3eb9d35f7a7a197651bd56a8f571416a136e5b76db1c4ef6b6f9a189674bf262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2baf068e514fd8fa3c505f2662579a3177c01044c7259e2f9c6bcf6b50fa2b1
MD5 da641d0f2cb7a56503e29a8acd59592a
BLAKE2b-256 54a8ea4886caa040268c2f4b3464e0e33f09047b06941261c298e159e3266398

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