mcpvault

v0.18.9
@bitbonsai/mcpvault Checked 10 hours ago Published 13 hours ago

Universal AI bridge for Obsidian vaults - connect any MCP-compatible assistant

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

read_note

Read a note from the Obsidian vault

ParameterTypeDescription
path *stringPath to the note relative to vault root
prettyPrintbooleanFormat JSON response with indentation (default: false)

write_note

Write a note to the Obsidian vault

ParameterTypeDescription
content *stringContent of the note
path *stringPath to the note relative to vault root
frontmatterobjectFrontmatter object (optional)
modestringWrite mode: 'overwrite' (default), 'append', or 'prepend'

patch_note

Efficiently update part of a note by replacing a specific string. This is more efficient than rewriting the entire note for small changes.

ParameterTypeDescription
newString *stringThe new string to insert in place of oldString
oldString *stringThe exact string to replace. Must match exactly including whitespace and line breaks.
path *stringPath to the note relative to vault root
replaceAllbooleanIf true, replace all occurrences. If false (default), the operation will fail if multiple matches are found to prevent unintended replacements.

list_directory

List files and directories in the vault (includes non-note filenames, while read/write tools remain note-only)

ParameterTypeDescription
pathstringPath relative to vault root (default: '/')
prettyPrintbooleanFormat JSON response with indentation (default: false)

delete_note

Delete a note from the Obsidian vault (requires confirmation). Supports permanent delete, vault trash, or system trash.

ParameterTypeDescription
confirmPath *stringConfirmation: must exactly match the path parameter to proceed with deletion
path *stringPath to the note relative to vault root
trashModestringDeletion mode: 'none' = permanent delete (default), 'local' = move to .trash inside vault, 'system' = move to OS trash

search_notes

Search for notes in the vault by content or frontmatter

ParameterTypeDescription
query *stringSearch query text
caseSensitivebooleanCase sensitive search (default: false)
excludePathsarraySkip files under these subtrees, e.g. ["Archive", "meta"] (directory prefixes)
limitnumberMaximum number of results (default: 5, max: 20)
pathPrefixstringRestrict the search to a vault subtree, e.g. "Projects/2026" (directory prefix)
prettyPrintbooleanFormat JSON response with indentation (default: false)
searchContentbooleanSearch in note content (default: true)
searchFrontmatterbooleanSearch in frontmatter (default: false)

move_note

Move or rename a note in the vault

ParameterTypeDescription
newPath *stringNew path for the note
oldPath *stringCurrent path of the note
overwritebooleanAllow overwriting existing file (default: false)

move_file

Move or rename any file in the vault (binary-safe, file-only, requires confirmation)

ParameterTypeDescription
confirmNewPath *stringConfirmation: must exactly match newPath
confirmOldPath *stringConfirmation: must exactly match oldPath
newPath *stringNew path for the file
oldPath *stringCurrent path of the file
overwritebooleanAllow overwriting existing file (default: false)

read_multiple_notes

Read multiple notes in a batch (max 10 files)

ParameterTypeDescription
paths *arrayArray of note paths to read
includeContentbooleanInclude note content (default: true)
includeFrontmatterbooleanInclude frontmatter (default: true)
prettyPrintbooleanFormat JSON response with indentation (default: false)

update_frontmatter

Update frontmatter of a note without changing content

ParameterTypeDescription
frontmatter *objectFrontmatter object to update
path *stringPath to the note
mergebooleanMerge with existing frontmatter (default: true)

get_notes_info

Get metadata for notes without reading full content. Returns one entry per requested path; a path that is missing or access-denied comes back as { path, error }

ParameterTypeDescription
paths *arrayArray of note paths to get info for
prettyPrintbooleanFormat JSON response with indentation (default: false)

get_frontmatter

Extract frontmatter from a note without reading the content

ParameterTypeDescription
path *stringPath to the note relative to vault root
prettyPrintbooleanFormat JSON response with indentation (default: false)

manage_tags

Add, remove, or list tags in a note

ParameterTypeDescription
operation *stringOperation to perform: 'add', 'remove', or 'list'
path *stringPath to the note relative to vault root
tagsarrayArray of tags (required for 'add' and 'remove' operations)

get_vault_stats

Get vault statistics including total notes, folders, size, and recently modified files. Useful for understanding vault scope before batch operations.

ParameterTypeDescription
prettyPrintbooleanFormat JSON response with indentation (default: false)
recentCountnumberNumber of recently modified files to return (default: 5, max: 20)

list_all_tags

List all tags across the vault with occurrence counts. Returns both frontmatter tags and inline #hashtags, deduplicated and sorted by frequency. Use limit and minCount to trim large vaults. Useful for discovering existing tags before creating or organizing notes.

ParameterTypeDescription
limitintegerReturn only the N most frequent tags (default: all)
minCountintegerDrop tags that occur fewer than this many times (default: 1). Applied before limit
prettyPrintbooleanFormat JSON response with indentation (default: false)

get_note_outline

Get the heading structure of a note without reading its full content. Returns headings with level, text, and line number. Use this first to navigate large notes efficiently, then call read_note_lines to read only the section you need.

ParameterTypeDescription
path *stringPath to the note relative to vault root
prettyPrintbooleanFormat JSON response with indentation (default: false)

read_note_lines

Read a specific line range from a note. Use after get_note_outline to read only the section you need instead of the full file.

ParameterTypeDescription
endLine *numberLast line to read (1-indexed, inclusive)
path *stringPath to the note relative to vault root
startLine *numberFirst line to read (1-indexed, inclusive)
prettyPrintbooleanFormat JSON response with indentation (default: false)