Obsidian Vault (TUI, CLI & MCP)

v0.4.3
io.github.BiteFoundry/obsidian Checked 23 hours ago Published 8 days ago

Local Obsidian vault MCP server, CLI, and TUI in Rust with Braille graph & safe edits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_vaults

List registered and auto-discovered vaults with note counts. Scans every vault to refresh counts, so the first call can be slow with many or large vaults.

search_notes

Search notes across a vault using SQLite FTS5. Korean/CJK queries also match inside longer words (substring scan).

ParameterTypeDescription
query *stringSearch query string.
limitintegerMaximum results 1..200 (default 20). Out-of-range values are clamped; the response reports the limit used and has_more.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

read_note

Read a Markdown note. Returns a compact object by default; pass compact:false for all metadata (including is_bookmarked, size_bytes, images, md_links), or pass fields to project specific fields (e.g. frontmatter, frontmatter.<key>, tasks, backlinks, body) without fetching the full body.

ParameterTypeDescription
note *stringRelative path, note title, or alias.
compactbooleanDefault true: return rel_path, title, raw_markdown, mtime_ms, omitted (including frontmatter_keys), and hint. Set false for full metadata including frontmatter, tags, headings, tasks, md_links, images…
fieldsarrayOptional selective field projection (e.g. frontmatter, frontmatter.<key>, folder, tags, aliases, word_count, size_bytes, is_bookmarked, mtime_ms, headings, tasks, backlinks, outgoing_links, images, md…
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

list_notes

List notes in the active vault, optionally filtered by folder prefix.

ParameterTypeDescription
cursorstringnext_cursor from the previous page.
folderstringOptional folder prefix filter.
limitintegerPage size 1..500 (default 50).
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

create_note

Create a new Markdown note atomically with optional folder, initial content, and YAML frontmatter tags.

ParameterTypeDescription
title *stringNote title or filename.
contentstringOptional Markdown content.
folderstringOptional target folder relative to vault root.
tagsarrayOptional frontmatter tags.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

append_note

Append Markdown text, checklist items, or callouts atomically to an existing note.

ParameterTypeDescription
note *stringRelative path, note title, or alias.
text *stringMarkdown text to append.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

replace_note_text

Replace a literal string only when it occurs exactly once in the Markdown body. Return the match count and whether the replacement ran.

ParameterTypeDescription
find *stringExact text to find, including spacing and line endings.
note *stringRelative path, note title, or alias.
replace *stringReplacement text. Use an empty string to delete the match.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

update_frontmatter

Upsert or remove (null) YAML frontmatter properties on an existing note while preserving its body.

ParameterTypeDescription
note *stringRelative path, note title, or alias.
properties *objectKey-value pairs to merge into YAML frontmatter (null removes key).
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

delete_note

Safely move a note to the vault's .trash/ directory. Requires confirm: true.

ParameterTypeDescription
confirm *booleanMust be true to execute deletion to .trash/.
note *stringRelative path, note title, or alias.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

daily_note

Open or create today's Daily Note (or a specific YYYY-MM-DD date) and optionally append text. Calls with non-empty append return a receipt (rel_path, created, appended, hint); calls without append return the note body. For full metadata call read_note with the returned rel_path and compact:false. Each call with append appends again.

ParameterTypeDescription
appendstringOptional text to append to the daily note.
datestringOptional date string (e.g. 2026-11-20).
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

get_local_graph

Return the local BFS knowledge graph around a note (or the full vault graph when note is omitted). Omitting note returns the whole-vault graph, which is large and slow on big vaults; pass note and a small depth when possible.

ParameterTypeDescription
depthintegerNeighborhood hop depth 1..5 (default 2; other values are clamped and the result reports the depth used).
notestringOptional center note path, title, or alias.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

list_tags

List all inline and frontmatter tags in the vault with note counts. Aggregates over the whole vault.

ParameterTypeDescription
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

find_by_tag

Find all notes containing a tag (including nested subtags like #project/q4).

ParameterTypeDescription
tag *stringTag name with or without leading #.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

list_tasks

List Markdown checklist tasks across the vault or within a single note.

ParameterTypeDescription
cursorstringnext_cursor from the previous page.
limitintegerPage size 1..500 (default 50).
notestringOptional note filter.
statusstringFilter by task status.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

toggle_task

Surgically toggle a Markdown checkbox (- [ ] <-> - [x]) at an exact 1-based line number, optionally verifying expected text/state to guard against shifted lines.

ParameterTypeDescription
line *integer1-based line number of the task checkbox.
note *stringNote path, title, or alias.
expected_checkedbooleanOptional expected current checked state; refuses toggle on mismatch.
expected_mtime_msintegerOptional expected note mtime_ms; refuses toggle if file changed.
expected_textstringOptional expected task text at this line; refuses toggle on mismatch.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

find_orphans

Find orphan notes that have zero incoming backlinks and zero outgoing wikilinks. Reads the whole note index; cost grows with vault size and the result is not paginated.

ParameterTypeDescription
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

reindex_vault

Force a full verification rescan: re-reads and hashes every note and rebuilds link resolution. Slow on large vaults. Rarely needed: every other tool already syncs changed files first.

ParameterTypeDescription
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.

move_note

Move or rename a note within its vault and update incoming wikilinks that need a new target.

ParameterTypeDescription
dst *stringDestination path relative to the same vault, including the new filename. The .md extension is optional.
src *stringSource note path relative to the vault, title, or alias.
vaultstringOptional registered vault name, ID, or path (see list_vaults). Unregistered directories are rejected.