Vault Semantic

•

Indexes Markdown files for hybrid full-text and semantic search, providing a local server for agents to access a structured knowledge base.

Vault Semantic is a local semantic search server designed as a sidecar for MCP-enabled agents like OpenClaw. It indexes Markdown files within a specified vault root, chunking content by headings and paragraphs, then embedding these chunks using OpenAI's `text-embedding-3-small` model. The tool offers a powerful hybrid search mechanism, combining FTS5 keyword search with cosine-similarity semantic search and folder-based ranking. Crucially, the original Markdown files remain the source of truth, with the SQLite database serving solely as a derived search index that can be rebuilt at any time. All functionalities, including search, retrieval, related notes, and reindexing, are exposed to agents via standard I/O (stdio) as MCP tools.

主要功能

01Hybrid full-text and semantic search for Markdown content
02Uses OpenAI embeddings (text-embedding-3-small) for semantic understanding
03File watcher for real-time index synchronization with vault changes
04Chunks content by headings for precise embedding and retrieval
050 GitHub stars
06Exposes a suite of tools (search, get, related, recent, reindex, status) to agents over stdio

使用案例

01Providing intelligent knowledge retrieval for AI agents
02Integrating advanced search capabilities into MCP-enabled applications
03Enabling semantic search over personal or team Markdown vaults