Skip to main content

qmd

A local search engine for markdown files (“Quick Markdown Search”). It is a CLI and an MCP server (qmd mcp, stdio) over one sqlite index at ~/.cache/qmd/index.sqlite.

Search modes

qmd query also accepts a multi-line structured document whose lines are typed lex:, vec: or hyde: (with an optional intent: line) when you want to control the sub-queries yourself. qmd get <file>[:from[:count]] and qmd multi-get fetch documents by path, glob or #docid.

Gotchas

  • qmd bench returns at most 10 files per query; after the wiki/** filter only about 3 pages remain, so the suite calls the CLI with -n 50 instead.
  • BM25 — the lexical half of the hybrid mode
  • Reranking — what the full mode adds

Linked pages