Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"url": "https://deepnote.com"
},
"metadata": {
"description": "Deepnote plugin for Claude Code: hosted Deepnote MCP server plus skills for workspace search, notebooks, links, integrations, docs, and notebook runs."
"description": "Deepnote plugin for Claude Code: hosted Deepnote MCP server plus skills for workspace search, notebooks, links, integrations, docs, notebook runs, and schedules."
},
"plugins": [
{
"name": "deepnote",
"source": "./plugins/deepnote",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, and run notebooks from Claude.",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, run notebooks, and manage notebook schedules from Claude.",
"category": "Data & Analytics",
"keywords": [
"deepnote",
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Use Deepnote from Codex, Claude Code, or other AI agents. This repo serves all Deepnote agent plugins.

The plugin connects the agent to the hosted Deepnote MCP server at `https://deepnote.com/mcp` and ships skills that teach it how to work with Deepnote workspaces, projects, notebooks, integrations, apps, docs, and notebook runs.
The plugin connects the agent to the hosted Deepnote MCP server at `https://deepnote.com/mcp` and ships skills that teach it how to work with Deepnote workspaces, projects, notebooks, integrations, apps, docs, notebook runs, and schedules.

## Install

Expand Down Expand Up @@ -47,6 +47,7 @@ Through the hosted MCP server the agent can:
- Create, attach, and detach integrations, inspect cached table structure, and map integration usage
- Read and write small text files in a project, copy files between projects, delete files, and generate canonical project or notebook URLs
- Start notebook runs, optionally with input values or on a chosen machine type, and read run history, status, errors, and snapshot output
- List, add, update, and remove recurring notebook schedules with their own timing, names, and input values
- Choose a project's environment (Docker image), check whether its machine is running and how big it is, start, stop, or restart it, and change its machine type or idle shutdown
- Read Deepnote docs
- Build data apps and Streamlit apps, each in a project of its own
Expand All @@ -70,6 +71,8 @@ In Claude Code and Codex the agent can also preview a data app's page locally ag
- `Build a data app that shows weekly signups by country.`
- `Build a Streamlit app for exploring sales by region.`
- `Copy utils/helpers.py from this project into my Sales Analysis project.`
- `List the schedules for this Deepnote notebook.`
- `Schedule this notebook every weekday at 09:00 Europe/Prague.`
- `Look up the Deepnote docs for scheduled notebooks.`

## Local `.deepnote` files
Expand Down
4 changes: 2 additions & 2 deletions plugins/deepnote/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "deepnote",
"displayName": "Deepnote",
"version": "0.9.2",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, and run notebooks from Claude.",
"version": "0.10.0",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, run notebooks, and manage notebook schedules from Claude.",
"author": {
"name": "Deepnote",
"url": "https://deepnote.com"
Expand Down
6 changes: 3 additions & 3 deletions plugins/deepnote/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "deepnote",
"version": "0.9.2",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, and run notebooks from ChatGPT and Codex.",
"version": "0.10.0",
"description": "Search Deepnote workspaces, inspect and edit projects and notebooks, manage integrations and project machines, build data apps and Streamlit apps, generate links, read docs, run notebooks, and manage notebook schedules from ChatGPT and Codex.",
"author": {
"name": "Deepnote",
"url": "https://deepnote.com"
Expand All @@ -22,7 +22,7 @@
"interface": {
"displayName": "Deepnote",
"shortDescription": "Analyze data with Deepnote",
"longDescription": "Work with Deepnote workspaces, projects, and notebooks from ChatGPT and Codex. Search resources, inspect projects, read, write, copy, and delete project files, manage integrations, choose project environments, start, stop, and resize project machines, generate project and notebook links, edit notebook structure, build data apps and Streamlit apps, read Deepnote docs, run notebooks with optional inputs, and summarize run history, status, and outputs. Requires a Deepnote account with access to the workspace and permission for each requested action; a workspace admin must enable MCP access.",
"longDescription": "Work with Deepnote workspaces, projects, and notebooks from ChatGPT and Codex. Search resources, inspect projects, read, write, copy, and delete project files, manage integrations, choose project environments, start, stop, and resize project machines, generate project and notebook links, edit notebook structure, build data apps and Streamlit apps, read Deepnote docs, run notebooks with optional inputs, manage recurring notebook schedules, and summarize run history, status, and outputs. Requires a Deepnote account with access to the workspace and permission for each requested action; a workspace admin must enable MCP access.",
"developerName": "Deepnote",
"category": "Data & Analytics",
"capabilities": [
Expand Down
5 changes: 3 additions & 2 deletions plugins/deepnote/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Deepnote

Work with your Deepnote workspace from Claude. Search projects, read and edit notebooks, run them and read the results, manage integrations and project machines, and build data apps and Streamlit apps.
Work with your Deepnote workspace from Claude. Search projects, read and edit notebooks, run them and read the results, manage notebook schedules, integrations, and project machines, and build data apps and Streamlit apps.

## What the plugin includes

- A connection to the hosted Deepnote MCP server at `https://deepnote.com/mcp`. You sign in with your Deepnote account through OAuth, and Claude can only see and change what your account already has access to.
- Seven skills that teach Claude how to use the server well: shared rules and the tool catalogue, workspace and project inspection, notebooks and blocks, notebook runs and machines, project and notebook links, data apps, and Streamlit apps.
- Seven skills that teach Claude how to use the server well: shared rules and the tool catalogue, workspace and project inspection, notebooks and blocks, notebook runs and schedules (including machines), project and notebook links, data apps, and Streamlit apps.

If you already added the Deepnote connector in Claude, the plugin uses the same server, so you see one set of Deepnote tools.

Expand All @@ -29,6 +29,7 @@ Then run `/mcp`, choose the Deepnote server, and sign in.
- Search my Deepnote workspace for customer retention notebooks.
- Inspect this Deepnote notebook and summarize it.
- Run this Deepnote notebook with customer_name set to Acme.
- List this notebook's schedules and when they run.
- Show me where this Deepnote integration is used.
- Build a data app that shows weekly signups by country.

Expand Down
16 changes: 10 additions & 6 deletions plugins/deepnote/skills/deepnote-mcp/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: deepnote-mcp
description: Use when a task mentions Deepnote, the Deepnote MCP server, Deepnote docs, projects, workspaces, notebooks, blocks, integrations, API keys, files, apps, or notebook runs. Shared rules for all Deepnote skills.
description: Use when a task mentions Deepnote, the Deepnote MCP server, Deepnote docs, projects, workspaces, notebooks, blocks, integrations, API keys, files, apps, notebook runs, or schedules. Shared rules for all Deepnote skills.
---

# Deepnote MCP

## When To Use Deepnote

Use the Deepnote MCP server as the primary interface for hosted Deepnote state. Prefer it over browser automation, screenshots, ad hoc HTTP calls, or local filesystem guesses whenever the user asks about Deepnote projects, notebooks, blocks, integrations, files, apps, search, or notebook runs. The one exception is previewing a data app page locally with the script in `deepnote-data-apps`.
Use the Deepnote MCP server as the primary interface for hosted Deepnote state. Prefer it over browser automation, screenshots, ad hoc HTTP calls, or local filesystem guesses whenever the user asks about Deepnote projects, notebooks, blocks, integrations, files, apps, search, notebook runs, or schedules. The one exception is previewing a data app page locally with the script in `deepnote-data-apps`.

Local `.deepnote` files are a separate surface. These MCP tools only see projects in Deepnote Cloud; they do not read or write `.deepnote` files in the user's repository. For those, use the open-source `deepnote` CLI (`npm install -g @deepnote/cli`). `deepnote install-skills` installs a skill with the `.deepnote` format and the CLI reference. Use `deepnote sync` to pull Cloud projects into local files and push local edits back, and `deepnote open` to upload a local file to Deepnote Cloud. Source and docs: https://github.com/deepnote/deepnote.

Expand Down Expand Up @@ -59,6 +59,10 @@ This is the authoritative summary of tool arguments. Workflow skills add only th
- `create_run`: start a notebook run by `notebookId`. It accepts optional `inputs` keyed by notebook input name, `detached` (default `true`), `detachedRunStorageMode` (`read_write` or `readonly`, detached runs only), `machineType` (an `id` from `list_machine_types`, detached runs only; defaults to the project's machine type), a non-empty unique `blockIds` list (live runs only), and `runDependentBlocks` (requires `blockIds`). For targeted execution, set `detached: false` and pass `blockIds`; omit `blockIds` to run the full notebook.
- `list_notebook_runs`: list historical notebook runs newest first, with `pageSize` (default 20) and `pageToken` pagination. Rows carry `runId`, `notebookId`, `status`, `createdAt`, and `completedAt`.
- `get_run`: fetch run `status`, `error`, `createdAt`, `completedAt`, and run snapshots. Optional `snapshotDelivery` is `"downloadUrl"` (the default when omitted), `"inline"`, or `"blocks"`. With `"blocks"`, outputs longer than 16,384 characters as JSON are replaced by a notice, with `outputHead` and `outputTail` showing how they start and end; `fullOutputs: true` returns them whole.
- `list_schedules`: list a notebook's schedules by `notebookId`, oldest first, in one unpaginated `schedules` array. Each schedule has `id`, `notebookId`, `cron`, `timezone`, `name`, `inputs`, `nextRunAt`, `isPaused`, `pauseReason`, `updatesNotebook`, `createdAt`, and `updatedAt`. The `id` is a string used as `scheduleId` for changes and deletion. `nextRunAt` can be `null`; `pauseReason` is `access-revoked`, `consecutive-failures`, or `null`. View access is enough.
- `create_schedule`: add a schedule next to a notebook's existing schedules. Requires `notebookId` and `cron`; accepts optional `timezone` (an IANA timezone, default `UTC`), `name` (1–100 characters after collapsing whitespace and trimming, or `null`), and `inputs` keyed by the input `name` from `get_notebook`. Inputs not listed use the notebook's saved values. The new schedule does not update the notebook with its results. Workspaces without multiple schedules reject a second schedule or non-empty input overrides.
- `update_schedule`: change a schedule by `scheduleId`. Requires at least one of `cron`, `timezone`, `name`, or `inputs`; omitted fields stay unchanged. Set `name: null` to remove the name. `inputs` replaces the entire override map; `null` or `{}` clears it. Setting non-empty overrides disables notebook output syncing; clearing them does not restore it. Any successful update resumes a paused schedule and makes the caller its owner, even when a value is unchanged.
- `delete_schedule`: remove a single schedule by `scheduleId` from `list_schedules`. The deleted schedule cannot be restored. Unlike creating or updating a schedule, deleting works without a scheduling entitlement, but still requires Execute access to the project or higher.
- `list_machine_types`: list the machine types (sizes) projects can run on, with `id`, `name`, `vCpus`, `memoryGiB`, `gpuCount`, and `available` plus `unavailableReason` for the workspace's plan and free quota, plus the `sandboxEnvironments` and which one new projects use. A custom machine (`custom:<id>`) only works for projects in its sandbox environment.
- `get_machine`: get the project machine's `status` (`stopped`, `starting`, `running`, `stopping`, or `error`), `error`, `startingPhase` (what a `starting` machine waits for: `waiting_for_capacity` or `pulling_image`), machine `type` with its vCPUs, memory, and GPUs, `sandboxEnvironmentId`, and `idleShutdownSeconds` by `projectId`. This is the machine the editor, live runs, and hosted Streamlit apps use; detached runs use machines of their own.
- `start_machine`, `stop_machine`, `restart_machine`: start, stop, or restart the project machine by `projectId`. They return without waiting, so poll `get_machine`. Starting a running machine or stopping a stopped one does nothing. Stopping or restarting clears kernel state for everyone working in the project; restarting recovers a machine in the `error` status.
Expand All @@ -82,12 +86,12 @@ Before telling a user that a Deepnote action is impossible, check the tools the
- Do not expose bearer tokens, integration credentials, or secret notebook input values. Refer to secret names only, and never repeat connection `metadata` returned by `create_integration`.
- Avoid downloading or printing large datasets. Sample, summarize, or aggregate unless the user explicitly asks for an export.
- Do not paste `snapshotDownloadUrl` values into answers unless the user asks for a download or file handoff. Snapshot handling is defined in `deepnote-runs`.
- Treat notebook execution as potentially stateful and costly.
- Treat resource creation, notebook duplication or renaming, block edits, file writes and copies, deleting projects, notebooks, blocks, or files, integration creation or attachment changes, app creation, data app publishing, environment, folder, and sandbox environment changes, and machine type or idle shutdown changes as persistent writes. Do them only when the user asked, resolve targets carefully, and report affected IDs.
- Delete only what the user named, and say what can be undone: `delete_notebook` can be restored from version history and `delete_project` from the trash for 30 days, but a deleted project's schedules are gone. `delete_file` cannot be undone, nor can the old content `write_file` replaces with `overwrite: true`.
- Treat notebook execution, including scheduled runs, as potentially stateful and costly.
- Treat resource creation, notebook duplication or renaming, block edits, file writes and copies, deleting projects, notebooks, blocks, or files, schedule changes, integration creation or attachment changes, app creation, data app publishing, environment, folder, and sandbox environment changes, and machine type or idle shutdown changes as persistent writes. Do them only when the user asked, resolve targets carefully, and report affected IDs.
- Delete only what the user named, and say what can be undone: `delete_notebook` can be restored from version history and `delete_project` from the trash for 30 days, but a deleted project's schedules are gone. `delete_schedule` and `delete_file` cannot be undone, nor can the old content `write_file` replaces with `overwrite: true`.
- A running machine uses machine time. Start, stop, or restart it, or change its type or the project's environment, only when the user asked; a live run the user asked for may start it. Stopping or restarting it, changing its type or sandbox environment with `restart: true`, and changing the project's environment clear kernel state for everyone working in the project, so say that kernel state will be lost.
- If a tool returns `isError`, surface the user-facing error message concisely.
- Capability boundary: the hosted server can create folders, integrations, and Streamlit apps; create and delete projects, notebooks, and blocks; rename and duplicate notebooks; update and reorder blocks; read and write small text-based project files, copy files between projects, and delete files; attach and detach integrations; publish and unpublish data apps; mint short-lived viewer tokens to preview a data app page locally; move a project to another folder and change its environment; and start, stop, restart, or resize the project machine. It cannot make a data app public, read or upload large files or big binary blobs, delete folders or integrations, delete a Streamlit app other than by deleting its entrypoint file, move notebooks between projects, create custom environments, or change schedules, whether a data app lets everyone with access see results without running it, permissions, package versions, credentials, or secrets. Check the advertised tools before relying on this boundary.
- Capability boundary: the hosted server can create folders, integrations, and Streamlit apps; create and delete projects, notebooks, and blocks; rename and duplicate notebooks; update and reorder blocks; list, create, update, and delete notebook schedules; read and write small text-based project files, copy files between projects, and delete files; attach and detach integrations; publish and unpublish data apps; mint short-lived viewer tokens to preview a data app page locally; move a project to another folder and change its environment; and start, stop, restart, or resize the project machine. It cannot make a data app public, read or upload large files or big binary blobs, delete folders or integrations, delete a Streamlit app other than by deleting its entrypoint file, move notebooks between projects, create custom environments, directly pause schedules or set schedule notifications or output syncing, or change whether a data app lets everyone with access see results without running it, permissions, package versions, credentials, or secrets. Check the advertised tools before relying on this boundary.

## Response Style

Expand Down
4 changes: 2 additions & 2 deletions plugins/deepnote/skills/deepnote-notebooks/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Use when reading or reviewing Deepnote notebooks, creating or dele

# Deepnote Notebooks

Tool arguments are defined in `deepnote-mcp`. Running a notebook is `deepnote-runs`. Links follow `deepnote-links`.
Tool arguments are defined in `deepnote-mcp`. Running or scheduling a notebook is `deepnote-runs`. Links follow `deepnote-links`.

## Inspection Workflow

Expand All @@ -16,7 +16,7 @@ Tool arguments are defined in `deepnote-mcp`. Running a notebook is `deepnote-ru
5. Call `get_block` when one block's `metadata` (input configuration, callout color, todo state) or its current output in the editor matters; `get_notebook` returns neither. Pass `includeOutputs: true` for the output, and `fullOutputs: true` only when the user needs a long output whole.
6. When SQL connection usage matters, confirm it with `get_block`, `list_integrations`, and the integration usage tools in `deepnote-workspace` instead of inferring from names; use `get_integration` for cached table and column context.
7. Ground reviews and explanations in specific notebook or block names and IDs when useful.
8. For recent, failed, or historical runs, use `deepnote-runs`.
8. For recent, failed, or historical runs, or details of a notebook's schedules, use `deepnote-runs`.

## Inspection Output

Expand Down
Loading