Skip to main content

vault-index

Local hybrid search for markdown vaults and codebases, served as an MCP server. Keyword search (SQLite FTS5) and vector search (sqlite-vec, bge-small-en-v1.5 on CPU) are merged with reciprocal rank fusion, then a small cross-encoder (ms-marco-MiniLM-L-6-v2) reorders the top 10. Everything lives in one SQLite file on your machine; no cloud services.

Part of claude-second-brain, where every search change is measured against golden question sets and compared with naive grep and basic-memory (see its README for the numbers).

Use with Claude Code

claude mcp add vault-index -- uvx --python 3.12 vault-index

Then ask Claude to index a folder, for example: "index_paths ~/notes". After that, search_notes finds paraphrased answers with file path and heading. The first run downloads the two models (about 65 MB and 80 MB).

From a terminal

uvx --python 3.12 vault-index index ~/notes      # index a folder (progress on stderr); no paths re-syncs all
uvx --python 3.12 vault-index search "why did the probe fail"
uvx --python 3.12 vault-index --help

With no command it serves MCP over stdio. Indexing a large vault from the terminal first keeps the first tool call short.

Tools

  • index_paths(paths, reindex=False): add folders or files as sources and sync them. With no paths, re-syncs every source (new, changed and deleted files).
  • search_notes(query, limit=8, path_prefix=None): hybrid search; returns chunks with file path and heading path.
  • get_note(path): full text of an indexed file.
  • list_sources(), remove_source(path).

Markdown is chunked by heading. A .indexignore in a source folder lists relative paths to skip.

Settings

Env var Default
VAULT_INDEX_DB ~/.mcp-memory/vault-index.db
VAULT_MODEL_CACHE ~/.mcp-memory/models
VAULT_RERANK 1 (set 0 to skip the rerank; about 200 ms faster per search)

Python 3.10 to 3.13 (--python 3.12 keeps uvx off newer Pythons that onnxruntime does not support yet). MIT license.

Metadata

Release files for vault-index 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vault-index 0.4.1
File Size Uploaded Provenance
vault_index-0.4.1.tar.gz 10.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vault-index 0.4.1
File Interpreter ABI Platform
vault_index-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / vault_index-0.4.1.tar.gz

Download URL vault_index-0.4.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04e3dbc80bf8b0f25e235ec53371deb675a04ccf87cdcd189842bc4c10f76187
BLAKE2b-256 checksum
How to use checksums
1ecfc9d56bf08522cf22c3f10d68d8f60fe6b2c053009bfc28cd9b40e911d56d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / vault_index-0.4.1-py3-none-any.whl

Download URL vault_index-0.4.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e450f58765a5a6a760882a6b761c6b8ac5260e438aa53089b70659ae5c5ed648
BLAKE2b-256 checksum
How to use checksums
009a0885399bd04c1a84f4ebe23a09c4fec159997c017a796944cb0743b71400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for vault-index 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vault_index-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page