Skip to main content
Glama
shwetalsoni

Jupyter Notebook MCP Server

by shwetalsoni

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_notebook_cells
Read cells from a Jupyter notebook.

Args:
    notebook_path: Absolute path to the .ipynb file
    cell_type: Optional filter by cell type ('code', 'markdown', 'raw')

Returns:
    List of cell dictionaries with metadata
add_cell_to_notebook
Add a new cell to a Jupyter notebook.

Args:
    notebook_path: Absolute path to the .ipynb file
    cell_content: Content of the new cell
    cell_type: Type of cell ('code', 'markdown', 'raw')
    position: Position to insert cell (default: append to end)
    metadata: Optional cell metadata

Returns:
    Status of the operation
execute_notebook_cell
Execute a specific cell in a Jupyter notebook.

Args:
    notebook_path: Absolute path to the .ipynb file
    cell_index: Index of the cell to execute (0-based)
    kernel_name: Jupyter kernel to use for execution
    timeout: Execution timeout in seconds

Returns:
    Execution result with outputs
execute_entire_notebook
Execute all code cells in a Jupyter notebook sequentially.

Args:
    notebook_path: Absolute path to the .ipynb file
    kernel_name: Jupyter kernel to use for execution
    timeout_per_cell: Timeout per cell in seconds
    stop_on_error: Whether to stop execution if a cell fails

Returns:
    Execution summary with results for each cell
get_notebook_info
Get basic information about a Jupyter notebook.

Args:
    notebook_path: Absolute path to the .ipynb file

Returns:
    Notebook metadata and statistics

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/shwetalsoni/jupyter-notebook-mcp-server'

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