Skip to content

Instantly share code, notes, and snippets.

@jtpio
Created September 18, 2025 19:33
Show Gist options
  • Save jtpio/dbd96b5488c7089a28d350f99381ff40 to your computer and use it in GitHub Desktop.
Save jtpio/dbd96b5488c7089a28d350f99381ff40 to your computer and use it in GitHub Desktop.
JupyterLab with Claude Code

Jupyter Server MCP demo

0. Install dependencies

python -m pip install -r ./requirements.txt

1. Configuration

Create a jupyter_config.py with the following content:

c = get_config()

c.MCPExtensionApp.mcp_name = "My Jupyter MCP Server"
c.MCPExtensionApp.mcp_port = 8080

c.MCPExtensionApp.mcp_tools = [
    "jupyterlab_commands_toolkit.tools:list_all_commands",
    "jupyterlab_commands_toolkit.tools:execute_command",
]

2. Claude Configuration configuration

claude mcp add --transport http jupyter-mcp http://localhost:8080/mcp

3. Start JupyterLab

jupyter lab --config ./jupyter_config.py

4. Usage

In JupyterLab, open a new terminal and start claude.

jupyter-server-mcp
jupyterlab-commands-toolkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment