Skip to main content

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

Project description

notebook-mcp

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

Features

  • Offline notebook analysis (no kernel required)

    • Strip outputs (optional)
    • Stable cell indexing
    • AST-based defines / uses
    • Best-effort dependency graph
    • Focused context slicing for a target cell
    • Export notebook to a deterministic Python script (best-effort)
  • Optional Jupyter Server adapter (HTTP)

    • List active sessions
    • Inspect kernel metadata

Install (dev)

python -m pip install -e ".[dev]"

Distribution

Publish Python package (PyPI)

  1. Build:
python -m pip install -e ".[dev]"
python -m build
  1. Upload:
python -m twine upload dist/*

Publish NPM wrapper

The Node wrapper lives in npm/ and publishes as a scoped package.

cd npm
npm publish --access public

Run (stdio transport; best for IDE agents)

notebook-mcp

Run (streamable HTTP transport)

set MCP_TRANSPORT=streamable-http
set MCP_HOST=127.0.0.1
set MCP_PORT=8000
notebook-mcp

Jupyter Server adapter

Set env vars:

  • JUPYTER_BASE_URL e.g. http://127.0.0.1:8888
  • JUPYTER_TOKEN (if required)

Notes

  • Dependency graph and stale detection are best-effort offline. Truthful execution/runtime state requires kernel messaging.

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-0.1.0.tar.gz (13.3 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-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for notebook_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6407a2865bd9f3974f81d14f5c34cc34e139daa1826cea68333a2b9972c34834
MD5 ff7b46178f4c2efcc8d812add18ae1a4
BLAKE2b-256 4c90b18945314e172f8e6279708bfe903307572d0f0be38b829b81539a464ffd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notebook_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6eac461c466a8eeebc9171cc11d493bc57eaf09efc792307102a6dd02ac69e17
MD5 4cb4bf9409de32ed5bcdf6c60c02275f
BLAKE2b-256 a8d137e7f444b43f3e736a7f126ad98fbaaf80561e52efe6807eddef65485305

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