Provides persistent Jupyter kernel execution with tools for running Python code, creating and managing Jupyter notebooks, and maintaining state across multiple executions
Enables persistent Python code execution with state preservation, variable persistence across sessions, and automatic virtual environment detection
ML Jupyter MCP - UV-Centric Persistent Jupyter Kernel for Claude
Execute Python code with persistent state across Claude conversations using MCP (Model Context Protocol).
β¨ Features
π Persistent State - Variables and imports persist across executions
π Notebook Support - Create and manage Jupyter notebooks
π Virtual Environment Detection - Automatically uses project's
.venvπ Easy Installation - One-line setup with Claude MCP
Related MCP server: Claude Server MCP
π¦ Installation
Quick Install (Recommended)
That's it! The MCP server is now available in all your Claude sessions.
Alternative: Install with UV
Alternative: Clone and Install Locally
π― Usage
Once installed, you can use these MCP tools in any Claude conversation:
Execute Python Code
Create Jupyter Notebooks
Check Kernel Status
Shutdown Kernel
π οΈ How It Works
Kernel Daemon - Maintains a persistent Jupyter kernel in the background
MCP Server - Provides tools that Claude can invoke
State Persistence - All variables, imports, and definitions persist across tool calls
Auto-detection - Automatically finds and uses your project's
.venvif available
π Example Workflow
π§ Configuration
The tool automatically:
Detects and uses
.venvin your project directoryInstalls required packages on first notebook creation
Manages kernel lifecycle automatically
π Requirements
Python 3.8+
Claude Code CLI (
claudecommand)
π Troubleshooting
MCP tools not showing up?
Kernel not starting?
Port 9999 already in use?
The kernel daemon uses port 9999. If it's in use, the tool will handle it automatically.
π€ Contributing
Contributions welcome! Please feel free to submit a Pull Request.
π License
MIT License - feel free to use in your projects!
π Acknowledgments
Built for the Claude Code community to enable persistent Python execution across conversations.
Pro Tip: After installation, try asking Claude: "Use jupyter-executor to calculate fibonacci numbers and keep them in memory for later use!"