mcp-notes-server
Provides an AI agent with a searchable markdown notes vault, offering tools to create, read, list, search, update, and delete notes stored as plain .md files.
README
mcp-notes-server
An MCP server that gives an AI agent a searchable
markdown notes vault: six tools over a flat directory of .md files with YAML-style
frontmatter.
Notes stay plain markdown on disk. Nothing is locked in a database, so the same files
work with your editor, grep, and git.
~/notes/
├── pad-thai.md
├── sourdough-starter.md
└── weekly-review.md
Tools
| Tool | Description |
|---|---|
create_note |
Create a note. Returns the generated slug. |
read_note |
Read one note in full, by slug. |
list_notes |
Summaries (no bodies), newest first, optionally filtered by tag. |
search_notes |
Ranked full-text search with snippets. |
update_note |
Patch title / body / tags. The slug never changes. |
delete_note |
Delete a note by slug. |
Install
npm install
npm run build
Use it with an MCP client
Add it to your client's server config — for Claude Desktop, claude_desktop_config.json:
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["/absolute/path/to/mcp-notes-server/dist/src/index.js", "--vault", "/absolute/path/to/notes"]
}
}
}
The vault directory is resolved in this order: --vault <dir>, then $NOTES_VAULT,
then ~/notes. It is created on startup if it does not exist.
Design notes
Slugs are the identity, and they are validated. A note lives at <vault>/<slug>.md,
and every slug is checked against /^[a-z0-9]+(?:-[a-z0-9]+)*$/ before it reaches the
filesystem. That is what makes read_note({slug: "../../.ssh/id_rsa"}) impossible rather
than merely unlikely — an allowlist, not an escaping pass. Slugs are also stable across
updates: renaming the file when the title changes would invalidate any slug the model is
still holding from an earlier tool call.
Tool errors are data, not exceptions. "No note with slug X" comes back as a normal
tool result with isError: true, so the model reads it and corrects itself. If it were
thrown, the client would see a protocol error, which the model cannot recover from.
Genuine bugs (anything that is not a VaultError) are still thrown, so they stay loud.
Search is weighted term frequency. A term in the title counts triple and a term in a
tag counts double, so searching sourdough ranks a note about sourdough above one that
mentions it in passing. It is deliberately simple — no index to keep in sync, and a vault
of a few thousand notes scans in milliseconds.
The vault knows nothing about MCP. src/vault.ts is plain filesystem code, src/server.ts
is the MCP binding, and src/index.ts is the stdio entry point. That split is why the
vault can be tested directly and the server can be tested through a real MCP client over
an in-memory transport, with no subprocess and no mocks.
Development
npm test # 46 tests, vitest
npm run typecheck # tsc --noEmit
npm run build # emit to dist/
Tests cover the vault directly (test/vault.test.ts) and the server end to end through a
real MCP Client over InMemoryTransport (test/server.test.ts), so tool schemas,
argument validation, and result shapes are all exercised — not just the logic behind them.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。