Lists all files and directories in the root directory of your Obsidian vault
Lists all files and directories in a specific Obsidian directory
Return the content of a single file in your vault
Search for documents matching a specified text query across all files in the vault
Insert content into an existing note relative to a heading, block reference, or frontmatter field
Append content to a new or existing file in the vault
Delete a file or directory from your vault
This MCP server enables seamless integration between Claude and your Obsidian knowledge base. It leverages the Obsidian Local REST API community plugin to allow Claude to read, search, and modify files in your vault. With this integration, you can have Claude analyze your notes, create summaries, append new content, and help organize your knowledge base.
The Obsidian Integration MCP allows Claude to interact directly with your Obsidian vault, enabling powerful knowledge management workflows. This integration bridges the gap between Claude's analytical capabilities and your personal knowledge base.
Before using this MCP, you need to:
You can install the Obsidian Integration MCP using the uvx
package manager:
uvx install mcp-obsidian
Add the following configuration to your Claude Desktop config file:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-obsidian": {
"command": "uvx",
"args": [
"mcp-obsidian"
],
"env": {
"OBSIDIAN_API_KEY": "your_api_key_here",
"OBSIDIAN_HOST": "your_obsidian_host"
}
}
}
}
Replace your_api_key_here
with the API key from the Obsidian Local REST API plugin settings. The default host is http://localhost:27123
but you can change it if needed.
Alternatively, you can create a .env
file in your working directory with these variables:
OBSIDIAN_API_KEY=your_api_key_here
OBSIDIAN_HOST=your_obsidian_host
Once installed, you can instruct Claude to interact with your Obsidian vault. Here are some example prompts:
If you encounter issues:
tail -n 20 -f ~/Library/Logs/Claude/mcp-server-mcp-obsidian.log
For more detailed debugging, you can use the MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-obsidian run mcp-obsidian