
ihrpr/mcp-server-jupyter
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP-сервер для ноутбуков Jupyter и JupyterLab
Обзор
MCP-сервер для управления и взаимодействия с ноутбуками Jupyter программно. Сервер предоставляет шесть инструментов для манипулирования ноутбуком: 1. read notebook with outputs: Прочитайте содержимое ноутбука, включая выходы ячеек 2. read notebook source only: читать содержимое ноутбука без выходов - Требуется: notebook path (струна) - Используйте, когда ограничения по размеру не позволяют читать полный ноутбук с выходами 3. read output of cell: считывать выход конкретной ячейки - Требуется: - notebook path (струна) - cell id (струна) - Требуется: - notebook path (струна) - source (струна) - Optional: - cell type (струна): "code" или "markdown" - position (целое число): вставочный индекс (-1 к приложению)
Обзор (машинный перевод)
MCP-сервер для управления и взаимодействия с ноутбуками Jupyter программно.
Компоненты
Инструменты
Сервер предоставляет шесть инструментов для манипулирования ноутбуком:
read_notebook_with_outputs: Прочитайте содержимое ноутбука, включая выходы ячеек
- Требуется: [[Т1]] (струна)
read_notebook_source_only: Прочитайте содержимое ноутбука без выходов
- Требуется: [[Т3]] (струна) Использование, когда ограничения по размеру препятствуют чтению полной тетради с выходами
3.[4]: Чтение вывода конкретной ячейки
- Требуется:
- [[Т5]] (струна)
- [[Т6]] (струна)
4.[7]: Добавить новую ячейку в ноутбук
- Требуется:
- [[Т8]] (струна)
- [[Т9]] (струна)
- Необязательно:
- [[Т10]] (струна): “код” или “разметка”
position(целое число): вставочный индекс (-1 к добавлению)
- [[Т12]]: Модифицировать существующий контент
- Требуется:
- [[Т13]] (струна)
cell_id(струна): Уникальный идентификатор ячейки для редактирования - [[Т15]] (струна)
- [[Т16]]: Выполнить определенную ячейку и вернуть ее выход
- Требуется:
- [[Т17]] (струна) [[Т18]] (струна)
- Полезно для проверки выполнения и вывода ячеек
Использование с Claude Desktop
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
mcp-server-jupyter
An MCP server for managing and interacting with Jupyter notebooks programmatically.

Components
Tools
The server provides six tools for notebook manipulation:
-
read_notebook_with_outputs: Read a notebook’s content including cell outputs- Required:
notebook_path(string)
- Required:
-
read_notebook_source_only: Read notebook content without outputs- Required:
notebook_path(string) - Use when size limitations prevent reading full notebook with outputs
- Required:
-
read_output_of_cell: Read output of a specific cell- Required:
notebook_path(string)cell_id(string)
- Required:
-
add_cell: Add new cell to notebook- Required:
notebook_path(string)source(string)
- Optional:
cell_type(string): “code” or “markdown”position(integer): insertion index (-1 to append)
- Required:
-
edit_cell: Modify existing cell content- Required:
notebook_path(string)cell_id(string): Unique ID of the cell to editsource(string)
- Required:
-
execute_cell: Execute a specific cell and return its output- Required:
notebook_path(string)cell_id(string)
- Useful for verifying cell execution and output
- Required:
Usage with Claude Desktop
Step1: Start JupyterLab or Jupyter Notebook
By using uv to run Jupyter notebooks it’s much easier to manage venv and package installations.
Follow uv jupyter docummentation for more details.
uv venv --seed
source .venv/bin/activate
uv pip install jupyterlab
.venv/bin/jupyter lab
NOTE: this environment should be used as UV_PROJECT_ENVIRONMENT env variable in MCP server (next step). Run in the same folder where Jupyter started.
echo $(pwd)/.venv
Step2: Configure Claude Desctop Add this configuration to your Claude Desktop config file:
PyPi package:
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"Jupyter-notebook-manager": {
"command": "uv",
"args": ["run", "--with", "mcp-server-jupyter", "mcp-server-jupyter"],
"env": {
"UV_PROJECT_ENVIRONMENT": "/path/to/venv_for_jupyter/.venv"
}
}
}
}
Git repo fork
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"Jupyter-notebook-manager": {
"command": "uv",
"args": [
"run",
"--directory",
"/Users/inna/mcp-server-jupyter/src/mcp_server_jupyter",
"mcp-server-jupyter"
],
"env": {
"UV_PROJECT_ENVIRONMENT": "/path/to/venv_for_jupyter/.venv"
}
}
}
}
Step 3: Open Notebook & Claude Chat
Open or create a notebook in JupyterLab/Jupyter Notebook
Get the full path to your notebook:
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"Jupyter-notebook-manager": {
"command": "uv",
"args": ["run", "--with", "mcp-server-jupyter", "mcp-server-jupyter"],
"env": {
"UV_PROJECT_ENVIRONMENT": "/path/to/venv_for_jupyter/.venv"
}
}
}
}