Skip to content

Menu

Deepnote MCP Server logo

Deepnote MCP Server

Published

At a glance

GitHub repository
deepnote/deepnote
Watch out for
Running code requires a Python environment with deepnote-toolkit installed; with only a system Python, execution fails with a hint about pointing the server at a venv.

Deepnote publishes its MCP server as the npm package @deepnote/mcp, built in the packages/mcp folder of the open-source deepnote/deepnote monorepo under the Apache-2.0 license. It runs locally over stdio, started by your client with npx, and works on .deepnote notebook files on disk.

The tools cover the whole notebook lifecycle: reading and linting, creating and editing blocks, converting to and from Jupyter, Quarto, Percent and Marimo formats, and actually running code. Execution goes through deepnote-toolkit, so the Python environment you point it at needs that package installed.

Beyond tools, the server ships MCP prompts such as create_notebook and debug_execution, and resources like deepnote://workspace that list every .deepnote file in the current workspace. It also keeps a deepnote-toolkit server warm between runs, while still giving each call a fresh kernel so variables do not leak from one run to the next.

How it connects

Your AI app

An assistant or agent that supports MCP

Deepnote MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • Read and inspect
  • Edit notebooks
  • Format conversion
  • Execution
  • Snapshots

Deepnote

The data or system the tools act on

Your AI app talks to Deepnote MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Read and inspect
deepnote_read analyses a notebook's structure, stats, lint results or dependency DAG, deepnote_cat shows block contents, deepnote_validate checks YAML and schema, and deepnote_diff compares two files.
Edit notebooks
deepnote_create builds a new .deepnote file from a spec, and deepnote_add_block, deepnote_edit_block, deepnote_remove_block, deepnote_reorder_blocks and deepnote_add_notebook change existing ones.
Format conversion
deepnote_convert_to turns Jupyter, Quarto, Percent or Marimo notebooks into .deepnote, and deepnote_convert_from goes the other way.
Execution
deepnote_run runs a whole file, one notebook or a single block by blockId, and accepts .deepnote, .ipynb, .py and .qmd inputs. Failed runs report a failureCategory such as kernel-died or execution-timeout.
Snapshots
deepnote_snapshot_split, deepnote_snapshot_merge, deepnote_snapshot_list and deepnote_snapshot_load keep outputs in separate files from source, which helps with version control.

Setting it up

Install it globally with npm install -g @deepnote/mcp or let the client run it through npx. For Cursor, add {"mcpServers": {"deepnote": {"command": "npx", "args": ["@deepnote/mcp"]}}} to ~/.cursor/mcp.json (some setups use ~/.cursor/config/mcp.json). Three optional environment variables tune it: DEEPNOTE_WORKSPACE sets the workspace root (default is the working directory), DEEPNOTE_PYTHON points at the interpreter or venv to run notebooks with, and DEEPNOTE_MCP_SERVER_IDLE_SECONDS controls how long the warm toolkit server stays up after a run (default 300). If you do not set DEEPNOTE_PYTHON, deepnote_run looks for a pythonPath argument, then the interpreter chosen in the Deepnote editor extension, then a .venv with deepnote-toolkit, then system python.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Convert a folder of Jupyter notebooks to .deepnote with deepnote_convert_to and lint them with deepnote_read.
  • Add a code block to an analysis notebook and run just that block to check the output.
  • Debug a failing notebook run using the debug_execution prompt and the failureCategory and hint fields.
  • Split outputs from source with deepnote_snapshot_split before committing notebooks to Git.

Limitations and things to watch

  • Running code requires a Python environment with deepnote-toolkit installed; with only a system Python, execution fails with a hint about pointing the server at a venv.
  • Write tools modify .deepnote files on disk directly, so keep notebooks under version control before letting an agent edit them.
  • deepnote_run executes the notebook's code on your machine, with whatever access that Python process has.
  • The README only documents setup for Cursor; other clients need the same npx command adapted to their config format.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…