Skip to main content

MCP (Model Context Protocol) server for Open Notebook — access research notebooks, sources, notes and search via any MCP client (Claude Desktop, VS Code, etc.)

Project description

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 mcp and httpx
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bangbangmao_open_notebook_mcp-0.2.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file bangbangmao_open_notebook_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: bangbangmao_open_notebook_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for bangbangmao_open_notebook_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3a0513d7ae5edf74cadacd13324c921e3fec91d9ed596a3936d6b43051781f59
MD5 ca8d981155a0fb3412e87a5a7c08b3db
BLAKE2b-256 5b52a4429289e62adbd2c26f603f6cf3be88e8c7b0b10d3cf7c9fb214532bfee

See more details on using hashes here.

File details

Details for the file bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for bangbangmao_open_notebook_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d048d56bbc973d36a3f288df55be77d6e18634a6cd2e32cabec6cf6f7bb6f11
MD5 751ec1ca9d1168c87734e97f07aa68c8
BLAKE2b-256 e3edffc374a56ed0423f915aa2d83349a56da6fa96c131e70b032d59ab9528f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page