obsidian-mcp
Obsidian MCP
An MCP (Model Context Protocol) server that gives AI assistants (Claude, Cursor, etc.) access to your Obsidian vault. Navigate folders, read notes, create, edit, move, rename and delete them — all from your AI chat.
Requirements
Python 3.10+
uv (recommended) or pip
An Obsidian vault on your local machine
Installation
# Clone the repo
git clone https://github.com/your-username/obsidian-mcp
cd obsidian-mcp
# Copy the env template and set your vault path
cp .env.example .envEdit .env and set your vault path:
OBSIDIAN_VAULT_PATH="/Users/you/Documents/MyVault"To find your vault path in Obsidian: Settings → About → Vault path.
Running the server
Development (with MCP Inspector UI)
uv run mcp dev server.pyThis opens the MCP Inspector in your browser where you can test all tools interactively.
Production
uv run server.pyConnecting to Cursor
Add this to your .cursor/mcp.json (or Cursor global MCP settings):
{
"mcpServers": {
"obsidian": {
"command": "python",
"args": ["/absolute/path/to/obsidian-mcp/server.py"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}Replace /absolute/path/to/obsidian-mcp/server.py with the actual path to server.py on your machine, and /path/to/your/vault with your vault path (find it in Obsidian: Settings → About → Vault path).
Connecting to Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "uv",
"args": ["run", "/absolute/path/to/obsidian-mcp/server.py"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}Available Tools
Tool | Description |
| List subfolders and notes inside a vault folder. Leave empty for vault root. |
| Read the full content of a note (path relative to vault root). |
| Create a new note. Creates intermediate folders if needed. |
| Replace the full content of an existing note. |
| Delete a note from the vault. |
| Rename a note keeping it in the same folder. |
| Move a note to a different folder. Can also rename as part of the move. Creates destination folders if needed. |
| Delete a folder. Use |
All paths are relative to the vault root, e.g. "Projects/App/roadmap.md".
License
MIT