
block/mcp-jupyter
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
block/mcp-jupyter は [https://github.com/block/mcp-jupyter.] からインポートされた MCP サーバーの候補です
概要
block/mcp-jupyter は [https://github.com/block/mcp-jupyter.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
注記:このプロジェクトは、現在MCP(Model Context Protocol)の使い方に焦点を当てています。 インターフェイスが積極的に進化しているので、バージョン間で APIの互換性保証はありません。 いかなるリリースでも変更が起こることがあります。
ジュピター MCP Server では、Goose や Cursor などのツールを使用して、JuppyterLab カーネルが保存されている JupyterLab ノートでユーザーとペアリングできます。 これにより、エージェントがパッケージをインストールしたり、エラーを修正したり、データをいつでも探査できるようにシームレスなコラボレーションが可能になります。
建築: Jupyter の REST API は、RTC によるリアルタイムユーザ同期を維持しながら、信頼できるエージェント操作に使用できます。 詳細な技術情報については、建築文書を参照してください。
主な特長
-4 連結MCPツール(11から引き出す)
- [
query_notebook- すべての読み取り専用操作(ビューソース、チェックサーバなど) - [
modify_notebook_cells- すべてのセルの変更(セルの追加、編集、削除) - [
execute_notebook_code- すべての実行操作(セルを実行し、パッケージをインストールします) - [
setup_notebook- Notebookの初期化とカーネル接続
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
}
}
}