mcpvault
v0.18.9Universal 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
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the note relative to vault root |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
write_note
Write a note to the Obsidian vault
| Parameter | Type | Description |
|---|---|---|
content * | string | Content of the note |
path * | string | Path to the note relative to vault root |
frontmatter | object | Frontmatter object (optional) |
mode | string | Write 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.
| Parameter | Type | Description |
|---|---|---|
newString * | string | The new string to insert in place of oldString |
oldString * | string | The exact string to replace. Must match exactly including whitespace and line breaks. |
path * | string | Path to the note relative to vault root |
replaceAll | boolean | If 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)
| Parameter | Type | Description |
|---|---|---|
path | string | Path relative to vault root (default: '/') |
prettyPrint | boolean | Format 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.
| Parameter | Type | Description |
|---|---|---|
confirmPath * | string | Confirmation: must exactly match the path parameter to proceed with deletion |
path * | string | Path to the note relative to vault root |
trashMode | string | Deletion 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
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text |
caseSensitive | boolean | Case sensitive search (default: false) |
excludePaths | array | Skip files under these subtrees, e.g. ["Archive", "meta"] (directory prefixes) |
limit | number | Maximum number of results (default: 5, max: 20) |
pathPrefix | string | Restrict the search to a vault subtree, e.g. "Projects/2026" (directory prefix) |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
searchContent | boolean | Search in note content (default: true) |
searchFrontmatter | boolean | Search in frontmatter (default: false) |
move_note
Move or rename a note in the vault
| Parameter | Type | Description |
|---|---|---|
newPath * | string | New path for the note |
oldPath * | string | Current path of the note |
overwrite | boolean | Allow overwriting existing file (default: false) |
move_file
Move or rename any file in the vault (binary-safe, file-only, requires confirmation)
| Parameter | Type | Description |
|---|---|---|
confirmNewPath * | string | Confirmation: must exactly match newPath |
confirmOldPath * | string | Confirmation: must exactly match oldPath |
newPath * | string | New path for the file |
oldPath * | string | Current path of the file |
overwrite | boolean | Allow overwriting existing file (default: false) |
read_multiple_notes
Read multiple notes in a batch (max 10 files)
| Parameter | Type | Description |
|---|---|---|
paths * | array | Array of note paths to read |
includeContent | boolean | Include note content (default: true) |
includeFrontmatter | boolean | Include frontmatter (default: true) |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
update_frontmatter
Update frontmatter of a note without changing content
| Parameter | Type | Description |
|---|---|---|
frontmatter * | object | Frontmatter object to update |
path * | string | Path to the note |
merge | boolean | Merge 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 }
| Parameter | Type | Description |
|---|---|---|
paths * | array | Array of note paths to get info for |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
get_frontmatter
Extract frontmatter from a note without reading the content
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the note relative to vault root |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
manage_tags
Add, remove, or list tags in a note
| Parameter | Type | Description |
|---|---|---|
operation * | string | Operation to perform: 'add', 'remove', or 'list' |
path * | string | Path to the note relative to vault root |
tags | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
prettyPrint | boolean | Format JSON response with indentation (default: false) |
recentCount | number | Number 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Return only the N most frequent tags (default: all) |
minCount | integer | Drop tags that occur fewer than this many times (default: 1). Applied before limit |
prettyPrint | boolean | Format JSON response with indentation (default: false) |
wiki_link
Read an Obsidian wiki link. Accepts the same syntax as Obsidian: [[Document Name]] or [[Document Name|Display Text]], including table-authored escapes like [[Document Name\|Display]] and path-qualified links like [[folder/Document Name]]. A #fragment suffix in the input is ignored. Searches the vault for an exact basename match (or exact vault-relative path match when the name contains '/') and returns the file's content. When multiple files share the basename, picks the first (vault root first, then alphabetical by path) and lists the other paths in structuredContent.alternatives. Content is…
| Parameter | Type | Description |
|---|---|---|
document * | string | The document name — what goes inside [[ ]]. e.g. 'My-Document'. Brackets and display text (|...) are stripped if present. The .md extension is always appended (never include it). |
prettyPrint | boolean | Format 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the note relative to vault root |
prettyPrint | boolean | Format 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.
| Parameter | Type | Description |
|---|---|---|
endLine * | number | Last line to read (1-indexed, inclusive) |
path * | string | Path to the note relative to vault root |
startLine * | number | First line to read (1-indexed, inclusive) |
prettyPrint | boolean | Format JSON response with indentation (default: false) |