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.0.tar.gz (5.1 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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bangbangmao_open_notebook_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 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.0.tar.gz
Algorithm Hash digest
SHA256 8b6adb48675a7ed173b696815826a05d283a58cd44b8ab9737d731b39c498738
MD5 cf189e6e0bc91501995ba4946484b54a
BLAKE2b-256 6c2041067a5683d6d9e5386995e90862eb8d0b87fa4234a624c1abd353f07de1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bangbangmao_open_notebook_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0961afbfe6302775e226d262be881ab96ce33abfc6fdfcfeca684a6c90866c62
MD5 8e012ce2e2a40f61904ae1d398e265ec
BLAKE2b-256 89a28d304e1c0ec650406e17c789a5ec87267e442e78b51733ec3055df99fac3

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