obsidian-mcp-server
by smith-and-web·★ 15·综合分 42
让AI助手管理Obsidian知识库的MCP服务器,提供笔记、标签和搜索功能。
概述
这个MCP服务器为AI助手与Obsidian知识库交互提供全面功能。支持笔记和目录的CRUD操作、前置元数据和标签管理、全文搜索功能以及链接分析。服务器支持多种部署方式,包括直接npx执行、Docker容器和本地开发环境。实现了SSE和POST端点的MCP通信,并可选择API密钥进行身份验证。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您使用 Obsidian 作为知识库,并希望 AI 助手通过自然语言命令直接与您的笔记库交互,请选择此服务器。
什么时候不要选它
如果您需要访问其他笔记应用程序,如 Notion 或 Roam Research,请不要选择此服务器,因为它专门为 Obsidian 笔记库设计。
此 server 暴露的工具
从 README 抽取出 12 个工具read-noteRead note contents (supports frontmatterOnly for efficiency)
create-noteCreate a new note
edit-noteReplace note contents
write-noteWrite with modes: overwrite, append, or prepend
get-frontmatterGet YAML frontmatter as JSON
add-tagsAdd tags to frontmatter or inline
search-vaultFull-text search with context
get-backlinksFind notes linking to a note
find-broken-linksFind unresolved wiki-links
list-vaultList files and directories
list-tagsList all tags with counts
find-replaceBulk find and replace
可对比工具
安装
安装
**使用npx快速启动:**
VAULT_PATH=/path/to/your/vault npx @smith-and-web/obsidian-mcp-server**Docker部署:**
docker run -d \
--name obsidian-mcp \
-v /path/to/your/vault:/vault:rw \
-p 3001:3000 \
-e VAULT_PATH=/vault \
ghcr.io/smith-and-web/obsidian-mcp-server:latest**Claude Desktop配置:**
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3001/sse"]
}
}
}FAQ
- 是否需要身份验证?
- 身份验证是可选的。当设置API_KEY环境变量时,所有端点都需要通过Bearer令牌或查询参数进行身份验证。
- 除了Claude,我还能与其他AI助手一起使用吗?
- 可以,任何兼容MCP的客户端都可以使用mcp-remote工具或直接连接到SSE端点来连接到此服务器。
obsidian-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。