vault-mcp
Provides tools to search, read, list, and write Obsidian-compatible markdown notes in a vault, including tags, wikilinks, backlinks, related notes, and daily notes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
vault-mcp
Give Claude (or Cursor, or any MCP client) your second brain. An MCP server that turns a folder of markdown notes, including an Obsidian vault, into tools an AI assistant can use: full-text search, reading notes with their backlinks, finding related notes, and safely writing new notes or daily-log entries.
"What did I decide about the minivec API last week?" Claude calls
search_notes, readsDaily/2026-11-30.md, and answers with the decision and the note it came from.
Tools exposed
Tool | Read-only | What it does |
| yes | BM25 search over heading-level sections; returns the best section of each note with a snippet |
| yes | Full markdown + tags + outgoing |
| yes | Browse by folder or |
| yes | What you have been working on |
| yes | Ranks notes by links, backlinks, shared tags and text similarity |
| yes | Every tag with its count |
| no | Creates a note; never overwrites |
| no | Appends, optionally under a new |
| no | Adds a timestamped bullet to |
Plus a resource template note://{path} and a weekly_review prompt. Tools carry MCP annotations (readOnlyHint, destructiveHint) so clients can auto-approve reads and ask before writes.
Related MCP server: Zettelkasten MCP Server
Install and connect
pip install git+https://github.com/R2Vve2/vault-mcpClaude Code
claude mcp add vault -- vault-mcp --vault "/path/to/your/notes"Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"vault": {
"command": "vault-mcp",
"args": ["--vault", "C:/Users/you/Documents/Obsidian/MyVault", "--read-only"]
}
}
}Use --read-only to hide the three write tools entirely. Try it on the bundled sample: vault-mcp --vault examples/vault.
Design decisions
Sections, not files, are the search unit. Notes are split at headings, so a hit in the "Decisions" section of a long project note is returned with that section's heading and snippet. Each note is reported once, with its best section.
BM25 written from scratch (
vault.py): no index server, starts instantly, Arabic and German text tokenised correctly, stop words removed.Always fresh. Every call compares file modification times and re-parses only changed notes, so edits you make in Obsidian are visible on the next tool call.
Obsidian-compatible parsing: YAML front matter (
title,tagsas list or inline), inline#tags,[[wikilinks]],[[note|alias]]and[[note#heading]].Safety first for an LLM that writes to your disk: every path is resolved and must stay inside the vault (
../, absolute paths and.obsidian/,.git/are refused), only note extensions are allowed, creation never overwrites, and read-only mode removes write tools from the tool list instead of merely failing them.Errors are returned, not raised: the model gets
{"error": "note not found: ..."}and can recover.
Tests
pytest -q runs 14 tests, including end-to-end calls through a real MCP Client connected in-process: tool listing and annotations, search ranking, backlinks, path-traversal attempts, read-only mode hiding tools, live refresh after an external edit, the note:// resource and the prompt. The server was also exercised over stdio as a subprocess.
Layout
vaultmcp/vault.py parsing, BM25 index, search, backlinks, related notes, safe writes
vaultmcp/server.py MCP server (tools, resource template, prompt) on the official Python SDK
examples/vault/ a small sample vaultLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Claude to securely read, search, and edit Markdown notes across multiple Obsidian vaults with path guards, soft delete, and vault switching.MIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to create, link, tag, search, and update atomic notes stored as Markdown files, building a bidirectional knowledge graph with semantic relationships. Also supports exploring and synthesizing that graph through tools that surface linked, similar, central, and orphaned notes.-
- FlicenseNot gradedqualityAmaintenanceEnables users to create, link, search, explore, and synthesize atomic notes through Claude and other MCP-compatible clients, using markdown files and a SQLite index.-
- FlicenseNot gradedqualityAmaintenanceEnables users to create, link, search, explore, and synthesize atomic notes through Claude and other MCP-compatible clients, using Markdown files backed by a SQLite index.-