agent-notes-mcp
agent-notes-mcp
agent-notes-mcp 是一个用于从 Codex 等 MCP 客户端安全地搜索和编辑个人 Markdown 笔记的本地 stdio MCP 服务器。
它使用文件名、YAML frontmatter 和 Markdown 正文的常规全文搜索。不需要向量数据库或嵌入模型。
主要功能
在配置好的 root 内搜索、列出和读取 Markdown 笔记
在可写 root 内创建、追加、替换和移动笔记
替换和移动时基于 SHA-256 的冲突检测
安全地批量更新明确标记的 Markdown 块
任意批量更新、记录更新时间、 activity log
不提供删除操作和网络监听
访问边界和更新时的保证请参阅 安全模型。
Related MCP server: Notes — local markdown knowledge base
环境要求
Python 3.14 及以上
安装
从本地 checkout 安装时:
uv tool install .从 GitHub 的 main 分支安装时:
uv tool install git+https://github.com/mitszo/agent-notes-mcp.git如需指定某个提交或标签,请在 URL 末尾追加 @<ref>。
配置
复制配置示例,并将各项路径替换为自己管理的目录。
mkdir -p ~/.config/agent-notes-mcp
cp config.example.toml ~/.config/agent-notes-mcp/config.tomlread_roots 允许搜索和读取。write_roots 允许搜索、读取和编辑,并且必须放在可读的 root 内部。一开始请从 inbox 或 memos 这样范围较窄的可写 root 开始。
注册到 Codex
将安装好的命令注册为 stdio MCP 服务器。
[mcp_servers.agent_notes]
command = "agent_notes"如果使用源码 checkout,请显式指定配置文件。
[mcp_servers.agent_notes]
command = "uv"
args = ["run", "agent_notes", "--config", "/absolute/path/to/config.toml"]最初的 5 分钟
在 Codex 中打开新会话,首先按如下方式提出请求。
agent_notes で設定済みの root を確認し、ノートを検索できるか試してください。Codex 可以使用 list_roots、search_notes、read_note 等 MCP 工具。尝试写入时,请让它在你配置所允许的窄 write_roots 内创建一个新的测试用 Markdown 文件。
如果要在多个开发仓库中使用笔记进行交接,请参阅 Codex 的项目上下文示例 和可复制并按需调整的 技能示例。这是可选做法,服务器不会强制规定笔记的布局或格式。
安全更新
在替换或移动现有笔记之前,先读取该笔记,并将返回的 sha256 指定为 expected_sha256。如果在此期间内容发生变化,服务器将拒绝更新,而不会覆盖。
如需限定笔记内允许更新的范围,请用管理块将其包围。
<!-- agent-notes:managed next-actions -->
## 次の行動
- 下書きを確認する
<!-- /agent-notes:managed next-actions -->update_managed_blocks 只更新结构验证通过的管理块。batch_update_notes 会先验证所有目标更新,然后才开始写入。
开发
uv sync --all-groups
uv run pytest许可证
关于开发
本项目使用 Codex 提供开发辅助。发布前的内容确认和判断均由维护者负责。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables reading, writing, and searching a local markdown-based memory store using MCP tools, with safety checks and index consistency.MIT
- AlicenseNot gradedqualityAmaintenanceLocal markdown notes for any MCP client: ranked + semantic search, tags, todos, a wiki-link knowledge graph, daily notes, templates, and slash-command workflows. Pure-JS, local, no API keys.101MIT
- AlicenseAqualityAmaintenanceMCP server for managing a local, domain-agnostic knowledge base using Markdown notes with frontmatter. Enables AI agents to capture, read, search, link, and maintain notes with atomic writes and privacy controls.13MIT
- AlicenseAqualityAmaintenanceLocal MCP server for querying and maintaining a Markdown vault. Provides full-text search, backlinks, note retrieval, and optional confined write tools, without sending the whole vault to the client context.14Apache 2.0
Related MCP Connectors
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mitszo/agent-notes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server