cursor-notebook-mcp

cursor-notebook-mcp

3.6

If you are the rightful owner of cursor-notebook-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Jupyter Notebook MCP Server allows AI agents to interact with Jupyter Notebook files, providing tools for direct notebook cell manipulation.

The Jupyter Notebook MCP Server is designed to enable AI agents, particularly within Cursor, to interact with Jupyter Notebook (.ipynb) files. It addresses a limitation in Cursor's Agent mode, where the model could not edit notebooks or cells in response to dialog in the AI chat pane. The server provides a suite of MCP tools for direct notebook cell manipulation, using the nbformat library to safely manipulate notebook structures and nbconvert for exporting notebooks to various formats. It enforces security by restricting operations to user-defined directories and handles all notebook operations through a clean API. The server is versatile and can be configured for use with other platforms like VS Code (Insiders) or Claude Code, as long as they can utilize MCP. The server supports various transport protocols, including Streamable HTTP, SSE, and stdio, and can handle remote notebooks via SFTP.

Features

  • notebook_create: Creates a new, empty notebook file.
  • notebook_delete: Deletes an existing notebook file.
  • notebook_rename: Renames/moves a notebook file from one path to another.
  • notebook_read: Reads an entire notebook and returns its structure as a dictionary.
  • notebook_add_cell: Adds a new code or markdown cell after a specified index.

Tools

  1. notebook_create

    Create a new empty notebook file

  2. notebook_delete

    Delete existing notebook files

  3. notebook_rename

    Rename/move notebook files

  4. notebook_read

    Read the entire notebook structure

  5. notebook_read_cell

    Read the source content of a specific cell

  6. notebook_add_cell

    Add new cell after specifying index

  7. notebook_edit_cell

    Replace the source content of a specific cell

  8. notebook_delete_cell

    Delete a specific cell

  9. notebook_change_cell_type

    Change cell type

  10. notebook_duplicate_cell

    Copy the cell

  11. notebook_get_cell_count

    Returns the total number of cells

  12. notebook_read_metadata

    Read top-level notebook metadata

  13. notebook_edit_metadata

    Update top-level notebook metadata

  14. notebook_read_cell_metadata

    Read metadata for a specific cell

  15. notebook_read_cell_output

    Read the output list of specific code cells

  16. notebook_edit_cell_metadata

    Update metadata for specific cells

  17. notebook_clear_cell_outputs

    Clear output and execution count for specific cells

  18. notebook_clear_all_outputs

    Clear output and execution counts for all code cells

  19. notebook_move_cell

    Move the cell to a different position

  20. notebook_split_cell

    Split cells at specified row number

  21. notebook_merge_cells

    Merge cells with cells that are immediately followed

  22. notebook_validate

    Verify notebook structure

  23. notebook_get_info

    Search general information

  24. notebook_export

    Export your notebook to another format