Obsidian知识库集成
STDIO用于Obsidian笔记搜索的MCP服务器
用于Obsidian笔记搜索的MCP服务器
Model Context Protocol server for Obsidian vault integration. This allows Claude Desktop (or any MCP client) to search and read your Obsidian notes.
brew install node
)~/Library/Application Support/Claude/claude_desktop_config.json
You can find this through the Claude Desktop menu:
Open Claude Desktop
Click Claude on the Mac menu bar
Click "Settings"
Click "Developer"
Add the following to your configuration:
{ "tools": { "obsidian": { "command": "npx", "args": ["-y", "@kazuph/mcp-obsidian"], "env": { "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault" } } } }
Note: Replace /path/to/your/obsidian/vault
with your actual Obsidian vault path.
brew install node
)npm install -g tsx
)git clone https://github.com/kazuph/mcp-obsidian.git cd mcp-obsidian npm install npm run build
Make sure Claude Desktop is installed and running.
Install tsx globally if you haven't:
npm install -g tsx # or pnpm add -g tsx
~/Library/Application Support/Claude/claude_desktop_config.json
You can easily find this through the Claude Desktop menu:
Add the following to your MCP client's configuration:
{ "tools": { "obsidian": { "args": ["tsx", "/path/to/mcp-obsidian/index.ts"], "env": { "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault" } } } }
obsidian_read_notes
: Read the contents of multiple notes. Each note's content is returned with its path as a reference.obsidian_search_notes
: Search for notes by name (case-insensitive, supports partial matches and regex).obsidian_read_notes_dir
: List the directory structure under a specified path.obsidian_write_note
: Create a new note at the specified path.