Jupyter Notebook MCP Server

A FastMCP server that provides tools for interacting with Jupyter notebooks. Built using the [FastMCP framework](https://github.com/jlowin/fastmcp).

Local serverstdioPython

What is the Jupyter Notebook MCP Server?

A FastMCP server that provides tools for interacting with Jupyter notebooks. Built using the FastMCP framework.

What you get

  • ✅ Read notebook cells with filtering
  • ✅ Add new cells at any position
  • ✅ Execute individual cells
  • ✅ Execute entire notebooks
  • ✅ Get notebook metadata and statistics
  • ✅ Proper error handling and validation

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
notebook_pathstr): Path to the .ipynb file
cell_typestr, default="code"): Type of cell ('code', 'markdown', 'raw')
cell_contentstr): Content of the new cell
positionoptional int): Position to insert cell (default: append to end)
metadataoptional dict): Optional cell metadata
kernel_namestr, default="python3"): Jupyter kernel to use
timeoutint, default=30): Execution timeout in seconds
timeout_per_cellint, default=30): Timeout per cell in seconds
stop_on_errorbool, default=True): Whether to stop execution if a cell fails

How to install the Jupyter Notebook MCP Server

{
  "mcpServers": {
    "jupyter-notebook": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp>=2.8.1",
        "python",
        "<absolute_path_to_jupyter_mcp_server>/main.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Jupyter Notebook to Testing.”

Frequently asked questions

A FastMCP server that provides tools for interacting with Jupyter notebooks. Built using the [FastMCP framework](https://github.com/jlowin/fastmcp). Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.