mcp-obsidian
by Piotr1215·★ 22·综合分 42
一个安全的MCP服务器,无需Obsidian应用即可直接访问Obsidian知识库。
概述
这个MCP服务器提供对Obsidian知识库的直接文件系统访问,区别于需要Obsidian应用和REST API插件的其他解决方案。它提供丰富的功能,包括支持正则表达式的搜索功能、元数据提取和MOC发现,以增强导航体验。服务器采用安全优先的设计,包含路径遍历预防和输入验证。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要直接访问 Obsidian 笔记库而不需要运行 Obsidian 应用时,特别是用于自动化工作流或与 obsidian.nvim 等 vim 设置集成时,选择此服务器。
什么时候不要选它
如果您需要远程访问 Obsidian 笔记库,不要选择此服务器,因为它仅适用于本地文件系统,或者您需要仅通过 REST API 可用的 Obsidian 插件集成。
此 server 暴露的工具
从 README 抽取出 9 个工具search-vaultSearch for content across all notes in your vault with advanced query options.
search-by-titleSearch for notes by their H1 title.
list-notesList all markdown files in your vault or a specific directory.
read-noteRead the complete content of a specific note.
write-noteCreate or update a note with new content.
delete-noteDelete a note from your vault.
search-by-tagsFind notes containing specific tags.
get-note-metadataGet metadata for one or all notes without reading full content.
discover-mocsDiscover Maps of Content (MOCs) to understand your vault's knowledge structure.
可对比工具
安装
# 安装依赖
npm install
# 添加到Claude Desktop
claude mcp add obsidian -s user -- node /path/to/mcp-obsidian/src/index.js /path/to/your/vaultClaude Desktop配置文件中的配置(例如,~/.claude.json):
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/path/to/mcp-obsidian/src/index.js", "/path/to/your/vault"]
}
}
}FAQ
- 这需要Obsidian应用运行吗?
- 不需要,这个服务器直接在磁盘上处理Obsidian知识库文件,无需安装或运行Obsidian应用程序。
- 我可以将此与obsidian.nvim一起使用吗?
- 可以,这个服务器专门设计为可以与使用obsidian.nvim的设置一起工作,obsidian.nvim是一个Neovim插件,提供类似Obsidian的功能,无需Obsidian应用。
mcp-obsidian 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。