metamind-vault-rag
metamind-vault-rag
一个用于 Markdown 目录的检索引擎。它监视文件,增量索引,并回答对它们的混合搜索查询。
向量存储在 sqlite-vec 中,关键词存储在 SQLite FTS5 中,两者通过倒数排名融合(reciprocal rank fusion)进行融合。嵌入通过 fastembed 的 ONNX 模型在进程内运行,因此无需搭建服务器,也无需持有 API 密钥。通过 rerank 额外选项,还可以使用可选的交叉编码器重新评分层。
安装
uv tool install metamind-vault-ragRelated MCP server: mnemonic
入口点
命令 | 用途 |
| 监视目录并索引更改 |
| 一次性完整重新索引 |
| 回环 HTTP 搜索 API |
| stdio MCP 服务器 |
| 环境和索引诊断 |
配置
变量 | 含义 |
| 要索引的目录 |
| 集合名称,用于限定索引文件的范围 |
| 回环搜索 API 的端口 |
| 索引、缓存和日志的写入位置。默认为 |
索引写入状态目录,以集合命名,绝不会放在语料库内部。指向不同集合或不同状态目录的两个客户端可以在同一台机器上共存,互不知晓对方。
消费者
由任何希望在不运行服务的情况下进行检索的客户端安装。引擎对提问者是谁不持任何立场:其输出中不提及任何客户端,其环境变量均以 VAULT_ 为前缀,并且不会在状态目录之外写入任何内容。
开发
uv run --extra dev pytest客户端可以通过 uv tool install --from /path/to/this/repo metamind-vault-rag 指向工作副本而不是发布版本。
许可证
MIT
Available Tools
3 toolsexpand_searchD
search_vault + wikilinks discovered in source files.
Inputs: query (required), k.
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
Scored across 3 tools
Each tool has a clearly distinct purpose: semantic search, finding related notes, and expanding search via wikilinks. There is no overlap or ambiguity.
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.
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.
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.
Maintenance
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Related MCP Servers
- AlicenseBqualityAmaintenanceA 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.481,502 PyPI41MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for on-device hybrid search over markdown knowledge bases, combining BM25, vector embeddings, and LLM reranking with link graph and time decay.MIT
- AlicenseAqualityBmaintenanceMCP server for local knowledge management with Markdown and PDF indexing using SQLite FTS5.515 npm2MIT
- AlicenseNot gradedqualityDmaintenanceA local, private hybrid-search MCP server for searching markdown notes using BM25 + vector fusion with local embeddings via Ollama.MIT