Skip to main content
Glama
mdvault-mcp
by 0xmortuex

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MDVAULT_PATHYesPath to the markdown notes folder (vault). Can be used instead of the --vault flag.
MDVAULT_CACHE_DIRNoDirectory for the index cache (default: %LOCALAPPDATA%\mdvault-mcp, ~/Library/Caches/mdvault-mcp or ~/.cache/mdvault-mcp).
MDVAULT_READ_ONLYNoSet 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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. note is a vault path ('Projects/Plan.md'), a name ('Plan') or a [[wikilink]]; a name shared by several notes returns an error listing the full paths.

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. where is a small query language over the frontmatter: status=draft, due < 2026-12-01, tags contains project, owner exists, owner missing, joined with AND / OR (AND binds tighter), with an optional NOT in front of a clause. Example: status=draft AND tags contains project. Quote values with spaces. Comparison ignores case; on a list, = and contains mean "any element". Notes whose frontmatter fails to parse are skipped (vault_overview lists them).

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. path is relative to the vault root ('Projects/New Idea.md'; .md is added if missing; missing folders are created). Fails if the file exists unless overwrite=true. frontmatter is an optional object written as a YAML block at the top, e.g. {"status": "draft", "tags": ["project"]}. Warns when another note already has the same name, because plain [[links]] to that name become ambiguous. Paths that leave the vault, pass through symlinks, or touch dot-folders (.git, .obsidian) are refused.

append_to_noteA

Append text to the end of a note, keeping the file's line endings. Either note names an existing note, or daily=true appends to today's daily note (created if missing) at '<daily_folder>/<date_format>.md', by default 'Daily/YYYY-MM-DD.md'. date="YYYY-MM-DD" picks another day. Good for logging ideas, tasks and meeting notes without rewriting anything.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 10 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness3/5

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.