Notebook MCP
Provides tools for analyzing, executing, and inspecting Jupyter notebooks, including dependency graph generation, variable lineage tracking, execution state detection, and runtime kernel interaction.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Notebook MCPanalyze dependencies in notebook.ipynb"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Notebook MCP
AI-Native Intelligence for Jupyter Notebooks
Notebook MCP is a Model Context Protocol (MCP) server that gives AI assistants deep semantic and runtime understanding of .ipynb notebooks.
🚀 Motivation
AI coding assistants struggle with notebooks because notebooks rely heavily on execution order and hidden runtime state.
Notebook MCP bridges this gap by converting notebooks into structured, analyzable execution graphs.
Related MCP server: PT-MCP (Paul Test Man Context Protocol)
✨ Features
📊 Static Notebook Intelligence
Dependency graph generation
Variable lineage tracking
Focused context slicing for LLM reasoning
Deterministic notebook-to-script export
⚡ Execution State Awareness
Detects stale cells
Detects unexecuted cells
Generates rerun plans
🔬 Runtime Jupyter Integration
Execute code inside kernels
Inspect variables
Access kernel metadata
Stream execution results
🏗️ Architecture
Notebook → MCP Server → AI AssistantCore Components:
AST Analysis Engine
Dependency Graph Builder
Execution State Engine
Jupyter Kernel WebSocket Client
Context Builder for LLMs
📦 Installation
npm (Recommended)
npm install -g @akram1110/notebook-mcpPython Backend
pip install notebook-mcp⚙️ Running Server
notebook-mcp🧹 Uninstallation
Notebook MCP installs components via both npm and pip.
Follow the steps below to fully remove the tool.
Step 1 — Remove npm Wrapper
npm uninstall -g @akram1110/notebook-mcpStep 2 — Remove Python Backend
pip uninstall notebook-mcpor
python -m pip uninstall notebook-mcpStep 3 — Confirm Removal
notebook-mcpExpected output:
command not foundStep 4 — Windows Only: Remove Leftover Executables
Python sometimes leaves launcher files behind.
Check:
where notebook-mcpIf found, delete from:
<python_install_dir>\Scripts\Example:
C:\Users\<username>\AppData\Local\Programs\Python\Python311\Scripts\Step 5 — Clean Corrupted pip Distribution Warnings
If pip shows:
WARNING: Ignoring invalid distribution ~Delete folders beginning with ~ inside:
<python_install_dir>\Lib\site-packages\Then verify:
pip checkStep 6 — Optional Cache Cleanup
pip cache purgeAfter completing these steps, Notebook MCP will be fully removed from your system.
🔌 Cursor Integration
{
"mcpServers": {
"notebook": {
"command": "notebook-mcp"
}
}
}🧪 Example MCP Tools
Tool | Description |
notebook_analyze | Builds dependency graph |
notebook_context | Generates focused context |
notebook_state | Detects execution state |
notebook_rerun_plan | Suggests rerun order |
jupyter_execute | Executes kernel code |
jupyter_inspect | Inspects runtime variables |
🔧 Jupyter Integration
Set environment variables:
JUPYTER_BASE_URL=http://localhost:8888
JUPYTER_TOKEN=<token>📚 Tech Stack
Python
Model Context Protocol (MCP)
AST Analysis
NetworkX Graphs
Jupyter Kernel Protocol
Node.js CLI Distribution
🛣️ Roadmap
Output semantic analysis
Notebook replay engine
Incremental notebook graph caching
Binary distribution support
🤝 Contributing
Issues and PRs welcome.
📄 License
MIT License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables AI assistants to analyze codebases through semantic search, call graph generation, and function metadata extraction. Provides real-time code analysis with persistent vector storage for understanding complex code structures and relationships.Last updated135
- FlicenseBquality-maintenanceProvides comprehensive codebase analysis and semantic understanding through integrated knowledge graphs, enabling AI assistants to understand project structure, patterns, dependencies, and context through multiple analysis tools and format generators.Last updated9
- Flicense-qualityBmaintenanceEnables AI assistants to deeply understand codebases via Knowledge Graphs, supporting fuzzy search, architecture layer queries, call chain tracing, impact analysis, and domain knowledge with multi-project support.Last updated1
- Alicense-qualityBmaintenanceProvides AI coding assistants with deep, semantic understanding of local codebases via AST-aware chunking, cross-repo symbol graphs, and architectural memory, enabling context-aware code search and dependency tracing.Last updated10MIT
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akram-side-projects/notebook-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server