Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@deepnote/mcp

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepnote/mcp

MCP server for AI-assisted Deepnote notebook creation and manipulation

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
42
110%
Maintainers
4
Weekly downloads
 
Created
Source

@deepnote/mcp

MCP (Model Context Protocol) server for AI-assisted Deepnote notebook creation, editing, conversion, and execution.

This server follows MCP best practices:

  • Server instructions: Usage guidance is injected into the AI system prompt
  • MCP prompts: Reusable workflow templates for common notebook tasks
  • Bounded toolsets: Focused tools with strict contracts
  • Contracts first: Explicit schemas and side effects

Installation

# Install globally
npm install -g @deepnote/mcp

# Or run directly with npx
npx @deepnote/mcp

Usage with Cursor

Add to Cursor MCP settings:

{
  "mcpServers": {
    "deepnote": {
      "command": "npx",
      "args": ["@deepnote/mcp"]
    }
  }
}

Common settings locations:

  • ~/.cursor/mcp.json
  • ~/.cursor/config/mcp.json

MCP Prompts

The server exposes workflow templates through MCP prompts:

PromptDescription
debug_executionDebug notebook execution using snapshots and reruns
create_notebookCreate a new Deepnote notebook with recommended structure
convert_and_enhanceConvert from Jupyter/other formats and improve notebook structure
fix_and_documentFix issues and add documentation
block_types_referenceQuick reference for block types and metadata
best_practicesBest practices for well-structured interactive notebooks

MCP Resources

The server exposes notebook resources for discovery:

Resource URIDescription
deepnote://examplesExample notebooks (if available in your installation)
deepnote://workspaceAll .deepnote files in the current workspace
deepnote://file/...Individual notebook summary by absolute file path

Available Tools

Reading Tools

ToolDescription
deepnote_readRead/analyze a notebook. Use include to request structure, stats, lint, dag, or all
deepnote_catShow block contents with optional filters
deepnote_validateValidate YAML + schema structure
deepnote_diffCompare two .deepnote files structurally

Writing Tools

ToolDescription
deepnote_createCreate a new .deepnote file from a specification
deepnote_add_blockAdd a block to an existing notebook
deepnote_edit_blockEdit a block's content and/or metadata
deepnote_remove_blockRemove a block by ID
deepnote_reorder_blocksReorder blocks in a notebook
deepnote_add_notebookAdd a new notebook to an existing project

Conversion Tools

ToolDescription
deepnote_convert_toConvert Jupyter/Quarto/Percent/Marimo to .deepnote
deepnote_convert_fromConvert .deepnote to Jupyter/Quarto/Percent/Marimo

Execution Tools

Execution is handled by a single tool:

ToolDescription
deepnote_runRun all notebooks, one notebook, or one block

Scopes:

  • Project level: deepnote_run with only path runs all notebooks
  • Notebook level: pass notebook
  • Block level: pass blockId (optionally also notebook)

deepnote_run supports .deepnote, .ipynb, .py, and .qmd inputs.

Snapshot Tools

Snapshots store outputs separately from source files.

ToolDescription
deepnote_snapshot_listList snapshots for a project
deepnote_snapshot_loadLoad latest or specific snapshot details
deepnote_snapshot_splitSplit source and outputs into separate files
deepnote_snapshot_mergeMerge snapshot outputs back into a source file

Examples

Create a notebook

Use deepnote_create with:
- outputPath: "analysis.deepnote"
- projectName: "Sales Analysis"
- notebooks:
  - name: "Notebook 1"
    blocks:
      - type: "text-cell-h1"
        content: "Sales Analysis"
      - type: "markdown"
        content: "Load data and explore trends"

Add a block and run only that block

1. Use deepnote_add_block with:
   - path: "analysis.deepnote"
   - block: { type: "code", content: "print('hello')" }
2. Use deepnote_run with:
   - path: "analysis.deepnote"
   - blockId: "<new block id>"

Lint and dependency analysis

Use deepnote_read with:
- path: "analysis.deepnote"
- include: ["lint", "dag"]

Convert from Jupyter and inspect

1. Use deepnote_convert_to with inputPath: "notebook.ipynb"
2. Use deepnote_read with:
   - path: "notebook.deepnote"
   - include: ["structure", "stats"]

Manage outputs with snapshots

# Split outputs for version control:
Use deepnote_snapshot_split with path: "analysis.deepnote"

# Inspect latest snapshot:
Use deepnote_snapshot_load with path: "analysis.deepnote"

# Restore outputs:
Use deepnote_snapshot_merge with sourcePath: "analysis.deepnote"

Development

Run from the monorepo root:

# Install dependencies
pnpm install

# Run in development mode
pnpm --filter @deepnote/mcp dev

# Build
pnpm --filter @deepnote/mcp build

# Test
pnpm --filter @deepnote/mcp test

License

Apache-2.0

Keywords

mcp

FAQs

Package last updated on 15 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts