bitbonsai/mcpvault
A lightweight Model Context Protocol (MCP) server for safe Obsidian vault access
What it solves
MCPVault connects AI assistants (like Claude Desktop, ChatGPT Desktop, or any MCP-compatible client) to your Obsidian notes. Instead of copying files or using a cloud service, it works directly on your local vault, so your notes stay on your machine. It solves the problem of giving AI tools safe, controlled access to your knowledge base while keeping your data private and your vault structure intact.
How it works
MCPVault runs as a local server that your AI client starts and communicates with. When you set it up, you tell it the path to your Obsidian vault. The server then exposes a set of tools the AI can use: reading notes, searching content, creating, editing, moving, and deleting notes, managing tags, and more. All file operations are restricted to the vault root — the server blocks attempts to go outside that folder, prevents symlink escapes, and hides internal folders like .obsidian and .git. It even preserves formatting for frontmatter fields it doesn’t change, using AST-aware updates.
The server works with any client that supports local MCP (Model Context Protocol) via standard input/output. It doesn’t require Obsidian to be running, and no Obsidian plugin is needed. You can run it with a simple command like npx @bitbonsai/mcpvault@latest /path/to/your/vault, and configure it in your AI client’s settings.
Who it’s for
- Obsidian users who want to use AI assistants to manage their notes
- People who want to keep their notes local and private while still using AI features
- Developers or power users comfortable editing JSON configuration files
- Teams using MCP-capable AI clients (Claude, ChatGPT Enterprise, Cursor, IntelliJ, etc.) who need a secure, file-based connection to a shared vault
Highlights
- 18 MCP tools cover reading, writing, searching, moving, deleting, and tagging notes
- Search includes multi-word matching and BM25 relevance reranking for better results
- Path safety: blocks traversal, symlink escapes, dotfiles, and internal folders
- Supports append, prepend, and overwrite modes for writing notes
- Deletion and file moves require explicit confirmation to prevent accidental changes
- Read-only mode (
--read-only) exposes only read tools for extra security - Can handle multiple vaults by running separate server instances
- Works with many clients: Claude Desktop, Claude Code, ChatGPT Desktop (Enterprise+), OpenCode, Gemini CLI, OpenAI Codex, Cursor, Windsurf, and others
- No Obsidian plugin required; runs directly on the vault files
Related
- Project
- Project
- Project
- Project
- Project