
Open Notebook
io.github.PiotrAleksander由 GitHub 账号 PiotrAleksander 发布v0.1.1更新于 Oct 24, 2026
MCP server that wraps the Open Notebook API
概览
一个封装 Open Notebook API 的本地 MCP 服务器,让助手在 Open Notebook 中管理笔记本、来源、笔记、搜索、AI 模型和聊天会话。
- 可以做什么
- 创建、读取、更新和删除笔记本及其中的来源与笔记,来源支持链接、上传和文本并可生成嵌入。用向量或文本搜索笔记本内容,并调用已配置的 AI 模型回答问题。列出、创建和删除 AI 模型,读取默认模型设置。创建、更新和删除聊天会话,获取聊天上下文并发送消息。通过 search_capabilities 元工具发现可用工具。
- 适用场景
- 当你运行着 Open Notebook 实例,希望助手整理研究笔记本、添加和整理来源与笔记、检索这些内容,或在其上做问答和聊天而无需切换应用时使用。
- 运行要求
- 本地 Python 3.12+ 环境并安装 open-notebook-mcp 包(uv 或 pip),以及一个可访问的 Open Notebook 实例,其地址通过 OPEN_NOTEBOOK_URL 设置。若实例设置了 APP_PASSWORD,对应密码填入 OPEN_NOTEBOOK_PASSWORD。需要能访问该实例的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Open Notebook,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Open Notebook MCP Server
An MCP (Model Context Protocol) server that provides tools to interact with the Open Notebook API. This server enables AI assistants like Claude to manage notebooks, sources, notes, search content, and interact with AI models through Open Notebook.
Features
- Notebooks Management: Create, read, update, and delete notebooks
- Sources Management: Add and manage content sources (links, uploads, text)
- Notes Management: Create and organize notes within notebooks
- Search & AI: Search content using vector/text search and ask questions
- Models Management: Configure and manage AI models
- Chat Sessions: Create and manage chat conversations
- Settings: Access and update application settings
- Progressive Disclosure: Efficient tool discovery with
search_capabilities
Installation
Using uv (recommended)
Using pip
Configuration
The server requires configuration to connect to your Open Notebook instance:
Environment Variables
Create a .env file or set these environment variables:
Example Configuration
For local development with default Open Notebook settings:
If you've configured authentication in Open Notebook:
Usage
Running the Server
Development Mode (STDIO)
For local use with AI assistants:
Or using the MCP CLI:
Production Mode (Streamable HTTP)
For remote deployment:
Using with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Discovering Available Tools
The server implements progressive disclosure. Use the search_capabilities tool to discover available functionality:
Example Workflows
Creating and Managing Notebooks
Adding Sources
Creating Notes
Searching and Asking Questions
Chat Sessions
Available Tools
The server provides 39 tools across multiple categories:
Meta Tools
search_capabilities- Progressive tool discovery
Notebooks (5 tools)
list_notebooks,get_notebook,create_notebook,update_notebook,delete_notebook
Sources (5 tools)
list_sources,get_source,create_source,update_source,delete_source
Notes (5 tools)
list_notes,get_note,create_note,update_note,delete_note
Search (3 tools)
search,ask_question,ask_simple
Models (5 tools)
list_models,get_model,create_model,delete_model,get_default_models
Chat (7 tools)
list_chat_sessions,create_chat_session,get_chat_session,update_chat_session,delete_chat_session,execute_chat,get_chat_context
Settings (2 tools)
get_settings,update_settings
Architecture
This server follows MCP best practices:
- Progressive Disclosure: Use
search_capabilitiesto minimize context usage - Context Efficiency: Small outputs by default, with limit parameters
- Dual Transport: Supports both STDIO (local) and Streamable HTTP (remote)
- Error Handling: Structured error messages with actionable hints
- Timeouts: 30-second default timeout for all API requests
- Authentication: Optional Bearer token authentication
Development
Project Structure
Testing
Test the server using the MCP Inspector:
or
This opens an interactive inspector where you can:
- Browse available tools
- Test tool calls
- Inspect responses
- Debug errors
Adding New Tools
To add new tools:
- Add a
Capabilityentry to theCAPABILITIEStuple - Implement the tool function with
@mcp.tool()decorator - Follow naming conventions:
verb_noun(e.g.,list_notebooks) - Include proper docstrings and type hints
- Return structured responses with
request_id
Requirements
- Python 3.12+
- Open Notebook instance (local or remote)
- Dependencies:
mcp[cli]>=1.23.2,httpx>=0.28.1
Contributing
Contributions are welcome! Please ensure:
- Follow the existing code structure and patterns
- Add tools to the
CAPABILITIESindex - Include proper type hints and docstrings
- Test with MCP Inspector before submitting
License
See LICENSE file for details.
Links
Support
For issues related to:
- This MCP server: Open an issue in this repository
- Open Notebook itself: Visit the Open Notebook repository
- MCP protocol: Check the MCP documentation
来源:README.md,提交 a2cddbf
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分