Skip to main content
Glama

Jupyter MCP Server

by datalayer

🪐 ✨ Jupyter MCP-сервер

Jupyter MCP Server — это реализация сервера Model Context Protocol (MCP), которая обеспечивает взаимодействие с 📓 блокнотами Jupyter, работающими в любой JupyterLab (также работает с вашим 💻 локальным JupyterLab).

Сервер Jupyter MCP

Запустить JupyterLab

Убедитесь, что у вас установлено следующее. Пакет совместной работы необходим, поскольку изменения, внесенные в блокнот, можно увидеть благодаря Jupyter Real Time Collaboration .

pip install jupyterlab==4.4.1 jupyter-collaboration==4.0.2 ipykernel pip uninstall -y pycrdt datalayer_pycrdt pip install datalayer_pycrdt==0.12.17

Затем запустите JupyterLab с помощью следующей команды.

jupyter lab --port 8888 --IdentityProvider.token MY_TOKEN --ip 0.0.0.0

Вы также можете запустить make jupyterlab .

[!ПРИМЕЧАНИЕ]

Параметр --ip устанавливается равным 0.0.0.0 , чтобы разрешить серверу MCP, работающему в контейнере Docker, получать доступ к локальному JupyterLab.

Использовать с Claude Desktop

Claude Desktop можно загрузить с этой страницы для macOS и Windows.

Для Linux мы успешно использовали этот НЕОФИЦИАЛЬНЫЙ скрипт сборки на основе nix

# ⚠️ UNOFFICIAL # You can also run `make claude-linux` NIXPKGS_ALLOW_UNFREE=1 nix run github:k3d3/claude-desktop-linux-flake \ --impure \ --extra-experimental-features flakes \ --extra-experimental-features nix-command

Чтобы использовать это с Claude Desktop, добавьте следующее в ваш claude_desktop_config.json (подробнее на сайте документации MCP ).

[!ВАЖНЫЙ]

Убедитесь, что порт SERVER_URL и TOKEN совпадают с портами, используемыми в команде jupyter lab .

NOTEBOOK_PATH должен быть указан относительно каталога, в котором был запущен JupyterLab.

Конфигурация Клода на macOS и Windows

{ "mcpServers": { "jupyter": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SERVER_URL", "-e", "TOKEN", "-e", "NOTEBOOK_PATH", "datalayer/jupyter-mcp-server:latest" ], "env": { "SERVER_URL": "http://host.docker.internal:8888", "TOKEN": "MY_TOKEN", "NOTEBOOK_PATH": "notebook.ipynb" } } } }

Конфигурация Клода на Linux

CLAUDE_CONFIG=${HOME}/.config/Claude/claude_desktop_config.json cat <<EOF > $CLAUDE_CONFIG { "mcpServers": { "jupyter": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SERVER_URL", "-e", "TOKEN", "-e", "NOTEBOOK_PATH", "--network=host", "datalayer/jupyter-mcp-server:latest" ], "env": { "SERVER_URL": "http://localhost:8888", "TOKEN": "MY_TOKEN", "NOTEBOOK_PATH": "notebook.ipynb" } } } } EOF cat $CLAUDE_CONFIG

Компоненты

Инструменты

В настоящее время сервер предлагает 2 инструмента:

  1. add_execute_code_cell
  • Добавьте и выполните ячейку кода в блокноте Jupyter.
  • Вход:
    • cell_content (строка): Код для выполнения.
  • Возвращает: Вывод ячейки.
  1. add_markdown_cell
  • Добавьте ячейку Markdown в блокнот Jupyter.
  • Вход:
    • cell_content (строка): Содержимое Markdown.
  • Возвращает: сообщение об успешном выполнении.

Здание

Вы можете собрать образ Docker из исходного кода.

make build-docker

Установка через Smithery

Чтобы автоматически установить Jupyter MCP Server для Claude Desktop через Smithery :

npx -y @smithery/cli install @datalayer/jupyter-mcp-server --client claude
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Обеспечивает взаимодействие с блокнотами Jupyter через протокол контекста модели, поддерживая выполнение кода и вставку разметки в средах JupyterLab.

  1. Запустить JupyterLab
    1. Использовать с Claude Desktop
      1. Конфигурация Клода на macOS и Windows
      2. Конфигурация Клода на Linux
    2. Компоненты
      1. Инструменты
    3. Здание
      1. Установка через Smithery

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Facilitates unified execution and result parsing for various testing frameworks, including Bats, Pytest, Flutter, Jest, and Go, through a Model Context Protocol interface.
          Last updated -
          1
          12
          TypeScript
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.
          Last updated -
          4
          Python
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables seamless integration between Cursor IDE and JIRA, allowing users to retrieve issues, execute JQL searches, and log work through natural language interactions.
          Last updated -
          Python
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          A Python server implementing the Model Context Protocol to provide customizable prompt templates, resources, and tools that enhance LLM interactions in the continue.dev environment.
          Last updated -
          2
          Python

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/datalayer/jupyter-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server