TurboVault
- MCP Registry name:
mcp-name: io.github.epistates/turbovault
TurboVault is an MCP server that gives AI agents safe, fast access to Obsidian vaults, and a set of Rust crates for working with Obsidian Flavored Markdown. It's a single binary with no runtime dependencies.
- Writes you can trust. Every change goes through one write path: atomic renames with hash preconditions on a plain folder, or one Git commit per write (or per batch) on a Git-backed vault. Moving a note rewrites the wikilinks, Markdown links, reference links and canvas cards that point at it in the same change.
- An index that can't miss an edit. Before serving search, graph or similarity results, TurboVault compares the vault against what it last indexed and applies what changed, so edits from Obsidian, a sync client or
git pullare always seen, even on network and cloud-synced vaults where file watchers report nothing. - Knowledge-aware tools. Full-text search, link graph analysis, similarity, health scoring, Obsidian Bases, canvases, tasks and periodic notes, plus SQL over frontmatter.
- Built for agents. Every tool has parameter descriptions, annotations, a typed output schema, paged results and errors that say what to do next. Notes are MCP resources you can subscribe to, and destructive calls ask the user first when the client supports it.
- Safe by default. Vault registration is confined, protected folders (
.obsidian,.git) are unreachable, and network transports require authentication.
Install
Prebuilt binaries. Each GitHub release has archives for Linux (x86_64 and aarch64, glibc and musl), macOS (Intel and Apple silicon) and Windows (x86_64), built with every feature. Each archive has a .sha256 file and a signed build provenance attestation:
gh attestation verify turbovault-x86_64-unknown-linux-gnu.tar.gz --repo Epistates/turbovault
From crates.io:
cargo install turbovault # stdio only, all you need for Claude Desktop and Claude Code
cargo install turbovault --features release # what the prebuilt binaries have
Other features: http, websocket, tcp, full (all cross-platform transports), unix, sql (SQL over frontmatter) and vector-search (the vector search plugin).
Docker: ghcr.io/epistates/turbovault:<version> (amd64 and arm64). Mount the vault at /var/obsidian-vault:
docker run -i --rm -v "$HOME/Documents/Vault:/var/obsidian-vault" ghcr.io/epistates/turbovault:4.0.0
MCP Registry: listed as io.github.epistates/turbovault, with cargo and OCI packages.
Quick start
Claude Code:
claude mcp add turbovault -- turbovault --vault ~/Documents/Vault
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"turbovault": {
"command": "/path/to/turbovault",
"args": ["--vault", "/path/to/your/vault", "--profile", "production"]
}
}
}
Leave out --vault to start with no vault and let the agent register one with add_vault. Runtime-registered vaults are remembered across restarts. For several vaults, a Git backend or per-vault settings, use a config file: see config.example.yaml and the configuration guide.
A good first call is get_vault_context: it returns the registered vaults, the active vault's counts and health (or those of the vault named in vault), and the tools grouped by task.
Tools
tools/list shows the core tools by default. The ones marked (advanced) are callable by name all the same, and listed with --show-advanced-tools (see the configuration guide). Every tool that works inside a vault takes an optional vault argument naming the registered vault to run against; without it, the active vault. Coming from 3.x, docs/migration/4.0.md maps every old tool name to its replacement.
Notes (9)
get_vault_context: Start here: vault status, health, the markdown dialect and the tools by taskread_note: Note content (whole, or by lines and sections) with the hash for conflict detectionwrite_note: Create, overwrite, append or prepend (auto-creates directories; refuses a path with no extension); returns the note's new hashedit_note: Surgical edits via SEARCH/REPLACE blocks; the text to change has to be in the note as given (whitespace aside), and a miss shows the closest passage instead of editing it; returns a unified diff and the note's new hashdelete_note: Delete a note, refusing while other notes or canvases link to it unless asked to strike their links through or leave them broken, on every kind of vault; a note that is not there answers not found, so a retried delete that answers not found means it is already gonemove_note: Rename or relocate a note, rewriting the wikilinks, embeds, Markdown links and canvas references that point at it on every kind of vault (one commit on a Git-backed vault); never replaces a note unless asked toget_notes_info: Existence, size, modified time, chosen frontmatter values, tags and hash for several notes at oncemove_file(advanced): Move or rename any file, such as an image, a PDF or a canvas, rewriting the links and embeds that point at it; never replaces a file unless asked todiff_notes(advanced): Unified diff between two notes, or between a note and an audited version
Batch & Git Fanout (3)
batch_execute: One all-or-nothing commit withwrite_backend: git; direct stays sequential. Each operation reports its type, path, status and the note's new hashfanout(advanced):begin,commitorabandonan isolated Git worktree for long or parallel worklist_orphan_fanouts(advanced): Worktrees left behind by interrupted sessions
Links & Graph (5)
get_links: A note's backlinks (incoming, canvases included) or outgoing linksget_related_notes: Multi-hop graph traversalgraph_report: One list about the graph:hubs,centrality,dead_ends,isolated_clusters,cyclesorbroken_linksvault_health: 0-100 health score with counts;depth: fulladds dead-end and hub countsexplain_vault: Holistic overview of structure, health, hubs and next actions
Search & Similarity (6)
search: BM25 search by keyword, with the note named for the query first; narrowed by tags, folders and frontmatter, orrelated_toa note. Each result has the passage that matched, its line and its headingfind_similar: Notes that share the most distinctive words with a topic or a given note (TF-IDF over the words as written)query_metadata: One frontmatter condition (equals,contains,>,<), with each match's frontmatterfind_duplicates(advanced): Every pair of notes at or above a similarity threshold, most alike firstcompare_notes(advanced): How alike two notes are and how strongly the graph links themsuggest_links(advanced): Notes a note could link to, with reasons
Frontmatter & Tags (4)
update_frontmatter: Set, add or remove frontmatter keys in place (merge, wherenullremoves a key, or replace); every other key keeps its text and commentsmanage_tags: Add or remove frontmatter tags, rewriting only thetagsentryinspect_frontmatter(advanced): Frontmatter as SQL columns (feature:sql)query_frontmatter_sql(advanced): Read-only SQL over frontmatter, tags and links via GlueSQL (feature:sql)
Canvases, Bases, Tasks & Periodic Notes (5)
read_canvas: Read a.canvas(JSON Canvas 1.0): nodes, edges and the notes it points atwrite_canvas: Create or replace a canvas, validated against the spec and written the way Obsidian writes itquery_base: Run a.basefile's filters, formulas, sort, grouping and limit over the vault's notesquery_tasks: Find tasks by status, due and scheduled dates, tag, folder, priority and text (Tasks plugin emoji and Dataview fields)get_periodic_note: Find or create the daily, weekly, monthly, quarterly or yearly note, using the vault's Daily notes or Periodic Notes settings
Quality & Open Knowledge Format (8)
validate_vault: Problems Obsidian would trip on (pre-1.9tags/aliases, bad frontmatter, broken links), by note and severity, for one note or the vaultnote_quality(advanced): Quality score for one note, or the vault-wide reportfind_stale_notes(advanced): Notes not modified within a threshold of daysanalyze_grounding(advanced): A note's claims and citations for an external judge, or the vault's uncited notesokf_validate(advanced): Validate the vault as an OKF v0.1 bundle; usable as a CI gategenerate_index(advanced): Generate or refreshindex.mdfiles for progressive disclosure (idempotent)append_log_entry(advanced): Append a dated entry to a folder'slog.md(OKF section 7)visualize(advanced): Render the graph as a self-contained HTML file
Templates & OFM (4)
list_templates: Available templates with their fields, or one bytemplate_idcreate_from_template: Render and write a templated notefind_notes_from_template(advanced): Notes created from a templateget_ofm_guide: The Obsidian Flavored Markdownquick_ref, fullsyntaxguide or anexamplenote
Vaults (4)
list_vaults: Registered vaults and the active one; withname, that vault's full configurationadd_vault: Register a vault folder at runtime, orcreate: trueto create it firstset_active_vault: The vault tools use when a call names noneremove_vault(advanced): Unregister a vault (its files are untouched)
Audit & Export (4)
audit_log(advanced): Change log with operation ids, orsummary: truefor statistics and the hash-chain checkrollback_preview(advanced): What a rollback would change (read-only)rollback_note(advanced): Undo a change by operation id (audited, itself undoable)export(advanced): Ahealth,broken_links,statsoranalysisreport as JSON or CSV
Resources, prompts and confirmation
- Notes as resources. Every note is
obsidian://note/{vault}/{path}: listed, read as markdown, and subscribable. Subscribers hear when a note changes, whether TurboVault or another editor changed it. - Prompts.
triage_vault,repair_broken_links,review_period,summarize_noteandground_draft, with completion for their arguments. - Progress and cancellation. Slow tools report progress, and a cancelled call stops before it writes anything.
- Confirmation.
delete_note(saying how many notes link to the note), amove_noteormove_filethat replaces what is at its destination, a forcedrollback_note, abatch_executethat deletes or replaces notes, andadd_vaultask the user to confirm when the client supports elicitation.--no-confirm-destructiveturns this off.
Writes and Git
On the default (direct) backend, each write is a temp file and an atomic rename, held to the note's expected_hash so an edit made since the last read is never lost. Each write returns the note's new hash, so the next change can be held to it without another read. A batch applies in order and reports exactly what landed if it stops partway.
On a Git-backed vault (write_backend: git), every write is one commit and every batch is one all-or-nothing commit, with compare-and-swap on the branch so concurrent processes can't interleave. TurboVault refuses to overwrite files with uncommitted changes, and if writing out a commit is interrupted, the next write or the next start finishes it. fanout gives an agent a private worktree for long or parallel work, merged back or thrown away as a unit.
Every change is recorded in a hash-chained audit trail under .turbovault/ (or as Git history), and rollback_note undoes one, refusing to discard a later edit unless forced.
Security
- Vault registration is confined.
add_vaultnever accepts a filesystem root, the home directory, hidden or application-data directories under it, or system directories.--allowed-vault-rootslimits it to chosen directories; on network transports it's off unless roots are set. - Protected folders.
.obsidian,.git,node_modulesand TurboVault's own.turbovaultare unreachable through the note tools on both backends. A vault can protect more folders, never fewer. - Network transports. HTTP takes bearer tokens or OAuth JWTs (
--auth-mode), with per-client rate limiting, and won't listen beyond loopback without authentication. WebSocket and TCP stay on loopback. The Unix socket lives in a private directory. - Read-only.
--profile read-onlyrefuses every mutating tool;allowed_operations: readmakes one vault read-only. - Bounds. Files over 10 MiB (configurable) aren't read, written or scanned; every result count is capped;
query_frontmatter_sqlruns onlySELECT, for at most 10 seconds and 1000 rows. - No shell execution anywhere.
Report vulnerabilities through GitHub private vulnerability reporting.
Observability
Logs go to stderr as JSON on stdio (RUST_LOG overrides the profile's level). --otlp-endpoint exports traces over OTLP, --metrics-port serves Prometheus metrics on 127.0.0.1, and every tool call is a span with the tool, vault, outcome and duration, never its arguments or note content.
Performance
Measured on synthetic vaults with a release build over MCP stdio:
| 10k notes | 50k notes | |
|---|---|---|
| Startup | 0.5 s | 2.5 s |
| Memory after startup | 213 MB | 0.93 GB |
read_note | 0.5 ms | 0.9 ms |
search (warm) | 3.5-8 ms | 3.5 ms |
| Search after a restart | 61 ms | 258 ms |
vault_health | 1 ms | 16 ms |
explain_vault | 30 ms | 179 ms |
write_note | 14-31 ms |
The search index persists in TurboVault's cache directory, so a restart re-indexes only notes that changed.
Obsidian Flavored Markdown
Wikilinks ([[note]], [[note|alias]], [[note#heading]], [[note#^block]], and the table-escaped \|), embeds, Markdown links (inline, reference-style and percent-encoded), tags (#tag, #parent/child), tasks (including Tasks plugin emoji and Dataview fields), callouts, YAML frontmatter as Obsidian 1.9 reads it, properties with links, headings, JSON Canvas 1.0 and Bases.
Use the crates
| Crate | Purpose |
|---|---|
turbovault-core | Models, configuration, errors, multi-vault management |
turbovault-parser | Obsidian Flavored Markdown and JSON Canvas parsing |
turbovault-graph | Link graph, health and centrality |
turbovault-vault | VaultManager: the note cache, the freshness gate and the write path |
turbovault-git | The Git write substrate |
turbovault-audit | Audit trail, snapshots, rollback |
turbovault-batch | Batch operation types and validation |
turbovault-export | JSON and CSV reports |
turbovault-sql | SQL over frontmatter (GlueSQL) |
turbovault-tools | The logic behind the MCP tools |
turbovault-plugin-api | The contract for compiled-in plugins |
turbovault-vector | Hybrid dense and BM25 search |
turbovault | The MCP server |
Build from source
git clone https://github.com/epistates/turbovault.git
cd turbovault
cargo build --release # ./target/release/turbovault
cargo test --workspace --all-features
Rust 1.90 builds the crates; the test suite needs 1.93.1 or later. See CONTRIBUTING.md and the development guide.
Migrating from 3.x
4.0 consolidates 79 tools into 52, adds the per-call vault argument and hides the advanced tools from tools/list by default. docs/migration/4.0.md maps every old tool and parameter to its replacement, and the changelog lists every library API change.
License
MIT. See LICENSE.
Links
- Documentation
- Changelog
- Issues
- TurboMCP, the framework TurboVault is built on
- Model Context Protocol