Bring AI to Jupyter notebooks. MCP server for Claude, ChatGPT, Gemini, OpenCode and any agent.
Project description
nteract/nteract
What's going on?
If you're here looking for the Electron-based nteract desktop app, you can view the source in this repo. That desktop app is not actively maintained.
We're actively developing the spiritual successor to the nteract desktop app in the nteract/desktop repo.
The New Desktop App
We're actively developing the spiritual successor to the nteract desktop app in the nteract/desktop repo.
The new app is a native desktop app with instant startup and intelligent environment management.
Bringing Agents in the Loop
We're in the preliminary stages of hooking up the realtime system from nteract/desktop to any agent of your choice. Collaborate with agents in notebooks, render interactive elements, and explore data together.
Quick Start
Claude Code
# Stable desktop 1.4.x / stable MCP
claude mcp add nteract -- uvx nteract
For desktop nightly / the upcoming 2.x transition, use the prerelease MCP package and nightly socket:
claude mcp add nteract-nightly -- env RUNTIMED_SOCKET_PATH="$HOME/Library/Caches/runt-nightly/runtimed.sock" uvx --prerelease allow nteract
That's it. Now Claude can execute Python code, create visualizations, and work with your data.
What is this?
nteract is an MCP (Model Context Protocol) server that connects AI assistants like Claude to Jupyter notebooks. It enables:
- Code execution: Run Python in a persistent kernel
- Real-time collaboration: Watch the AI work in the nteract desktop app
- Shared state: Multiple agents can work on the same notebook
- Environment management: Automatic Python environment setup
Example
Ask Claude:
"Help me visualize my log data"
Claude will:
- Connect to a notebook session
- Write and execute code
- Generate visualizations
- Show you the results
You can open the same notebook in the nteract desktop app to see changes in real-time and collaborate with the AI.
Installation
Stable line for desktop 1.4.x:
uvx nteract
Prerelease line for desktop nightly / 2.x transition:
uvx --prerelease allow nteract
Claude Code Setup
Add stable nteract as an MCP server:
claude mcp add nteract -- uvx nteract
Or manually add to your Claude configuration:
{
"mcpServers": {
"nteract": {
"command": "uvx",
"args": ["nteract"]
}
}
}
Using with Nightly
If you're using nteract desktop nightly builds, point at the nightly socket and allow prereleases:
claude mcp add nteract -- env RUNTIMED_SOCKET_PATH="$HOME/Library/Caches/runt-nightly/runtimed.sock" uvx --prerelease allow nteract
Release Tracks
mainpublishes prereleasenteractbuilds for the 2.x transition and tracksruntimed 2.xprereleases.release/1.9.xis the stable maintenance line for desktop1.4.xand stays onruntimed 1.9.0.
Available Tools
| Tool | Description |
|---|---|
list_active_notebooks |
List all open notebook sessions |
join_notebook |
Join an existing notebook session by ID |
open_notebook |
Open an existing .ipynb file |
create_notebook |
Create a new notebook |
save_notebook |
Save notebook to disk as .ipynb file |
create_cell |
Add a cell to the notebook (use and_run=True to execute) |
execute_cell |
Run a specific cell (returns partial results after timeout) |
run_all_cells |
Queue all code cells for execution |
set_cell |
Update a cell's source and/or type |
get_cell |
Get a cell by ID with outputs |
get_all_cells |
View all cells in the notebook |
replace_match |
Targeted literal text find-and-replace in a cell |
replace_regex |
Regex-based find-and-replace in a cell |
move_cell |
Reorder a cell within the notebook |
clear_outputs |
Clear a cell's outputs |
delete_cell |
Remove a cell from the notebook |
interrupt_kernel |
Interrupt the currently executing cell |
restart_kernel |
Restart kernel with updated dependencies |
show_notebook |
Open the notebook in the nteract desktop app (disabled with --no-show) |
add_dependency |
Add a Python package dependency |
remove_dependency |
Remove a dependency |
get_dependencies |
List current dependencies |
sync_environment |
Hot-install new deps without restart |
Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Claude │────▶│ nteract │────▶│ runtimed │
│ (or other │ │ MCP Server │ │ daemon │
│ AI) │ │ │ │ │
└─────────────┘ └─────────────┘ └──────┬──────┘
│
┌─────────────┐ │
│ nteract │◀────────────┘
│ Desktop App │ (real-time sync)
└─────────────┘
- nteract (this package): MCP server for AI assistants
- runtimed: Low-level daemon and Python bindings (docs)
- nteract desktop: Native app for humans to collaborate with AI
Real-time Collaboration
The magic of nteract is that AI and humans share the same notebook:
- AI connects via MCP and runs code
- Human opens the same notebook in nteract desktop
- Changes sync instantly via CRDT
- Both see the same kernel state
This enables workflows like:
- AI does initial analysis, human refines
- Human writes code, AI debugs errors
- Multiple AI agents collaborate on complex tasks
Development
# Clone
git clone https://github.com/nteract/desktop
cd desktop/python/nteract
# Install dependencies
uv sync
# Run tests
uv run pytest
Related Projects
- nteract/desktop - Native desktop app
- runtimed on PyPI - Low-level Python bindings
License
BSD-3-Clause
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nteract-2.0.3a202603241511.tar.gz.
File metadata
- Download URL: nteract-2.0.3a202603241511.tar.gz
- Upload date:
- Size: 78.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b8c4579c3f402b19de9060fd3a3ff85715d7a7fe6154d4bccb7ca37202f7b8
|
|
| MD5 |
be861aac9894d1156bc1baeb4a5816f2
|
|
| BLAKE2b-256 |
e302618076d3c2dbe69d5e3de4e789706f30248058dc8cd915ffb8592b0b544e
|
File details
Details for the file nteract-2.0.3a202603241511-py3-none-any.whl.
File metadata
- Download URL: nteract-2.0.3a202603241511-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c9c2498b8ef9ce95f6436a44a789828dd7461cb175c3a3441cab9bcf1481b9
|
|
| MD5 |
122b18379fa4001598138dd660700bb6
|
|
| BLAKE2b-256 |
c4738ecc38d722f73711d1fa957aedab1e339e8d78868ce53a04e6aa48cadc39
|