ipynb-mcp
Provides tools for managing and executing local Jupyter notebooks, including reading, adding, editing, and running cells, as well as restarting the notebook kernel.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ipynb-mcp Add a code cell to my notebook that prints 'hello' and run it."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ipynb-mcp
ローカルの Jupyter Notebook (.ipynb) にセルを追加・編集し、ノートブックで指定されたカーネル上で単一セルを実行する小さな stdio MCP サーバーです。
セットアップ
Python 3.10 以上と uv を使います。
uv syncipykernel は依存関係に含まれるため、通常はカーネルの追加インストールは不要です。
対象ノートブックの metadata.kernelspec.name が設定されていれば、そのカーネルを使います。未設定の場合は IPYNB_MCP_DEFAULT_KERNEL、次に python3、最後にインストール済みカーネルの名前順で先頭を選びます。
Related MCP server: notebook-agent-mcp
MCP クライアントへの登録
クライアントからこのコマンドを stdio MCP サーバーとして起動するよう設定します。
{
"mcpServers": {
"jupyter-notebook": {
"command": "uv",
"args": [
"--directory",
"C:\\programing\\ipynb-mcp",
"run",
"ipynb-mcp"
]
}
}
}ツール
notebook_info(path): セル一覧とカーネル情報を取得read_cell(path, index): セル内容を取得add_cell(path, source, cell_type="code", index=null): セルを追加。ファイルがなければ新規作成edit_cell(path, index, source, cell_type=null): セル内容と任意で種類を変更run_cell(path, index, timeout_seconds=120): コードセルを実行し、出力をノートブックへ保存restart_kernel(path): カーネルを再起動して変数などの状態を消去
セル番号はすべて 0 始まりです。カーネルはノートブックごとにサーバープロセス内で維持されるため、セル間で変数を引き継げます。サーバーを終了するとカーネルも終了します。
開発時の確認
uv run pytestAvailable Tools
6 toolsadd_cellA
Add a cell. Append when index is omitted. Creates a missing notebook.
Inputs: path (required), source (required), index, cell_type. Returns: object
edit_cellB
Replace a cell's source and optionally its type.
Inputs: path (required), index (required), source (required), cell_type. Returns: object
notebook_infoA
Return notebook metadata and compact summaries of all cells.
Inputs: path (required). Returns: object
read_cellA
Read one cell by its zero-based index, including outputs for code cells.
Inputs: path (required), index (required). Returns: object
restart_kernelA
Restart the notebook's kernel, clearing all in-memory variables.
Inputs: path (required). Returns: object
run_cellB
Execute one code cell in the notebook's persistent default kernel and save outputs.
Inputs: path (required), index (required), timeout_seconds. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: reading metadata, reading a cell, adding, editing, running, or restarting the kernel. There is minimal overlap and an agent can clearly select the right tool for the intended action.
Most tools follow a clear verb_noun pattern: read_cell, add_cell, edit_cell, run_cell, restart_kernel. notebook_info is the only slight deviation, being noun_noun rather than get_notebook_info, but it remains readable and consistent with the overall style.
Six tools is a well-scoped set for notebook manipulation. Each tool serves a clear and necessary purpose without unnecessary bloat.
The core lifecycle of reading, adding, editing, and executing cells is covered, and restart_kernel handles execution-state resets. However, a delete_cell operation is missing, which is a notable gap for editing workflows, and there is no way to reorder cells.
Maintenance
Related MCP Connectors
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Search, read, create and edit pages in your JazzNote workspace, and add comments.
Draw diagrams, build HTML pages and write Markdown in a live editor the user sees.
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to create, read, edit, and execute Jupyter notebook cells, manage kernels, and connect to remote Jupyter servers.2124 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to execute Jupyter notebook cells with persistent kernel state, output persistence, and structured JSON control surface.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, edit, execute cells, and capture outputs from Jupyter notebooks directly within VS Code or Cursor via the Model Context Protocol.5 npm18MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to read, edit, and execute Jupyter notebook files (.ipynb) with live kernel output, without requiring JupyterLab.17MIT