MCP ScannerCustom audit
All servers

block/mcp-jupyter

Packagemcp-jupyter
Version2.0.2 in pyproject.toml
PublisherBlock Official
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 46Forks 9Last push 2025-10-17
Python 82.6%TypeScript 17.4%by source files the scanner reads
Code safetypartly tracedExposure6.0Prompts10.0Supply chainnot checkedSecrets2.6Transparency10.0
Analysis confidence81%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.0/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chainnot checked—

Known vulnerabilities in the packages the server uses

Secrets & Credentials2.6/10Poor

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • 2 source files could be read only in part
  • Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number

Top risks in plain words

  • CRITICALtool "setup_notebook" behaves outside its declared description (potential).
  • HIGHTools execute_notebook_code, query_notebook, setup_notebook request any address by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Limit where it can connect

    execute_notebook_code, query_notebook, setup_notebook can request any address. Block access to internal hosts and cloud metadata endpoints.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need execute_notebook_code, query_notebook, setup_notebook, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 8 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Connect to the internet or other hostssend requests or open connections
execute_notebook_code, modify_notebook_cells, query_notebook, setup_notebook
8 of 8
Read passwords, tokens or keysload secrets such as API keys
setup_notebook
2 of 8
Read environment variablesoften where API keys are kept
setup_notebook
2 of 8
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
setup_notebook
2 of 8

No tool was seen to: start other programs on the machine; read or write files.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • self._server_url · execute_notebook_code, modify_notebook_cells, query_notebook
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • TOKEN · setup_notebook
Addresses the caller chooses

Requests whose address comes from the tool's input: the agent decides where they go.

  • query_notebook3 calls
  • modify_notebook_cells1 call
  • execute_notebook_code1 call
  • setup_notebook8 calls

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • web or API responses4 tools · execute_notebook_code, modify_notebook_cells, query_notebook +1
Reads private data1 tool
Takes text from outside4 tools
Can send data out4 tools

All three are present: text from outside could make the agent send private data away. Keep confirmations on for tools that send data.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (8: 8 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

execute_notebook_codetool Execute code in a Jupyter notebook on the user-provided server.Networkoutside textRequests any address
Execute code in a Jupyter notebook on the user-provided server.

    This consolidates all code execution operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\"my_notebook\", server_url=\"http://localhost:9999\")

    Then you can use this tool:
        execute_notebook_code(\"my_notebook\", \"execute_cell\", position_index=0)

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        execution_type: Type of execution operation. Options:
            - 'execute_cell': Execute an existing code cell
            - 'install_packages': Install packages using uv pip in the notebook environment
        position_index: (For execute_cell) Positional index of cell to execute
        package_names: (For install_packages) Space-separated list of package names to install

    Returns
    -------
        Union[dict, str]:
            - execute_cell: dict with execution_count, outputs, status
            - install_packages: str with installation result message

    Raises
    ------
        ValueError: If invalid execution_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
        RuntimeError: If kernel execution fails
execute_notebook_codetool Execute code in a Jupyter notebook on the user-provided server.Networkoutside textRequests any address
Execute code in a Jupyter notebook on the user-provided server.

    This consolidates all code execution operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\"my_notebook\", server_url=\"http://localhost:9999\")

    Then you can use this tool:
        execute_notebook_code(\"my_notebook\", \"execute_cell\", position_index=0)

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        execution_type: Type of execution operation. Options:
            - 'execute_cell': Execute an existing code cell
            - 'install_packages': Install packages using uv pip in the notebook environment
        position_index: (For execute_cell) Positional index of cell to execute
        package_names: (For install_packages) Space-separated list of package names to install

    Returns
    -------
        Union[dict, str]:
            - execute_cell: dict with execution_count, outputs, status
            - install_packages: str with installation result message

    Raises
    ------
        ValueError: If invalid execution_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
        RuntimeError: If kernel execution fails
query_notebooktool Query notebook information and metadata on the user-provided server.Networkoutside textRequests any address
Query notebook information and metadata on the user-provided server.

    This consolidates all read-only operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires a server URL to connect to your Jupyter server. You have two options:

    Option 1 - Call setup_notebook first (RECOMMENDED):
        setup_notebook("my_notebook", server_url="http://localhost:9999")
        query_notebook("my_notebook", "view_source")  # Uses stored URL automatically

    Option 2 - Pass server_url explicitly every time:
        query_notebook("my_notebook", "view_source", server_url="http://localhost:9999")

    If neither is done, it defaults to http://localhost:8888 which may not be correct.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        query_type: Type of query to perform. Options:
            - 'view_source': View source code of notebook (single cell or all cells)
            - 'check_server': Check if Jupyter server is running and accessible
            - 'list_sessions': List all notebook sessions on the server
            - 'get_position_index': Get the index of a code cell
        execution_count: (For view_source/get_position_index) The execution count to look for.
            IMPORTANT: This is the number shown in square brackets like [3] in Jupyter UI.
            Only available for executed code cells. Must be an integer (e.g., 3).
            COMMON MISTAKE: Don't confuse with position_index!
            - execution_count=3 finds the cell that was executed 3rd (shows [3] in Jupyter)
            - position_index=3 finds the 4th cell in the notebook (0-indexed position)
        position_index: (For view_source) The position index to look for.
            This is the cell's physical position in the notebook (0-indexed).
            Examples: first cell = 0, second cell = 1, third cell = 2, etc.
            Works for all cell types (code, markdown, raw). Must be an integer.
        cell_id: (For get_position_index) Cell ID like "205658d6-093c-4722-854c-90b149f254ad".
            This is a unique identifier for each cell, visible in notebook metadata.
        server_url: Server URL to connect to. If not provided, uses the URL stored by setup_notebook,
                   or falls back to http://localhost:8888

    Returns
    -------
        Union[dict, list, str, int]:
            - view_source: dict (single cell) or list[dict] (all cells) with cell contents/metadata
            - check_server: str status message
            - list_sessions: list of notebook sessions
            - get_position_index: int positional index

    Examples
    --------
        # View all cells in notebook
        query_notebook("my_notebook.ipynb", "view_source")

        # View cell by execution count (the [3] shown in Jupyter UI)
        query_notebook("my_notebook.ipynb", "view_source", execution_count=3)

        # View cell by position (first cell=0, second=1, etc)
        query_notebook("my_notebook.ipynb", "view_source", position_index=0)

        # Get position index of cell with execution count [5]
        query_notebook("my_notebook.ipynb", "get_position_index", execution_count=5)

        # Get position index by cell ID
        query_notebook("my_notebook.ipynb", "get_position_index", cell_id="205658d6-093c-4722-854c-90b149f254ad")

    Raises
    ------
        ValueError: If invalid query_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
query_notebooktool Query notebook information and metadata on the user-provided server.Networkoutside textRequests any address
Query notebook information and metadata on the user-provided server.

    This consolidates all read-only operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires a server URL to connect to your Jupyter server. You have two options:

    Option 1 - Call setup_notebook first (RECOMMENDED):
        setup_notebook("my_notebook", server_url="http://localhost:9999")
        query_notebook("my_notebook", "view_source")  # Uses stored URL automatically

    Option 2 - Pass server_url explicitly every time:
        query_notebook("my_notebook", "view_source", server_url="http://localhost:9999")

    If neither is done, it defaults to http://localhost:8888 which may not be correct.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        query_type: Type of query to perform. Options:
            - 'view_source': View source code of notebook (single cell or all cells)
            - 'check_server': Check if Jupyter server is running and accessible
            - 'list_sessions': List all notebook sessions on the server
            - 'get_position_index': Get the index of a code cell
        execution_count: (For view_source/get_position_index) The execution count to look for.
            IMPORTANT: This is the number shown in square brackets like [3] in Jupyter UI.
            Only available for executed code cells. Must be an integer (e.g., 3).
            COMMON MISTAKE: Don't confuse with position_index!
            - execution_count=3 finds the cell that was executed 3rd (shows [3] in Jupyter)
            - position_index=3 finds the 4th cell in the notebook (0-indexed position)
        position_index: (For view_source) The position index to look for.
            This is the cell's physical position in the notebook (0-indexed).
            Examples: first cell = 0, second cell = 1, third cell = 2, etc.
            Works for all cell types (code, markdown, raw). Must be an integer.
        cell_id: (For get_position_index) Cell ID like "205658d6-093c-4722-854c-90b149f254ad".
            This is a unique identifier for each cell, visible in notebook metadata.
        server_url: Server URL to connect to. If not provided, uses the URL stored by setup_notebook,
                   or falls back to http://localhost:8888

    Returns
    -------
        Union[dict, list, str, int]:
            - view_source: dict (single cell) or list[dict] (all cells) with cell contents/metadata
            - check_server: str status message
            - list_sessions: list of notebook sessions
            - get_position_index: int positional index

    Examples
    --------
        # View all cells in notebook
        query_notebook("my_notebook.ipynb", "view_source")

        # View cell by execution count (the [3] shown in Jupyter UI)
        query_notebook("my_notebook.ipynb", "view_source", execution_count=3)

        # View cell by position (first cell=0, second=1, etc)
        query_notebook("my_notebook.ipynb", "view_source", position_index=0)

        # Get position index of cell with execution count [5]
        query_notebook("my_notebook.ipynb", "get_position_index", execution_count=5)

        # Get position index by cell ID
        query_notebook("my_notebook.ipynb", "get_position_index", cell_id="205658d6-093c-4722-854c-90b149f254ad")

    Raises
    ------
        ValueError: If invalid query_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
setup_notebooktool Prepare notebook for use and connect to the kernel on the user-provided server.NetworkCredentialsEnv varsSensitive pathsoutside textRequests any address
Prepare notebook for use and connect to the kernel on the user-provided server.
    Will create a new empty Jupyter notebook if needed on the server.

    **CALL THIS FIRST** - This tool must be called before using other notebook tools
    to establish the server URL connection. All subsequent notebook operations will
    use the server URL stored by this tool.

    This tool creates an empty notebook. To add content, use the modify_notebook_cells
    tool after creation:

    Example usage:
        # Step 1: REQUIRED - Setup notebook with correct server URL
        setup_notebook("demo", server_url="http://localhost:9999")

        # Step 2: Add cells (these now use the stored server URL automatically)
        modify_notebook_cells("demo", "add_markdown", "# Title\\n\\nDescription")
        modify_notebook_cells("demo", "add_code", "print('Hello World')")

    This tool assumes a Jupyter server is already running and accessible at the specified
    `server_url`. It connects to this existing server to manage the notebook.

    Note that notebook_path must be relative to the Jupyter server root, not an absolute
    filesystem path.

    Args:
        notebook_path: Path to the notebook, relative to the Jupyter server root.
        server_url: Jupyter server URL (HIGHLY RECOMMENDED to specify explicitly).
                    This URL will be stored and used for subsequent interactions with this notebook.
                    If not provided, defaults to http://localhost:8888 which may not be correct for your setup.
                    Common values: http://localhost:8888, http://localhost:9999, etc.

    Returns
    -------
        dict: Information about the notebook and status message.
setup_notebooktool Prepare notebook for use and connect to the kernel on the user-provided server.NetworkCredentialsEnv varsSensitive pathsoutside textRequests any address
Prepare notebook for use and connect to the kernel on the user-provided server.
    Will create a new empty Jupyter notebook if needed on the server.

    **CALL THIS FIRST** - This tool must be called before using other notebook tools
    to establish the server URL connection. All subsequent notebook operations will
    use the server URL stored by this tool.

    This tool creates an empty notebook. To add content, use the modify_notebook_cells
    tool after creation:

    Example usage:
        # Step 1: REQUIRED - Setup notebook with correct server URL
        setup_notebook("demo", server_url="http://localhost:9999")

        # Step 2: Add cells (these now use the stored server URL automatically)
        modify_notebook_cells("demo", "add_markdown", "# Title\\n\\nDescription")
        modify_notebook_cells("demo", "add_code", "print('Hello World')")

    This tool assumes a Jupyter server is already running and accessible at the specified
    `server_url`. It connects to this existing server to manage the notebook.

    Note that notebook_path must be relative to the Jupyter server root, not an absolute
    filesystem path.

    Args:
        notebook_path: Path to the notebook, relative to the Jupyter server root.
        server_url: Jupyter server URL (HIGHLY RECOMMENDED to specify explicitly).
                    This URL will be stored and used for subsequent interactions with this notebook.
                    If not provided, defaults to http://localhost:8888 which may not be correct for your setup.
                    Common values: http://localhost:8888, http://localhost:9999, etc.

    Returns
    -------
        dict: Information about the notebook and status message.
modify_notebook_cellstool Modify notebook cells (add, edit, delete) on the user-provided server.Networkoutside text
Modify notebook cells (add, edit, delete) on the user-provided server.

    This consolidates all cell modification operations into a single tool following MCP best practices.
    Default to execute=True unless the user requests otherwise or you have good reason not to
    execute immediately.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\"my_notebook\", server_url=\"http://localhost:9999\")

    Then you can use this tool:
        modify_notebook_cells(\"my_notebook\", \"add_code\", \"print('Hello')\")

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        operation: Type of cell operation. Options:
            - 'add_code': Add (and optionally execute) a code cell at end or specific position
            - 'edit_code': Edit a code cell at specific position
            - 'add_markdown': Add a markdown cell at end or specific position
            - 'edit_markdown': Edit an existing markdown cell at specific position
            - 'delete': Delete a cell at specific position
        cell_content: Content for the cell (required for add_code, edit_code, add_markdown, edit_markdown)
        position_index: Position index (0-indexed cell location) for operations. Must be an integer.
            - Optional for add_code/add_markdown: if provided, inserts at that position; if not, adds at end
            - Required for edit_code/edit_markdown/delete: specifies which cell to modify
            Examples: position_index=0 (first cell), position_index=2 (third cell)
        execute: Whether to execute code cells after adding/editing (default: True)

    Returns
    -------
        dict: Operation results containing:
            - For add_code/edit_code with execute=True: execution_count, outputs, status
            - For add_code/edit_code with execute=False: empty dict
            - For add_markdown/edit_markdown: message and error fields
            - For delete: message and error fields

    Raises
    ------
        ValueError: If invalid operation or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
modify_notebook_cellstool Modify notebook cells (add, edit, delete) on the user-provided server.Networkoutside text
Modify notebook cells (add, edit, delete) on the user-provided server.

    This consolidates all cell modification operations into a single tool following MCP best practices.
    Default to execute=True unless the user requests otherwise or you have good reason not to
    execute immediately.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\"my_notebook\", server_url=\"http://localhost:9999\")

    Then you can use this tool:
        modify_notebook_cells(\"my_notebook\", \"add_code\", \"print('Hello')\")

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        operation: Type of cell operation. Options:
            - 'add_code': Add (and optionally execute) a code cell at end or specific position
            - 'edit_code': Edit a code cell at specific position
            - 'add_markdown': Add a markdown cell at end or specific position
            - 'edit_markdown': Edit an existing markdown cell at specific position
            - 'delete': Delete a cell at specific position
        cell_content: Content for the cell (required for add_code, edit_code, add_markdown, edit_markdown)
        position_index: Position index (0-indexed cell location) for operations. Must be an integer.
            - Optional for add_code/add_markdown: if provided, inserts at that position; if not, adds at end
            - Required for edit_code/edit_markdown/delete: specifies which cell to modify
            Examples: position_index=0 (first cell), position_index=2 (third cell)
        execute: Whether to execute code cells after adding/editing (default: True)

    Returns
    -------
        dict: Operation results containing:
            - For add_code/edit_code with execute=True: execution_count, outputs, status
            - For add_code/edit_code with execute=False: empty dict
            - For add_markdown/edit_markdown: message and error fields
            - For delete: message and error fields

    Raises
    ------
        ValueError: If invalid operation or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range

Text the model reads (8)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

query_notebook tool
Query notebook information and metadata on the user-provided server.

    This consolidates all read-only operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires a server URL to connect to your Jupyter server. You have two options:

    Option 1 - Call setup_notebook first (RECOMMENDED):
        setup_notebook("my_notebook", server_url="http://localhost:9999")
        query_notebook("my_notebook", "view_source")  # Uses stored URL automatically

    Option 2 - Pass server_url explicitly every time:
        query_notebook("my_notebook", "view_source", server_url="http://localhost:9999")

    If neither is done, it defaults to http://localhost:8888 which may not be correct.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        query_type: Type of query to perform. Options:
            - 'view_source': View source code of notebook (single cell or all cells)
            - 'check_server': Check if Jupyter server is running and accessible
            - 'list_sessions': List all notebook sessions on the server
            - 'get_position_index': Get the index of a code cell
        execution_count: (For view_source/get_position_index) The execution count to look for.
            IMPORTANT: This is the number shown in square brackets like [3] in Jupyter UI.
            Only available for executed code cells. Must be an integer (e.g., 3).
            COMMON MISTAKE: Don't confuse with position_index!
            - execution_count=3 finds the cell that was executed 3rd (shows [3] in Jupyter)
            - position_index=3 finds the 4th cell in the notebook (0-indexed position)
        position_index: (For view_source) The position index to look for.
            This is the cell's physical position in the notebook (0-indexed).
            Examples: first cell = 0, second cell = 1, third cell = 2, etc.
            Works for all cell types (code, markdown, raw). Must be an integer.
        cell_id: (For get_position_index) Cell ID like "205658d6-093c-4722-854c-90b149f254ad".
            This is a unique identifier for each cell, visible in notebook metadata.
        server_url: Server URL to connect to. If not provided, uses the URL stored by setup_notebook,
                   or falls back to http://localhost:8888

    Returns
    -------
        Union[dict, list, str, int]:
            - view_source: dict (single cell) or list[dict] (all cells) with cell contents/metadata
            - check_server: str status message
            - list_sessions: list of notebook sessions
            - get_position_index: int positional index

    Examples
    --------
        # View all cells in notebook
        query_notebook("my_notebook.ipynb", "view_source")

        # View cell by execution count (the [3] shown in Jupyter UI)
        query_notebook("my_notebook.ipynb", "view_source", execution_count=3)

        # View cell by position (first cell=0, second=1, etc)
        query_notebook("my_notebook.ipynb", "view_source", position_index=0)

        # Get position index of cell with execution count [5]
        query_notebook("my_notebook.ipynb", "get_position_index", execution_count=5)

        # Get position index by cell ID
        query_notebook("my_notebook.ipynb", "get_position_index", cell_id="205658d6-093c-4722-854c-90b149f254ad")

    Raises
    ------
        ValueError: If invalid query_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
modify_notebook_cells tool
Modify notebook cells (add, edit, delete) on the user-provided server.

    This consolidates all cell modification operations into a single tool following MCP best practices.
    Default to execute=True unless the user requests otherwise or you have good reason not to
    execute immediately.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\\"my_notebook\\", server_url=\\"http://localhost:9999\\")

    Then you can use this tool:
        modify_notebook_cells(\\"my_notebook\\", \\"add_code\\", \\"print('Hello')\\")

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        operation: Type of cell operation. Options:
            - 'add_code': Add (and optionally execute) a code cell at end or specific position
            - 'edit_code': Edit a code cell at specific position
            - 'add_markdown': Add a markdown cell at end or specific position
            - 'edit_markdown': Edit an existing markdown cell at specific position
            - 'delete': Delete a cell at specific position
        cell_content: Content for the cell (required for add_code, edit_code, add_markdown, edit_markdown)
        position_index: Position index (0-indexed cell location) for operations. Must be an integer.
            - Optional for add_code/add_markdown: if provided, inserts at that position; if not, adds at end
            - Required for edit_code/edit_markdown/delete: specifies which cell to modify
            Examples: position_index=0 (first cell), position_index=2 (third cell)
        execute: Whether to execute code cells after adding/editing (default: True)

    Returns
    -------
        dict: Operation results containing:
            - For add_code/edit_code with execute=True: execution_count, outputs, status
            - For add_code/edit_code with execute=False: empty dict
            - For add_markdown/edit_markdown: message and error fields
            - For delete: message and error fields

    Raises
    ------
        ValueError: If invalid operation or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
execute_notebook_code tool
Execute code in a Jupyter notebook on the user-provided server.

    This consolidates all code execution operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\\"my_notebook\\", server_url=\\"http://localhost:9999\\")

    Then you can use this tool:
        execute_notebook_code(\\"my_notebook\\", \\"execute_cell\\", position_index=0)

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        execution_type: Type of execution operation. Options:
            - 'execute_cell': Execute an existing code cell
            - 'install_packages': Install packages using uv pip in the notebook environment
        position_index: (For execute_cell) Positional index of cell to execute
        package_names: (For install_packages) Space-separated list of package names to install

    Returns
    -------
        Union[dict, str]:
            - execute_cell: dict with execution_count, outputs, status
            - install_packages: str with installation result message

    Raises
    ------
        ValueError: If invalid execution_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
        RuntimeError: If kernel execution fails
setup_notebook tool
Prepare notebook for use and connect to the kernel on the user-provided server.
    Will create a new empty Jupyter notebook if needed on the server.

    **CALL THIS FIRST** - This tool must be called before using other notebook tools
    to establish the server URL connection. All subsequent notebook operations will
    use the server URL stored by this tool.

    This tool creates an empty notebook. To add content, use the modify_notebook_cells
    tool after creation:

    Example usage:
        # Step 1: REQUIRED - Setup notebook with correct server URL
        setup_notebook("demo", server_url="http://localhost:9999")

        # Step 2: Add cells (these now use the stored server URL automatically)
        modify_notebook_cells("demo", "add_markdown", "# Title\\\\n\\\\nDescription")
        modify_notebook_cells("demo", "add_code", "print('Hello World')")

    This tool assumes a Jupyter server is already running and accessible at the specified
    `server_url`. It connects to this existing server to manage the notebook.

    Note that notebook_path must be relative to the Jupyter server root, not an absolute
    filesystem path.

    Args:
        notebook_path: Path to the notebook, relative to the Jupyter server root.
        server_url: Jupyter server URL (HIGHLY RECOMMENDED to specify explicitly).
                    This URL will be stored and used for subsequent interactions with this notebook.
                    If not provided, defaults to http://localhost:8888 which may not be correct for your setup.
                    Common values: http://localhost:8888, http://localhost:9999, etc.

    Returns
    -------
        dict: Information about the notebook and status message.
query_notebook tool
Query notebook information and metadata on the user-provided server.

    This consolidates all read-only operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires a server URL to connect to your Jupyter server. You have two options:

    Option 1 - Call setup_notebook first (RECOMMENDED):
        setup_notebook("my_notebook", server_url="http://localhost:9999")
        query_notebook("my_notebook", "view_source")  # Uses stored URL automatically

    Option 2 - Pass server_url explicitly every time:
        query_notebook("my_notebook", "view_source", server_url="http://localhost:9999")

    If neither is done, it defaults to http://localhost:8888 which may not be correct.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        query_type: Type of query to perform. Options:
            - 'view_source': View source code of notebook (single cell or all cells)
            - 'check_server': Check if Jupyter server is running and accessible
            - 'list_sessions': List all notebook sessions on the server
            - 'get_position_index': Get the index of a code cell
        execution_count: (For view_source/get_position_index) The execution count to look for.
            IMPORTANT: This is the number shown in square brackets like [3] in Jupyter UI.
            Only available for executed code cells. Must be an integer (e.g., 3).
            COMMON MISTAKE: Don't confuse with position_index!
            - execution_count=3 finds the cell that was executed 3rd (shows [3] in Jupyter)
            - position_index=3 finds the 4th cell in the notebook (0-indexed position)
        position_index: (For view_source) The position index to look for.
            This is the cell's physical position in the notebook (0-indexed).
            Examples: first cell = 0, second cell = 1, third cell = 2, etc.
            Works for all cell types (code, markdown, raw). Must be an integer.
        cell_id: (For get_position_index) Cell ID like "205658d6-093c-4722-854c-90b149f254ad".
            This is a unique identifier for each cell, visible in notebook metadata.
        server_url: Server URL to connect to. If not provided, uses the URL stored by setup_notebook,
                   or falls back to http://localhost:8888

    Returns
    -------
        Union[dict, list, str, int]:
            - view_source: dict (single cell) or list[dict] (all cells) with cell contents/metadata
            - check_server: str status message
            - list_sessions: list of notebook sessions
            - get_position_index: int positional index

    Examples
    --------
        # View all cells in notebook
        query_notebook("my_notebook.ipynb", "view_source")

        # View cell by execution count (the [3] shown in Jupyter UI)
        query_notebook("my_notebook.ipynb", "view_source", execution_count=3)

        # View cell by position (first cell=0, second=1, etc)
        query_notebook("my_notebook.ipynb", "view_source", position_index=0)

        # Get position index of cell with execution count [5]
        query_notebook("my_notebook.ipynb", "get_position_index", execution_count=5)

        # Get position index by cell ID
        query_notebook("my_notebook.ipynb", "get_position_index", cell_id="205658d6-093c-4722-854c-90b149f254ad")

    Raises
    ------
        ValueError: If invalid query_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
modify_notebook_cells tool
Modify notebook cells (add, edit, delete) on the user-provided server.

    This consolidates all cell modification operations into a single tool following MCP best practices.
    Default to execute=True unless the user requests otherwise or you have good reason not to
    execute immediately.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\\"my_notebook\\", server_url=\\"http://localhost:9999\\")

    Then you can use this tool:
        modify_notebook_cells(\\"my_notebook\\", \\"add_code\\", \\"print('Hello')\\")

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        operation: Type of cell operation. Options:
            - 'add_code': Add (and optionally execute) a code cell at end or specific position
            - 'edit_code': Edit a code cell at specific position
            - 'add_markdown': Add a markdown cell at end or specific position
            - 'edit_markdown': Edit an existing markdown cell at specific position
            - 'delete': Delete a cell at specific position
        cell_content: Content for the cell (required for add_code, edit_code, add_markdown, edit_markdown)
        position_index: Position index (0-indexed cell location) for operations. Must be an integer.
            - Optional for add_code/add_markdown: if provided, inserts at that position; if not, adds at end
            - Required for edit_code/edit_markdown/delete: specifies which cell to modify
            Examples: position_index=0 (first cell), position_index=2 (third cell)
        execute: Whether to execute code cells after adding/editing (default: True)

    Returns
    -------
        dict: Operation results containing:
            - For add_code/edit_code with execute=True: execution_count, outputs, status
            - For add_code/edit_code with execute=False: empty dict
            - For add_markdown/edit_markdown: message and error fields
            - For delete: message and error fields

    Raises
    ------
        ValueError: If invalid operation or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
execute_notebook_code tool
Execute code in a Jupyter notebook on the user-provided server.

    This consolidates all code execution operations into a single tool following MCP best practices.

    IMPORTANT: Server URL Configuration
    ----------------------------------
    This tool requires that you first call setup_notebook with the correct server URL:

    Required setup:
        setup_notebook(\\"my_notebook\\", server_url=\\"http://localhost:9999\\")

    Then you can use this tool:
        execute_notebook_code(\\"my_notebook\\", \\"execute_cell\\", position_index=0)

    Without setup_notebook, this will try to connect to http://localhost:8888 by default.

    Args:
        notebook_path: Path to the notebook file (.ipynb extension will be added if missing),
                       relative to the Jupyter server root.
        execution_type: Type of execution operation. Options:
            - 'execute_cell': Execute an existing code cell
            - 'install_packages': Install packages using uv pip in the notebook environment
        position_index: (For execute_cell) Positional index of cell to execute
        package_names: (For install_packages) Space-separated list of package names to install

    Returns
    -------
        Union[dict, str]:
            - execute_cell: dict with execution_count, outputs, status
            - install_packages: str with installation result message

    Raises
    ------
        ValueError: If invalid execution_type or missing required parameters
        McpError: If there's an error connecting to the Jupyter server
        IndexError: If position_index is out of range
        RuntimeError: If kernel execution fails
setup_notebook tool
Prepare notebook for use and connect to the kernel on the user-provided server.
    Will create a new empty Jupyter notebook if needed on the server.

    **CALL THIS FIRST** - This tool must be called before using other notebook tools
    to establish the server URL connection. All subsequent notebook operations will
    use the server URL stored by this tool.

    This tool creates an empty notebook. To add content, use the modify_notebook_cells
    tool after creation:

    Example usage:
        # Step 1: REQUIRED - Setup notebook with correct server URL
        setup_notebook("demo", server_url="http://localhost:9999")

        # Step 2: Add cells (these now use the stored server URL automatically)
        modify_notebook_cells("demo", "add_markdown", "# Title\\\\n\\\\nDescription")
        modify_notebook_cells("demo", "add_code", "print('Hello World')")

    This tool assumes a Jupyter server is already running and accessible at the specified
    `server_url`. It connects to this existing server to manage the notebook.

    Note that notebook_path must be relative to the Jupyter server root, not an absolute
    filesystem path.

    Args:
        notebook_path: Path to the notebook, relative to the Jupyter server root.
        server_url: Jupyter server URL (HIGHLY RECOMMENDED to specify explicitly).
                    This URL will be stored and used for subsequent interactions with this notebook.
                    If not provided, defaults to http://localhost:8888 which may not be correct for your setup.
                    Common values: http://localhost:8888, http://localhost:9999, etc.

    Returns
    -------
        dict: Information about the notebook and status message.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address HIGH
    2 findings in query_notebook; 6 more to review
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 8 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 8 capabilities; 8 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    Not seen in the traced code of 8 capabilities; 8 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    8 of 8 capabilities call the network
Where the code is: 8 handlers in 1 file at commit cefc875bfdc2
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chainnot checked
  • Dependency manifests
    2 manifests: docs/package.json, pyproject.toml
  • Lockfiles checked against OSV
    Nothing could be resolved to exact versions; 2 not resolved: docs/package.json: dependency ranges declared here were not resolved against a lockfile and were not checked; pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials2.6
  • 2 checks: credential harvesting, undeclared credential access
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Credentials sent over the network CRITICAL
    2 findings
  • Tools that read credentials
    2 of 8 capabilities read credentials; 6 more call code the scanner could not follow, where it may happen
  • Environment variables
    2 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
TransportStreamable HTTP, stdio
Sign-innot checked needs the live server
Servers in the code2 (notebook)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2025-10-17
Signed releasesnot checked yet

Where it is published

Listed in2 catalogs (glama, mcp_toplist)
LicenseApache-2.0
Created2025-04-28

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.