mdvault-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MDVAULT_PATH | Yes | Path to the markdown notes folder (vault). Can be used instead of the --vault flag. | |
| MDVAULT_CACHE_DIR | No | Directory for the index cache (default: %LOCALAPPDATA%\mdvault-mcp, ~/Library/Caches/mdvault-mcp or ~/.cache/mdvault-mcp). | |
| MDVAULT_READ_ONLY | No | Set to 1 to disable every writing tool. Can be used instead of the --read-only flag. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Work with a folder of markdown notes (Obsidian, Logseq or plain) as a knowledge base. Start with vault_overview. Find notes with search_notes (ranked full text) or query_notes (tags and frontmatter). Read with read_note; follow the graph with note_links; audit with broken_links. Notes can be named by vault path ('Projects/Plan.md'), by name ('Plan') or as a [[wikilink]]. If several notes share a name you get an ambiguity error listing them: retry with the full path. Writes (create_note, append_to_note, edit_note, rename_note) never overwrite without overwrite=true, stay inside the vault, and rename_note defaults to a dry run that lists every file it would change.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| vault_overviewA | Summarise the vault: note and file counts, top tags, most linked-to notes, orphan notes (no links in or out), broken links, ambiguous links, and notes whose frontmatter does not parse. Call this first to learn what is in the vault. Re-scans changed files on every call. |
| search_notesA | Full-text search over note titles, body text and tags, ranked best first (BM25), with a snippet showing the best-matching line and its line number. Matching ignores case and diacritics ("seker" finds "Seker" and "Şeker") and uses whole words, no stemming. Words in the title count more than words in the body. By default a note matches if it contains any query word, and notes containing more of them rank higher; all_terms=true requires every word. folder="Projects" limits to that folder (and below); tag="project" limits to notes with that tag or a nested tag like project/alpha. |
| read_noteA | Read one note. Returns the path, title, tags, link counts, the parsed frontmatter as JSON, and the body. raw=true returns the exact file text including the frontmatter block (use it before edit_note when you need to change the frontmatter itself). Long notes are truncated at max_chars with a visible notice. |
| note_linksA | Show a note's links. direction="in" lists backlinks: every note linking here, with the file:line and the line of text around the link, plus ambiguous links that might point here; direction="out" lists the note's own links and where each resolves (a note, a file, BROKEN, or AMBIGUOUS with the candidate paths); "both" does both. Covers [[wikilinks]], ![[embeds]] and markdown; links inside code blocks are ignored. |
| query_notesA | Find notes by tag and/or frontmatter properties. tag="project" matches notes tagged #project (frontmatter or inline) and nested tags such as
project/alpha. |
| broken_linksB | List links that point nowhere (BROKEN, with a did-you-mean when a similar note exists) and links that match several notes (AMBIGUOUS, with every candidate path), as file:line. Optionally limited to a folder. |
| create_noteA | Create a note. |
| append_to_noteA | Append text to the end of a note, keeping the file's line endings. Either |
| edit_noteA | Replace exact text in a note. old_text must match exactly once (whitespace included), or the edit is refused with the line numbers of the matches; add surrounding text to make it unique. new_text="" deletes. Line endings of the file are preserved and an edit that would make the frontmatter unparseable is refused. dry_run=true shows a diff and writes nothing. |
| rename_noteA | Rename or move a note and update every link to it across the vault: [[wikilinks]] (keeping #headings, ^blocks and |aliases), ![[embeds]] and relative markdown. new_name is a bare name ('New Title', stays in the same folder) or a vault path ('Archive/New Title.md', moves it). A moved note's own relative links are fixed too. dry_run defaults to TRUE: it lists every file and link that would change and writes nothing; review it, then call again with dry_run=false. Never overwrites an existing note. Links that are ambiguous (several notes share the name) cannot be attributed safely and are reported rather than rewritten. The result reports broken links before and after. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool has a clearly stated role, and the potentially confusable pairs are explicitly distinguished in their descriptions (search_notes is full-text/BM25 while query_notes is frontmatter/tag filtering; read_note returns content while note_links returns the link graph). The one real overlap is vault_overview, which already aggregates broken and ambiguous links that broken_links exposes as a dedicated tool, so an agent may pick either.
The mutation tools follow a clean verb_noun snake_case pattern (create_note, append_to_note, edit_note, rename_note) and read tools mostly do too (search_notes, read_note, query_notes). A few read-only tools deviate to noun-first or adjective-first forms (vault_overview, note_links, broken_links), but the convention is still readable and predictable overall.
Ten tools is a well-scoped set for an Obsidian-style vault: read/inspect (overview, search, read, links, query, broken links) plus the mutation subset (create, append, edit, rename). Nothing feels padded and no operation is duplicated for the sake of count.
Creation, reading, appending, in-place editing, renaming/moving with link rewriting, search, property queries, and link diagnostics give broad lifecycle coverage. However, there is no delete/remove operation at all, and no direct frontmatter mutation short of raw read plus text replacement, leaving an obvious dead end for vault maintenance.