Vault MCP
MCP server that lets coding agents search, read and write an Obsidian vault with citations
Vault MCP is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Version
- 0.6.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add vault-mcp --env VAULT_PATH='<VAULT_PATH>' -- npx -y @andreymudri/vault-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"vault-mcp": {
"command": "npx",
"args": [
"-y",
"@andreymudri/vault-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"vault-mcp": {
"command": "npx",
"args": [
"-y",
"@andreymudri/vault-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"vault-mcp": {
"command": "npx",
"args": [
"-y",
"@andreymudri/vault-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"vault-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@andreymudri/vault-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add vault-mcp --env VAULT_PATH='<VAULT_PATH>' -- npx -y @andreymudri/vault-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.vault-mcp]
command = "npx"
args = ["-y", "@andreymudri/vault-mcp"]
env = { VAULT_PATH = "<VAULT_PATH>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"vault-mcp": {
"command": "npx",
"args": [
"-y",
"@andreymudri/vault-mcp"
],
"env": {
"VAULT_PATH": "<VAULT_PATH>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Or run: gemini mcp add -s user -e VAULT_PATH='<VAULT_PATH>' vault-mcp npx -- -y @andreymudri/vault-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "vault-mcp": { "command": "npx", "args": [ "-y", "@andreymudri/vault-mcp" ], "env": { "VAULT_PATH": "<VAULT_PATH>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
VAULT_PATHAbsolute path to the root folder of the Obsidian vault to serve. Required; the server exits with a message on stderr without it.RequiredVAULT_LANGLanguage the server speaks in tool descriptions and errors: 'en' (default) or 'pt'. It never changes what is written into the vault — commit subjects and section names follow the vault.VAULT_AUTO_PUSHSet to 1 to git push after each write's commit. Off by default: it is the only thing this server does that leaves the machine. A failed push is reported as a warning, never rolled back.VAULT_READ_ONLYSet to 1 to publish only the read tools: nothing in the vault can be written, moved or deleted through this server. A value that is neither a yes nor a no is treated as 1.VAULT_DISABLED_TOOLSTool names not to publish, separated by commas or spaces, e.g. vault_delete,vault_move.VAULT_LOG_LEVELHow much the server writes to stderr, one JSON object per line: silent, error, warn (default), info or debug. The same events reach the client through the MCP logging capability.VAULT_MAX_NOTE_BYTESFiles larger than this many bytes are left out of the index and reported as a diagnostic. Default 5242880 (5 MB).VAULT_LOCK_TIMEOUT_MSHow long a write waits for another process writing the same vault before it is refused. Default 30000.VAULT_SCAN_TTL_MSHow long a scan of the vault is reused before the files are looked at again, in milliseconds. Unset is adaptive: never for a small vault, up to 2000 for a large one. 0 scans on every call.
About Vault MCP
Vault MCP gives a coding agent access to an Obsidian knowledge vault kept as plain markdown files. Searches combine BM25 ranking with one wiki-link hop, and each hit comes back with a path and line reference so the agent can cite where a fact lives.
Writes go through the server as well: a learning can be filed as a new note or appended to an existing one inside its domain, with the domain map of contents, the knowledge index and the daily note updated in the same git commit. Moves, renames, archiving and deletes also keep links and map entries consistent.
It suits developers who keep decisions, patterns and gotchas in an Obsidian vault and want their coding assistant to consult and extend it. Read-only mode, tool filtering and an optional auto-push setting let the owner limit what the agent can change.
Tools this server provides (11)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 11 tools deletes data and 3 change data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- vault_searchName suggests: reads
- Searches the vault for notes matching a query, returning cited snippets.
- vault_get_noteName suggests: reads
- Returns a note with its frontmatter and resolved and broken links.
- vault_listName suggests: reads
- Lists notes filtered by type, tags, status or folder.
- vault_backlinks
- Lists notes that link to a given note.
- vault_graph
- Returns the note link graph with nodes, edges and orphans.
- vault_statusName suggests: reads
- Reports index size, git state, pending commits and lock holder.
- vault_write_noteName suggests: changes
- Creates or replaces a whole note and commits it.
- vault_edit_noteName suggests: changes
- Replaces one exact passage in a note.
- vault_learn
- Records a learning as a new note or an appended section, with MOC and daily note updates.
- vault_moveName suggests: changes
- Moves, renames or archives a note and corrects links.
- vault_deleteName suggests: deletes
- Deletes a committed note and removes its map entry, with safeguards.
What it does
- Cited search results
- Returns snippets tagged with their file path and line so answers can point back to the source note.
- Learning capture
- Decides whether a new insight becomes a new note or is appended to a matching note in the same domain.
- Link-preserving moves
- Renaming, moving or archiving a note rewrites affected wiki-links and updates map of contents entries.
- Git-backed writes
- Each write is committed to the vault's git repository, so any change can be reverted.
- Read-only and tool filtering
- Environment settings can disable write tools or specific tools entirely.
- Configurable vault layout
- A vault-level config file can rename the folders and section headings the server uses.
Good for
- Letting a coding agent check past architecture decisions before proposing changes
- Saving a debugging gotcha to the knowledge base mid-session without choosing a folder
- Reviewing which notes link to a given note before renaming or archiving it
- Browsing notes by tag or status to see which projects are active
- Running a read-only assistant over a vault shared with others
Pricing
Open source
Free open-source MCP server, installed via npm.
Vault MCP FAQ
Does Vault MCP need a paid service?
It is installed from npm and runs locally against a folder of markdown files. No pricing is listed for hosted use.
What is required to start Vault MCP?
An absolute path to the vault root, passed as VAULT_PATH. The server exits with a message if it is missing.
Does Vault MCP push changes to a remote automatically?
No. Auto-push is off by default and must be enabled with VAULT_AUTO_PUSH=1.
What happens if a note cannot be indexed?
Search and list results end with a line naming the skipped file and the reason, such as size, binary content or a link type.
How do I add Vault MCP to Claude Code?
Run this command in your terminal: claude mcp add vault-mcp --env VAULT_PATH='<VAULT_PATH>' -- npx -y @andreymudri/vault-mcp
What are the best alternatives to Vault MCP?
The closest alternatives to Vault MCP are Obsidian Vault (TUI, CLI & MCP), Obsidian MCP Server, obsidian-wiki, Markdown Vault MCP and Hive Vault.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.