MCP server that wraps the Obsidian CLI. Gives AI assistants (Claude Code, etc.) structured access to your vault without opening full shell access.
Requires Obsidian 1.8+ with the CLI enabled and running.
36 tools covering the safe, useful parts of the CLI:
- Read — read notes, outlines, file info, search
- Write — create, append, prepend, properties, templates
- Daily notes — read, append, prepend, path
- Organization — files, folders, move, rename, delete (trash by default)
- Graph — tags, backlinks, orphans, unresolved links
- Tasks — list, toggle
- Vault — bookmarks, templates, commands, plugins, sync status
eval— arbitrary JS executiondev:*— Chrome DevTools Protocol, DOM, console, screenshotsplugin:install/uninstall— userun_commandif needed
- Python 3.11+
- Obsidian running with CLI enabled
- Works from Windows, macOS, and Linux/WSL2
git clone <this-repo> obsidian-mcp
cd obsidian-mcp
python3 -m venv .venv
.venv/bin/pip install "mcp[cli]>=1.0.0"On Windows, replace .venv/bin/pip with .venv\Scripts\pip.
Add to ~/.claude.json under mcpServers:
{
"mcpServers": {
"obsidian": {
"command": "/path/to/obsidian-mcp/.venv/bin/python",
"args": ["/path/to/obsidian-mcp/server.py"],
"env": {
"OBSIDIAN_VAULT": "My Vault"
}
}
}
}Restart Claude Code to pick up the change.
| Variable | Required | Description |
|---|---|---|
OBSIDIAN_VAULT |
No | Vault name for multi-vault setups. If omitted, uses the active vault. |
OBSIDIAN_CLI |
No | Path to the CLI binary. Auto-detected if omitted. |
- Windows —
C:\Program Files\Obsidian\Obsidian.com - macOS —
/Applications/Obsidian.app/Contents/MacOS/obsidian-cli - WSL2 —
/mnt/c/Program Files/Obsidian/Obsidian.com - Linux —
obsidianon PATH (snap, AppImage, etc.)
Set OBSIDIAN_CLI if your install is in a non-standard location.