I
Ipynb MCP
作者 @KidiXDev
MCP server by KidiXDev
创建于 5/8/2026
更新于 about 14 hours ago
README
Repository documentation and setup instructions
ipynb-mcp
Go-based MCP server for safe .ipynb notebook editing through explicit tools.
The server exposes notebook operations without returning raw notebook JSON to the assistant. Notebook JSON parsing, validation, and writes are handled internally.
Features
- Read notebook as human-readable preview (
read_notebook) - Token-efficient output previews with truncation controls
- Chunked output retrieval for large code outputs (
read_cell_output) - Create notebook with nbformat
4.5(create_notebook) - Insert/update markdown and code cells with explicit tools
- Delete cells by index
- Index and extension validation with clear errors
- Safe file writes (temp file + replace)
- Preserves notebook-level metadata and unrelated cell fields where possible
Tools
read_notebookcreate_notebookinsert_markdown_cellinsert_code_cellupdate_markdown_cellupdate_code_celldelete_cellread_cell_output
Run
go run .
The server uses stdio transport.
Install
Build a local binary:
go build -o ipynb-mcp .
Then configure your AI client to run the binary as an MCP stdio server.
Prebuilt binaries are also published in GitHub Releases for:
- Windows (
amd64,arm64) - Linux (
amd64,arm64) - macOS / Darwin (
amd64,arm64)
See full per-client setup:
docs/AI_TOOLS_SETUP.md
Example MCP Config (Local)
{
"mcpServers": {
"ipynb": {
"command": "go",
"args": ["run", "."],
"cwd": "/path/to/ipynb-mcp"
}
}
}
You can also use a built binary:
{
"mcpServers": {
"ipynb": {
"command": "/path/to/ipynb-mcp/ipynb-mcp"
}
}
}
Tests
go test ./...
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/KidiXDev/ipynb-mcp
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"kidixdev-ipynb-mcp": {
"command": "git",
"args": [
"clone",
"https://github.com/KidiXDev/ipynb-mcp"
]
}
}
}