VaultBridge MCP
Read-only structured access to a local Obsidian vault: incremental indexing of notes with YAML frontmatter, heading trees, #tags and resolved [[WikiLinks]]; bilingual English/Chinese FTS5 BM25 search; heading- or line-range-based note retrieval; and backlink/shared-tag/folder-neighbor traversal for related 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.
VaultBridge MCP
Zero-dependency, local-first MCP server for Markdown & Obsidian vaults.
Give Claude Code, Cursor, Codex, and Gemini CLI fast, structured, read-only access to your local Markdown knowledge base — powered purely by Python 3.10+ standard library and SQLite FTS5.
Zero Runtime Dependencies: Pure Python stdlib (
sqlite3,json,pathlib,re,hashlib,argparse). Nopipdependency tree, no vector DB daemon, no Node runtime required.Bilingual FTS5 Retrieval: Weighted BM25 full-text search across English, Chinese (CJK), and mixed technical notes — including 2-character Chinese terms.
Incremental Indexing: Fast
mtime+sha256change detection skips untouched files and resolves Obsidian WikiLinks ([[Note]],[[Note|Alias]],[[Note#Heading]]), YAML frontmatter, headings, and#tags.Secure by Default: Strict path-traversal blocking, symlink escape rejection, and built-in exclusion of
.git/,.obsidian/,.vaultbridge/,Credentials/,.env*, and private keys.
Architecture
Markdown / Obsidian Vault
├── README.md
├── projects/
│ └── architecture.md (YAML frontmatter, #headings, [[WikiLinks]], #tags)
└── [BLOCKED: .git/, .obsidian/, Credentials/, .env*, *.key, ../]
│
▼
┌──────────────────────────────────────────────────────────┐
│ vaultbridge.indexer (Pure Python 3.10+ stdlib) │
│ • mtime + sha256 incremental scanner │
│ • YAML frontmatter, heading tree, WikiLink & tag parser │
│ • CJK + English FTS5 tokenizer + BM25 ranking │
└───────────────────────────┬──────────────────────────────┘
│ .vaultbridge/index.db (SQLite WAL + FTS5)
▼
┌──────────────────────────────────────────────────────────┐
│ vaultbridge.server (MCP stdio JSON-RPC 2.0) │
│ vb_brief │ vb_search │ vb_get │ vb_related │ vb_status │
└───────────────────────────┬──────────────────────────────┘
│ stdin / stdout (NDJSON)
▼
Claude Code • Cursor • Codex • Gemini CLIRelated MCP server: obsidian-vault-mcp
30-Second Quick Start
1. Install
# Editable local install (zero runtime dependencies)
pip install -e .
# Or run directly from source with zero installation
PYTHONPATH=src python3 -m vaultbridge --version2. Initialize & Index Your Vault
vaultbridge init --vault /path/to/your/vault
vaultbridge doctor --vault /path/to/your/vault3. Try It in Your Terminal
# High-signal vault overview
vaultbridge brief --vault /path/to/your/vault
# Bilingual English + Chinese FTS5 search
vaultbridge search "architecture 架构" --vault /path/to/your/vault
# Start MCP stdio server
vaultbridge serve --vault /path/to/your/vaultMCP Client Configuration
Replace /path/to/your/vault with the absolute path to your Markdown or Obsidian vault.
Claude Code
Add via CLI:
claude mcp add vaultbridge -- vaultbridge serve --vault /path/to/your/vaultOr add to .mcp.json / ~/.claude.json:
{
"mcpServers": {
"vaultbridge": {
"command": "vaultbridge",
"args": ["serve", "--vault", "/path/to/your/vault"]
}
}
}Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"vaultbridge": {
"command": "vaultbridge",
"args": ["serve", "--vault", "/path/to/your/vault"]
}
}
}OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.vaultbridge]
command = "vaultbridge"
args = ["serve", "--vault", "/path/to/your/vault"]Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"vaultbridge": {
"command": "vaultbridge",
"args": ["serve", "--vault", "/path/to/your/vault"]
}
}
}Running directly from a cloned repo without
pip install? Use"command": "python3","args": ["-m", "vaultbridge", "serve", "--vault", "/path/to/your/vault"], and set"env": { "PYTHONPATH": "/path/to/vaultbridge-mcp/src" }.
Exposed MCP Tools
Tool | Purpose | Key Arguments |
| One-call vault orientation: stats, folders, top tags, entry/MOC notes, recent notes, and optional topic hits. |
|
| Weighted SQLite FTS5 BM25 search supporting English, Chinese (CJK), and mixed queries. |
|
| Read a verified vault-relative Markdown note (full, by heading section, or by line range) with strict boundary checks. |
|
| Traverse outgoing WikiLinks, incoming backlinks, shared-tag neighbors, and same-folder peers. |
|
| Report index health, note/link/tag counts, SQLite FTS5 readiness, staleness, and optional incremental re-index. |
|
CLI Reference
vaultbridge init --vault /path/to/vault # Create .vaultbridge/config.json and initial index
vaultbridge index --vault /path/to/vault [--force] # Incremental (or full) FTS5 index update
vaultbridge search "query" --vault /path/to/vault # Full-text search (--tag, --path-prefix, --json)
vaultbridge brief [topic] --vault /path/to/vault # Compact vault or topic briefing (--json)
vaultbridge serve --vault /path/to/vault # Start MCP stdio JSON-RPC 2.0 server
vaultbridge doctor --vault /path/to/vault # Verify Python, FTS5, DB integrity, and security guardsEnvironment variables VAULTBRIDGE_VAULT and VAULTBRIDGE_DB can also be used instead of --vault and --db.
Security & Privacy Model
VaultBridge Core is strictly local and read-only over MCP:
No network calls, no telemetry, no external embeddings API.
Path Traversal Defense:
vb_getandvb_relatedreject absolute paths,..segments, null bytes, non-Markdown targets, and symlinks resolving outside the vault root.Default Sensitive Exclusions: Directories
.git/,.obsidian/,.vaultbridge/,.trash/,Credentials/,.secrets/,secrets/,.ssh/,.gnupg/,node_modules/,.venv/and files.env,.env.*,*.pem,*.key,*.p12,*.pfx,*.secret,id_rsa*,id_ed25519*are excluded from both indexing and reads.Custom Exclusions: Add a
.vaultbridgeignorefile at the vault root using standard glob patterns.
Development & Tests
Run the full zero-dependency test suite (including a real subprocess MCP stdio JSON-RPC 2.0 end-to-end test):
PYTHONPATH=src python3 -m unittest discover -s tests -vAlso compatible with pytest:
PYTHONPATH=src pytest -vVaultBridge Core vs. Pro
VaultBridge Core is open-source (MIT) and designed to remain fast, self-contained, and genuinely useful on its own. For power users running multi-agent knowledge workflows across multiple tools, an optional VaultBridge Pro add-on builds on top of the same local-first philosophy:
Capability | VaultBridge Core (MIT) | VaultBridge Pro ($29 One-Time) |
Local SQLite FTS5 incremental indexing (EN + CJK) | Included | Included |
5 read-only MCP tools ( | Included | Included |
Path traversal & sensitive-directory protection | Included | Included |
CLI ( | Included | Included |
5-client non-destructive config merger ( | — | Included |
38-rule + Shannon entropy | — | Included |
Structured | — | Included |
Ready-to-use Obsidian Starter Vault & cross-client AI rules templates ( | — | Included |
VaultBridge Pro (v1.0.0 — $29 one-time) checkout via Creem.io is going live shortly — star/watch this repository or follow @udvoid for the live release link.
License
MIT License — Copyright (c) 2026 UDvoid. See LICENSE.
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
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Personal context for every AI: search, read, and write back to your private Markdown library.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI clients like Claude Desktop to search your local Obsidian vault notes via full-text search.MIT
- AlicenseNot gradedqualityDmaintenanceEnables read-only, filesystem-based access to Obsidian vault Markdown notes, including full-text search, title/path search, and frontmatter or tag metadata lookup, all without running Obsidian or using a plugin/REST API.23 npmMIT
- AlicenseNot gradedqualityBmaintenanceGives AI agents fast, read-only access to a local knowledge base of Markdown notes and other text documents via a SQLite full-text index. Enables ranked section-level search, reading whole notes or single sections, heading outlines, note listing, and link/backlink navigation without slow disk walks.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run semantic search over local Obsidian or Markdown vaults, returning notes ranked by meaning with paths, headings, scores, and snippets, and to trigger incremental reindexing of changed notes. Everything runs on the user's own machine, so no note content leaves it.MIT