MCP Notes Server
一个 MCP 服务器,用于管理和持久化笔记,提供 CRUD 操作、笔记总结以及通过 note:// URI 方案进行基于资源的访问。 (Alternatively, a slightly more formal translation:) 一个用于管理和持久化笔记的 MCP 服务器,提供 CRUD 操作、笔记摘要功能,并支持通过 note:// URI 方案进行基于资源的访问控制。
Tools
list-all-notes
Read all stored notes
update-note
Update an existing note
delete-note
Delete an existing note
add-note
Create a new note
README
MCP 笔记服务器
一个用于管理具有持久存储的笔记的模型上下文协议 (MCP) 服务器实现。
<a href="https://glama.ai/mcp/servers/tg4ugmp8jr"><img width="380" height="200" src="https://glama.ai/mcp/servers/tg4ugmp8jr/badge" alt="Notes Server MCP server" /></a>
功能
- 创建、读取、更新和删除笔记
- 使用 JSON 进行持久存储
- 跟踪创建和修改的时间戳
- 通过提示进行笔记总结
- 使用 note:// URI 方案进行基于资源的访问
安装
通过 Smithery 安装
要通过 Smithery 为 Claude Desktop 自动安装笔记:
npx -y @smithery/cli install notes --client claude
手动安装
- 确保您已安装 Python 3.10 或更高版本
- 创建一个虚拟环境:
python -m venv .venv # 在 Unix/MacOS 上: source .venv/bin/activate # 在 Windows 上: .venv\Scripts\activate
- 安装依赖:
pip install MCP
项目结构
notes/
├── __init__.py # 包初始化
├── server.py # 主要服务器实现
├── storage.py # 笔记持久层
├── resources.py # 资源处理 (note:// URIs)
├── prompts.py # LLM 提示生成
└── tools/ # 服务器工具
├── __init__.py # 工具包初始化
├── list_tools.py # 工具列表功能
└── handle_tools.py # 工具处理实现
可用工具
add-note
: 创建一个新笔记list-all-notes
: 显示所有存储的笔记update-note
: 修改现有笔记delete-note
: 删除一个笔记
用法
-
启动服务器:
mcp install src/notes mcp start Notes
-
示例操作:
# 创建一个笔记 await client.call_tool("add-note", { "name": "example", "content": "This is a test note" }) # 列出所有笔记 await client.call_tool("list-all-notes") # 更新一个笔记 await client.call_tool("update-note", { "name": "example", "content": "Updated content" }) # 删除一个笔记 await client.call_tool("delete-note", { "name": "example" })
存储
笔记存储在 notes_storage.json
中,结构如下:
{
"note_name": {
"content": "Note content",
"created_at": "2025-01-12T11:28:16.721704",
"modified_at": "2025-01-12T11:28:16.721704"
}
}
资源访问
可以使用 note://
URI 方案将笔记作为资源访问:
- 列出资源:返回所有可用的笔记作为资源
- 读取资源:使用
note://internal/note_name
访问特定笔记
提示生成
服务器包含一个用于笔记总结的提示生成功能:
- 支持简短和详细的摘要
- 格式化笔记以供语言模型输入
- 可通过 "summarize-notes" 提示使用
开发
要修改或扩展服务器:
- 克隆存储库
- 安装开发依赖项
- 在适当的模块中进行更改
- 在部署之前进行彻底测试
测试
测试应涵盖:
- 基本的 CRUD 操作
- 多笔记处理
- 错误情况
- 资源访问
- 提示生成
许可证
[在此处添加您的许可证]
推荐服务器
Apple MCP Server
通过 MCP 协议与 Apple 应用(如“信息”、“备忘录”和“通讯录”)进行交互,从而使用自然语言发送消息、搜索和打开应用内容。

Notion API MCP Server
使用 Notion API 实现高级待办事项列表管理和内容组织,支持创建数据库、动态筛选和协作任务跟踪等功能。
Todoist MCP Server
将 Claude 与 Todoist 集成,实现自然语言任务管理,支持使用日常语言进行项目和版块组织、任务创建、更新、完成和删除。
Curri MCP Server
通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。
Inkdrop MCP Server
通过模型上下文协议将 Inkdrop 笔记应用与 Claude AI 集成,允许 Claude 在您的 Inkdrop 数据库中搜索、阅读、创建和更新笔记。
Notion MCP Server
通过将 Notion API 作为 LLM 的工具公开,从而实现与 Notion 的交互。这使得可以通过自然语言无缝地进行读取、创建、更新和删除 Notion 页面等操作。

Obsidian MCP REST Server
为人工智能助手提供一个标准化的接口,通过本地 REST API 与 Obsidian vault 进行交互,从而实现笔记的读取、写入、搜索和管理。

MCP Tasks Organizer
一个 MCP 服务器,可以将 Cursor agent 计划转换为结构化的 Markdown 任务列表,并将其组织在您的存储库中,帮助您将 AI 生成的计划和建议作为可执行的规范进行跟踪。

Branch Thinking MCP Server
一个 MCP 服务器,用于通过分支导航思维过程,支持思维交叉引用和优先级跟踪,以增强洞察力生成和结构化想法探索。

MCP-AnkiConnect
一个 MCP 服务器,集成了 Claude 和 Anki 抽认卡,允许用户直接通过对话复习到期卡片并创建新的抽认卡。 (Alternatively, a slightly more formal translation:) 一个 MCP 服务器,整合了 Claude 与 Anki 闪卡功能,使用户能够通过对话直接复习待复习的卡片并创建新的闪卡。 **Explanation of Choices:** * **MCP Server:** I kept this as "MCP 服务器" as it's likely a specific technical term that's best left untranslated unless more context is provided. * **Claude:** Left as "Claude" as it's a proper noun (the name of the AI). * **Anki flashcards:** Translated as "Anki 抽认卡" (chōu rèn kǎ) or "Anki 闪卡" (shǎn kǎ). Both are common translations for "flashcards" in the context of Anki. "抽认卡" is slightly more formal. * **Review due cards:** Translated as "复习到期卡片" (fùxí dàoqí kǎpiàn) or "复习待复习的卡片" (fùxí dài fùxí de kǎpiàn). Both convey the meaning of reviewing cards that are due for review. The second option is slightly more explicit. * **Create new flashcards:** Translated as "创建新的抽认卡" (chuàngjiàn xīnde chōu rèn kǎ) or "创建新的闪卡" (chuàngjiàn xīnde shǎn kǎ). * **Directly through conversation:** Translated as "直接通过对话" (zhíjiē tōngguò duìhuà). The choice between the two options depends on the desired level of formality and explicitness.