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
📦 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
.venv
if available
📝 Example Workflow
🔧 Configuration
The tool automatically:
- Detects and uses
.venv
in your project directory - Installs required packages on first notebook creation
- Manages kernel lifecycle automatically
📋 Requirements
- Python 3.8+
- Claude Code CLI (
claude
command)
🐛 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!"
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Execute Python code with persistent state across Claude conversations using a background Jupyter kernel. Supports creating notebooks, managing virtual environments, and maintaining variables/imports between code executions.
Related MCP Servers
- -securityAlicense-qualityA Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.Last updated -1MIT License
- AsecurityFlicenseAqualityProvides sophisticated context management for Claude, enabling persistent context across sessions, project-specific organization, and conversation continuity.Last updated -414
- AsecurityFlicenseAqualityProvides an interface to Claude's contemplation loop, enabling continuous background cognitive processing that maintains thoughts, recognizes patterns, and develops insights between conversations.Last updated -92
- AsecurityAlicenseAqualityA persistent memory layer for Claude Code that maintains project information, technology stack, tasks, decisions, and session history between coding sessions, eliminating the need to re-explain project context.Last updated -9MIT License