Skip to main content
Glama
metamind-vault-rag

metamind-vault-rag

by Nikitzu

metamind-vault-rag

A retrieval engine for a directory of markdown. It watches files, indexes them incrementally, and answers hybrid search queries over them.

Vectors live in sqlite-vec, keywords in SQLite FTS5, and the two are fused with reciprocal rank fusion. Embeddings run in-process through fastembed's ONNX models, so there is no server to stand up and no API key to hold. An optional cross-encoder rescore tier is available through the rerank extra.

Install

uv tool install metamind-vault-rag

Related MCP server: mnemonic

Entry points

Command

Purpose

metamind-vault-rag-watcher

Watch a directory and index changes

metamind-vault-rag-indexer

One-shot full reindex

metamind-vault-rag-http

Loopback HTTP search API

metamind-vault-rag-server

stdio MCP server

metamind-vault-rag-doctor

Environment and index diagnostics

Configuration

Variable

Meaning

VAULT_PATH

Directory to index

VAULT_COLLECTION

Collection name, which scopes the index files

VAULT_HTTP_PORT

Port for the loopback search API

VAULT_STATE_DIR

Where indexes, caches and logs are written. Defaults to ~/.vault-rag

Indexes are written to the state directory, named after the collection, and are never placed inside the corpus. Two clients pointed at different collections, or different state directories, coexist on one machine without either knowing about the other.

Consumers

Installed by any client that wants retrieval without running a service. The engine holds no opinion about who is asking: it names no client in its output, its environment variables are all VAULT_-prefixed, and it writes nothing outside the state directory.

Development

uv run --extra dev pytest

A client can be pointed at a working copy instead of a release with uv tool install --from /path/to/this/repo metamind-vault-rag.

Licence

MIT

Available Tools

3 tools
search_vaultC

Semantic search over the Obsidian Knowledge vault.

Inputs: query (required), k. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: semantic search, finding related notes, and expanding search via wikilinks. There is no overlap or ambiguity.

    Naming Consistency4/5

    All tools use snake_case and follow a verb-like pattern, but 'related_notes' uses an adjective rather than a verb, creating minor inconsistency with the verb_noun style of the other two.

    Tool Count5/5

    With only 3 tools, the set is minimal but well-scoped for the server's focus on vault search and navigation. It avoids superfluous tools while covering essential actions.

    Completeness5/5

    The server covers the core needs of a RAG vault assistant: searching semantically, exploring relationships, and expanding through linked notes. This is a complete set for its intended purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      A
      maintenance
      A generic Markdown vault MCP server with FTS5 full-text search, semantic vector search, frontmatter-aware indexing, incremental reindexing, and non-markdown attachment support that exposes search, read, write, and edit tools.
      48
      39
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for on-device hybrid search over markdown knowledge bases, combining BM25, vector embeddings, and LLM reranking with link graph and time decay.
      23 npm
      MIT