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.4.tar.gz (18.4 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.4-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.4.tar.gz
  • Upload date:
  • Size: 18.4 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.4.tar.gz
Algorithm Hash digest
SHA256 b60e9ad7335eecc5ee6d5497b24fd30715ababa36d70999ea2b87d74f9775a6d
MD5 dca287c216c560a56282157b68a885b1
BLAKE2b-256 082f0a07a06913f6254f393f485c5e982f8e3692043ccf7eb44462f6030b43cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notebook_mcp-1.5.4-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 811cc80bbe44ef7b8b7e6b674684a8cfc1e2574efaa34f453fc01927310b5c34
MD5 6cbcc3da7e79ab2a066c4e594036a4d0
BLAKE2b-256 55328e476f7490642e5d9ae9f325d98b7bbac692bf05cafbed44b7d71d02ae9d

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