
block/mcp-jupyter
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
block/mcp-jupyter — кандидат на сервер MCP, импортированный из https://github.com/block/mcp-jupyter.
Обзор
block/mcp-jupyter — кандидат на сервер MCP, импортированный из https://github.com/block/mcp-jupyter.
Обзор (машинный перевод)
Уведомление о совместимости API: в настоящее время этот проект ориентирован на использование MCP (Model Context Protocol). Между версиями нет гарантий совместимости API, поскольку интерфейс активно развивается. Переломные изменения могут произойти при любом освобождении.
Jupyter MCP Сервер позволяет использовать такие инструменты, как Goose или Cursor, для сопряжения с вами в блокноте JupyterLab, где состояние ваших переменных сохраняется ядром JupyterLab. Это обеспечивает бесшовное сотрудничество, когда агенты могут устанавливать пакеты, исправлять ошибки и передавать вам для исследования данных в любое время.
** Архитектура**: Использует REST API Jupyter для надежных операций с агентами, сохраняя синхронизацию пользователей в реальном времени через RTC. Архитектурная документация для получения подробной технической информации.
Ключевые особенности
4 Консолидированные инструменты MCP (сокращение с 11):
query_notebook- Все операции только для чтения (источник просмотра, сервер проверки и т. д.)modify_notebook_cells- Все модификации ячеек (добавить, отредактировать, удалить ячейки)execute_notebook_code- Все операции исполнения (запуск ячеек, установка пакетов)setup_notebook- инициализация ноутбука и соединение с ядром
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Jupyter MCP Server
⚠️ API Compatibility Notice: This project is currently focused on MCP (Model Context Protocol) usage. There are no API compatibility guarantees between versions as the interface is actively evolving. Breaking changes may occur in any release.
Jupyter MCP Server allows you to use tools like Goose or Cursor to pair with you in a JupyterLab notebook where the state of your variables is preserved by the JupyterLab Kernel. This enables seamless collaboration where agents can install packages, fix errors, and hand off to you for data exploration at any time.
Architecture: Uses Jupyter’s REST API for reliable agent operations while maintaining real-time user synchronization through RTC. See Architecture Documentation for detailed technical information.
Key Features
- 4 Consolidated MCP Tools (reduced from 11):
query_notebook- All read-only operations (view source, check server, etc.)modify_notebook_cells- All cell modifications (add, edit, delete cells)execute_notebook_code- All execution operations (run cells, install packages)setup_notebook- Notebook initialization and kernel connection
- Workflow-oriented design optimized for AI agent collaboration
- State preservation across notebook sessions
- Automatic parameter validation with float-to-int conversion
This works with any client that supports MCP but will focus on using Goose for the examples.
Requirements
You will need UV is required to be installed.
Installation
This MCP server supports multiple transport modes and can be added to client with the command uvx mcp-jupyter.
Transport Modes
The server supports two transport protocols:
- stdio (default) - Standard input/output communication, ideal for local IDE integrations
- http - Streamable HTTP transport with session management, enabling serverless deployments and remote access
Use Cases for HTTP Transport
- Serverless deployments: Host the MCP server in cloud environments (AWS Lambda, Google Cloud Functions, etc.)
- Remote access: Connect to the server from different machines or networks
- Web integrations: Build web-based AI assistants that connect to the MCP server
- Stateless operations: Use
--stateless-httpfor environments where session persistence isn’t needed
To use a specific transport:
# Default stdio transport
uvx mcp-jupyter
# HTTP transport on custom port (stateful - maintains session)
uvx mcp-jupyter --transport http --port 8080
# HTTP transport in stateless mode (no session persistence)
uvx mcp-jupyter --transport http --port 8080 --stateless-http
Using HTTP Transport with Cursor
To connect Cursor to an HTTP MCP server:
- Start the server separately:
uvx mcp-jupyter --transport http --port 8090
- Configure Cursor’s
.cursor/mcp.json:
{
"mcpServers": {
Установка
uvx mcp-jupyterКонфигурация
{
"mcpServers": {
"notebook-http": {
"url": "http://localhost:8090/mcp/" // ⚠️ Trailing slash is REQUIRED
}
}
}