MCP server for AI assistants to interact with Obsidian vaults
npm install obsidian-mcp~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
json
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp", "/path/to/your/vault", "/path/to/your/vault2"]
}
}
}
`
Replace /path/to/your/vault with the absolute path to your Obsidian vault. For example:
MacOS/Linux:
`json
"/Users/username/Documents/MyVault"
`
Windows:
`json
"C:\\Users\\username\\Documents\\MyVault"
`
Restart Claude for Desktop after saving the configuration. You should see the hammer icon appear, indicating the server is connected.
If you have connection issues, check the logs at:
- MacOS: ~/Library/Logs/Claude/mcp*.log
- Windows: %APPDATA%\Claude\logs\mcp*.log
Development
`bash
Clone the repository
git clone https://github.com/StevenStavrakis/obsidian-mcp
cd obsidian-mcp
Install dependencies
npm install
Build
npm run build
`
Then add to your Claude Desktop configuration:
`json
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/build/main.js", "/path/to/your/vault", "/path/to/your/vault2"]
}
}
}
`
Available Tools
- read-note - Read the contents of a note
- create-note - Create a new note
- edit-note - Edit an existing note
- delete-note - Delete a note
- move-note - Move a note to a different location
- create-directory - Create a new directory
- search-vault - Search notes in the vault
- add-tags - Add tags to a note
- remove-tags - Remove tags from a note
- rename-tag - Rename a tag across all notes
- manage-tags - List and organize tags
- list-available-vaults - List all available vaults (helps with multi-vault setups)
Documentation
Additional documentation can be found in the docs directory:
- creating-tools.md - Guide for creating new tools
- tool-examples.md - Examples of using the available tools
Security
This server requires access to your Obsidian vault directory. When configuring the server, make sure to:
- Only provide access to your intended vault directory
- Review tool actions before approving them
Troubleshooting
Common issues:
1. Server not showing up in Claude Desktop
- Verify your configuration file syntax
- Make sure the vault path is absolute and exists
- Restart Claude Desktop
2. Permission errors
- Ensure the vault path is readable/writable
- Check file permissions in your vault
3. Tool execution failures
- Check Claude Desktop logs at:
- macOS: ~/Library/Logs/Claude/mcp*.log
- Windows: %APPDATA%\Claude\logs\mcp*.log`