# Vault MCP

> Vault MCP is an open-source MCP server for knowledge and memory. MCP server that lets coding agents search, read and write an Obsidian vault with citations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, Self-hosted
- **Repository:** https://github.com/andreymudri/vault-mcp
- **MCP Registry name:** io.github.andreymudri/vault-mcp
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [security](https://ai-powered.com/categories/security), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add vault-mcp --env VAULT_PATH='<VAULT_PATH>' -- npx -y @andreymudri/vault-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "vault-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andreymudri/vault-mcp"
      ],
      "env": {
        "VAULT_PATH": "<VAULT_PATH>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add vault-mcp --env VAULT_PATH='<VAULT_PATH>' -- npx -y @andreymudri/vault-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.vault-mcp]
command = "npx"
args = ["-y", "@andreymudri/vault-mcp"]
env = { VAULT_PATH = "<VAULT_PATH>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "vault-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@andreymudri/vault-mcp"
      ],
      "env": {
        "VAULT_PATH": "<VAULT_PATH>"
      }
    }
  }
}
```

## Tools

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_search` (name suggests: reads): Searches the vault for notes matching a query, returning cited snippets.
- `vault_get_note` (name suggests: reads): Returns a note with its frontmatter and resolved and broken links.
- `vault_list` (name 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_status` (name suggests: reads): Reports index size, git state, pending commits and lock holder.
- `vault_write_note` (name suggests: changes): Creates or replaces a whole note and commits it.
- `vault_edit_note` (name 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_move` (name suggests: changes): Moves, renames or archives a note and corrects links.
- `vault_delete` (name suggests: deletes): Deletes a committed note and removes its map entry, with safeguards.

## 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.

## Alternatives

- [Obsidian Vault (TUI, CLI & MCP)](https://ai-powered.com/mcp/obsidian-vault-tui-cli-and-mcp): Obsidian Vault (TUI, CLI & MCP) is an open-source MCP server for knowledge and memory.
- [Obsidian MCP Server](https://ai-powered.com/mcp/obsidian-mcp-server-3): Obsidian MCP Server is an open-source MCP server for knowledge and memory.
- [obsidian-wiki](https://ai-powered.com/mcp/obsidian-wiki): obsidian-wiki is an open-source MCP server for knowledge and memory.
- [Markdown Vault MCP](https://ai-powered.com/mcp/markdown-vault-mcp): Markdown Vault MCP is a free MCP server for files and documents.
- [Hive Vault](https://ai-powered.com/mcp/hive-vault): Hive Vault is an open-source MCP server for security.
- [Obsidian Vault MCP](https://ai-powered.com/mcp/obsidian-vault-mcp): Obsidian Vault MCP is an open-source MCP server for knowledge and memory.
- [brain-mcp](https://ai-powered.com/mcp/brain-mcp): brain-mcp is an open-source MCP server for knowledge and memory.
- [Vault Cortex](https://ai-powered.com/mcp/vault-cortex): Vault Cortex is an MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/vault-mcp-2
