Memory
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k166 new stars in the last 7 days
Generic markdown vault MCP with hybrid search
Generic markdown vault MCP with hybrid search
Documentation | Config wizard | PyPI | Docker
Give Claude, or any MCP client, a folder of Markdown notes to search, read and write. An Obsidian vault works as it is.
read fetches the whole section. See Embeddings and Choosing an embedding store.markdown-vault-mcp search "term" --server https://vault.example/mcp; read notes, list metadata, collect context, traverse note links and discover paths with query path "topic" --fuzzy using the same connection options. Use query metadata, query body or query note for exact lexical pages, query count for the full matching population, and query aggregate --by tag for buckets. Use --json for native payloads or --agent for escaped records. See the CLI reference.-v for diagnostics. See Using the terminal.query_documents, count_documents and aggregate_documents. See Reader tools and the library API.search_paths; approximate coverage and output truncation are reported separately. See Reader tools.inspect_citations to join literal footnote labels to source records, without opening sources or judging support. Find indexed notes citing a resource with find_citing_notes. See citation inspection.read(path, include_content=False) returns a note's or attachment's etag, the lowercase hex SHA-256 of its raw bytes, with its size and modification time, at any size and without sending the file. The server still reads the whole file to hash it. See Reader tools.{"type": null} finds searchable notes without a type, leaving out index.md and log.md. MARKDOWN_VAULT_MCP_EMBED_INPUT can keep searchable fields away from the embedding provider (what reaches it). Writes preserve supplied field order, including nested mappings; edit, append and OKF verification retain surviving fields in order. The OKF provenance stamp and okf_verify change only the fields they write and keep the rest of the header byte for byte; other writes that serialize a header may change YAML comments and formatting.write, edit, append, replace_text, delete, rename, move_folder, fetch, git_sync, the okf_* tools, create_upload_link) are on by default and hidden when MARKDOWN_VAULT_MCP_READ_ONLY=true. Replacing a file takes the etag from reading it. replace_text makes one literal or regular-expression change across many notes' bodies: a dry run shows the diff of every note it would change, and only the plan it returns can apply it. A rename still accepts an etag that only the server's own link rewrites made stale. Per-folder .conventions.md rules reach the client as it writes; a folder without one falls back to the deprecated _conventions.md.stats report known problems sending or receiving changes; no report is not an all-clear. History and conflict recovery preserve carriage returns in filenames. See Git integration.MARKDOWN_VAULT_MCP_REPORT_UNRESOLVED_LINKS=true, write, edit and append name each link they added that doesn't resolve. Markdown and reference links first resolve relative to their source; when that path is missing, the index searches the vault for the destination.unverified. Reads report review applicability apart from the recorded claims: supplied reviews have no snapshot binding, so applicability to current content remains unknown. Annotations and audits flag malformed provenance while notes remain readable and searchable. config://vault and stats report each OKF capability (stamping, index upkeep, log upkeep, okf_verify) as configured or not, effective or not, and the reason (checking what is in effect). An operator command, admin repair-log, previews and then removes the frontmatter blocks 4.1.0 stacked in log.md, keeping the complete original (legacy log repair). See OKF.The tools reference lists every tool. The same engine is a Python library: see the Vault API.
What the server can reach, what it changes and who gets in is set out in the security model; the block below says who it serves and where it stops.
It suits one person or a small team who keep notes as Markdown files and want Claude to search them, follow their links and write back into them, on their own machine or as a shared server. It reaches the vault folder, plus only what you configure: a git remote, an embedding or summarizing model, and the URLs a fetch call names.
What it assumes:
MARKDOWN_VAULT_MCP_SERVER_NAME and advertise its note URLs.numpy store) answered those searches about ten times faster, and peaked at about 1.25 GB while searching. Choosing an embedding store has the measured costs and the limits.MARKDOWN_VAULT_MCP_INDEX_PATH, the index and that file stay in memory and are rebuilt at each start. For Docker, an optional search-data volume separates the index from persistent server state.Reach for something else for a corpus beyond the 227,640 sections it was measured at (a vector database behind a retrieval pipeline), for mostly scanned or office documents (a document management system with text recognition), or for many users who must not see each other's notes (a multi-tenant knowledge platform): every caller the server admits gets every tool it exposes.
Pick the client you use. Each line installs the released version; the Get started tutorials carry on from there.
Claude Desktop. Download the .mcpb bundle from the releases page and open it with Claude Desktop (or Settings › Extensions › Advanced settings › Install Extension…). Claude Desktop asks for the required settings itself. Tutorial.
Claude Code. Two commands inside Claude Code; the second asks for a scope. Tutorial.
/plugin marketplace add pvliesdonk/claude-plugins
/plugin install markdown-vault-mcp@pvliesdonk
A client that runs a command (stdio). To register it in Claude Code, see the Claude Code tutorial.
uv tool install "markdown-vault-mcp"
markdown-vault-mcp serve
A server for remote clients (streamable HTTP). A remote server connects the clients.
docker run --rm -p 8000:8000 --env-file .env ghcr.io/pvliesdonk/markdown-vault-mcp:latest
A compose.yml ships at the repository root and runs as-is: copy .env.example to .env, then docker compose up -d. Deploy covers authentication, OIDC, a reverse proxy and system packages (.deb/.rpm on the releases page). The server answers /health and /health/ready outside the MCP mount, and its get_server_info tool reports the running version.
The plain package covers keyword search, the write tools and git. Search by meaning, the file watcher, the summarize tool and keeping embeddings in PostgreSQL need extras; [all] installs every one:
uv tool install "markdown-vault-mcp[all]"
The Docker image, the .mcpb bundle and the Claude Code plugin already include them. Installation lists each extra.
For VS Code or Goose Desktop, use the remote vault connection examples or the local Goose configuration.
The file watcher requires watchdog 4.0.2 or later. Its mutation-only subscriptions suppress Linux read-event traffic during indexing while preserving file and directory changes; see the subscription reference.
When watching is active, external saves that replace a note from a hidden temporary file also trigger reindexing.
Everything is configured through environment variables with the MARKDOWN_VAULT_MCP_ prefix. The ones most installs set:
| Variable | Default | Required | Description |
|---|---|---|---|
MARKDOWN_VAULT_MCP_SOURCE_DIR | /data/vault | No | Path to the markdown vault directory. When it does not exist, or the server cannot access it, the server starts but every tool fails with a message saying which until it is fixed (managed git mode clones into it). Symbolic links inside the vault are followed on Python 3.13+. |
MARKDOWN_VAULT_MCP_READ_ONLY | false | No | Set to true to hide the write tools (write, edit, append, replace_text, delete, rename, move_folder, fetch, git_sync, the okf_* tools, create_upload_link) and serve a search-only vault. |
MARKDOWN_VAULT_MCP_WRITE_PROTECT_EXISTING | true | No | Refuse a write that would overwrite an existing file when no if_match etag is supplied. Deliberate replacement still works: read the file first, then pass if_match. Unaffected: edit, append, delete, rename. Set to false to allow blind overwrites. |
MARKDOWN_VAULT_MCP_REPORT_UNRESOLVED_LINKS | false | No | Set to true to have write, edit and append list, under unresolved_links, the target of each link the call added that get_broken_links reports. Links the note already held are left out. Off by default, leaving those responses unchanged. |
MARKDOWN_VAULT_MCP_DEFAULT_SEARCH_MODE | auto | No | Mode used when a search call omits 'mode': auto, keyword, semantic, or hybrid. The default 'auto' picks hybrid when embeddings are configured and keyword when they are not. Pin 'keyword' to keep unqualified searches off the embedding provider (each hybrid or semantic search embeds the query, which costs an API call on a metered provider). A configured semantic/hybrid default also degrades to keyword without embeddings, so no setting can make a vault unsearchable; an explicit mode= argument is never downgraded. |
MARKDOWN_VAULT_MCP_EMBEDDING_PROVIDER | (none) | No | Embedding provider: openai, voyage, ollama, or fastembed; setting it turns on search by meaning. Unset auto-detects from the environment (never voyage), but only when EMBEDDINGS_PATH is set or EMBEDDING_STORE=postgres. Any OpenAI-compatible endpoint works with openai plus OPENAI_BASE_URL; see the embeddings guide. |
MARKDOWN_VAULT_MCP_GIT_REPO_URL | (none) | No | HTTPS remote URL for managed git mode: the server clones into an empty SOURCE_DIR on startup (or validates an existing origin) and enables the pull loop, auto-commit, and deferred push. |
MARKDOWN_VAULT_MCP_FILE_WATCHER | true | No | Watch the vault for external filesystem changes; auto-disabled when git pull is active or a webhook can deliver (HTTP/SSE transports only). Requires the file-watcher extra. |
MARKDOWN_VAULT_MCP_SUMMARIZE_OPENAI_BASE_URL | (none) | No | OpenAI-compatible endpoint base URL for the summarize tool; setting it enables the tool even without an API key. The bare OPENAI_BASE_URL routes traffic only when a key already enables the feature. |
Every variable the server reads, the shared ones included, is in the configuration reference; .env.example lists the same surface in copy-paste form, and the config wizard writes one for your deployment.
CONTRIBUTING.md and SECURITY.md at the root..md extension; frontmatter is optional by default; REQUIRED_FIELDS leaves a note without the fields out of the index, and a write that creates one or removes a field from a note names the missing fields in its result.asyncio.to_thread(). File writes return after saving, while index updates run in the background. Index-dependent mutations wait for prior writes; see index freshness.INDEX_SEMANTICS_VERSION so deployed vaults rebuild themselves once on upgrade.get_index_status reports missing required fields and malformed YAML after an index refresh, and clears repaired or removed paths. When a refresh cannot save that list, the status says since when it has been stale.The full decision log lives in the design document.
Knowledge graph-based persistent memory system
MOmodelcontextprotocol/servers92k166 new stars in the last 7 days
Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.
PLplastic-labs/honcho8.4k86 new stars in the last 7 days
Semantic search across Sui documentation and knowledge sources, powered by kapa.ai
MYMystenLabs/sui7.8k
Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.
OOoomol-lab/pdf-craft6.8k30 new stars in the last 7 days
Access Gemini Notebook via CLI and MCP Server.
JAjacob-bd/gemini-notebook-mcp-cli6.6k75 new stars in the last 7 days
Search, read and cite papers from your Zotero library in any AI agent.
5454yyyu/zotero-mcp6.1k82 new stars in the last 7 days