Open Notebook MCP Server
A lightweight MCP (Model Context Protocol) server for Open Notebook — access research notebooks, sources, notes, and semantic search from any MCP-compatible client (Claude Desktop, VS Code, Cline, etc.).
Architecture
This server runs in HTTP proxy mode: it proxies every request through Open Notebook's existing REST API. That means:
- Zero database dependencies — no SurrealDB connection needed
- Minimal install — only depends on
mcpandhttpx - Side-by-side with the web UI — just point it at the API
Installation
uv tool install open-notebook-mcp
Or run without installing:
uvx open-notebook-mcp
After installation, the open-notebook-mcp command is available globally.
Configuration
The server needs to know where your Open Notebook API is running:
| Environment Variable | Default | Description |
|---|---|---|
OPEN_NOTEBOOK_URL |
http://localhost:5055 |
Open Notebook API base URL |
OPEN_NOTEBOOK_PASSWORD |
— | API password (if authentication is enabled) |
OPEN_NOTEBOOK_MCP_PORT |
0 (stdio) |
Set to a port number to run SSE transport instead of stdio |
Usage
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"open-notebook": {
"command": "open-notebook-mcp",
"env": {
"OPEN_NOTEBOOK_URL": "http://localhost:5055",
"OPEN_NOTEBOOK_PASSWORD": "your-password"
}
}
}
}
VS Code
Add to your .vscode/mcp.json:
{
"servers": {
"open-notebook": {
"command": "open-notebook-mcp",
"env": {
"OPEN_NOTEBOOK_URL": "http://localhost:5055",
"OPEN_NOTEBOOK_PASSWORD": "your-password"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
list_notebooks |
List all notebooks with source and note counts |
get_notebook |
Get detailed information about a specific notebook |
get_notebook_context |
Build full notebook context as plain text |
list_sources |
List sources in a notebook with titles and previews |
get_source |
Get full source details including insights |
list_notes |
List notes in a notebook |
search |
Full-text or vector search across all notebooks |
list_source_chat_sessions |
List all chat sessions for a source |
get_source_chat_session |
Get a chat session's full conversation with messages |
Development
cd mcp-server
uv run open-notebook-mcp
Publishing
cd mcp-server
uv build
uv publish
License
MIT
Metadata
Release files for bangbangmao-open-notebook-mcp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bangbangmao_open_notebook_mcp-0.2.1.tar.gz | 5.3 kB | Without provenance | Details for bangbangmao_open_notebook_mcp-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl |
Total release size: 11.4 kB
Release files / bangbangmao_open_notebook_mcp-0.2.1.tar.gz
| Download URL | bangbangmao_open_notebook_mcp-0.2.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a0513d7ae5edf74cadacd13324c921e3fec91d9ed596a3936d6b43051781f59
|
|
BLAKE2b-256 checksum How to use checksums |
5b52a4429289e62adbd2c26f603f6cf3be88e8c7b0b10d3cf7c9fb214532bfee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl
| Download URL | bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d048d56bbc973d36a3f288df55be77d6e18634a6cd2e32cabec6cf6f7bb6f11
|
|
BLAKE2b-256 checksum How to use checksums |
e3edffc374a56ed0423f915aa2d83349a56da6fa96c131e70b032d59ab9528f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bangbangmao-open-notebook-mcp 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.