---
title: "qmd alternatives 2026: local note search tools for AI agents"
canonical: "https://xerj.org/compare/qmd-alternatives-2026"
updated: "2026-12-01"
---

# qmd alternatives in 2026: local note search for AI agents

SHORT ANSWER · UPDATED 2026-12-01
What are the best qmd alternatives in 2026? For a local search engine that also covers code, logs and docs from one binary, XERJ. For a full self-hosted personal assistant over your docs, Khoj. For search inside an Obsidian vault, Obsidian Omnisearch. Stay with qmd when you want a notes-first CLI with context add, local BM25, vectors and rerank, and an MCP server.
**Key number:** qmd has 31,757 GitHub stars, is MIT licensed, and its latest release is v2.9.0, 17 Nov 2026. The headline feature is qmd context add, which attaches descriptive context to collection paths so agents can choose the right notes.
Stars and licences from the public GitHub API on 1 Dec 2026; latest releases from the GitHub releases API the same day. qmd features from the tobi/qmd README (CLI, collections, context add, MCP tools query and get).

**TL;DR** qmd (Query Markup Documents) is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25, vector search and local LLM reranking, and it exposes a CLI and an MCP server. Its distinctive command is `qmd context add`, which stores a short description on a collection path and returns that context with matching documents. Teams compare alternatives when they want one engine for notes plus code, a full personal assistant, or search inside Obsidian. Pick **XERJ** for local agent search over a whole workspace, **Khoj** for a self-hosted assistant, and **Obsidian Omnisearch** when the vault stays in Obsidian.

## Agent prompt

```text
Read https://xerj.org/compare/qmd-alternatives-2026.md. Ask me whether the corpus is an Obsidian vault, a folder of markdown, or a mixed workspace with code, whether the agent needs MCP, and whether we want a CLI or a full assistant, then tell me which qmd alternative fits and how to set it up.
```

## Pick one in ten seconds

- A notes-first CLI with context add, local hybrid search and MCP: **qmd**.
- One local engine for notes, code, docs and logs over MCP: **XERJ**.
- A self-hosted personal assistant over your docs: **Khoj**.
- Search that stays inside the Obsidian app: **Obsidian Omnisearch**.

## Why people look for a qmd alternative

qmd, published at [tobi/qmd](https://github.com/tobi/qmd) and installable as `@tobilu/qmd`, indexes markdown notes, transcripts and documentation on the device. Search modes include keyword (`qmd search`), semantic (`qmd vsearch`) and hybrid plus rerank (`qmd query`). The MCP server exposes `query` and `get` tools. The feature that stands out is `qmd context add`: you attach a short description to a collection or path (for example `qmd context add qmd://notes "Personal notes and ideas"`), and that description comes back with matching documents so an agent can pick the right set. Teams look at alternatives when the corpus is more than notes, when they want a full assistant, or when they already live in Obsidian.

## qmd vs XERJ

Both run locally, both speak MCP, and both mix keyword and semantic search. **qmd** is a TypeScript CLI aimed at notes and documentation, with collections, `context add`, and local models via node-llama-cpp (31,757 stars, MIT, v2.9.0, 17 Nov 2026). **XERJ** is a Rust binary that indexes mixed folders (markdown, code, PDFs, logs and more) and returns cited passages. Its latest release is v1.0.0-rc.105 (23 Nov 2026). `xerj mcp --http` serves Streamable HTTP at `http://127.0.0.1:9330/mcp`, read-only unless you pass `--allow-writes`; a non-loopback bind needs `XERJ_MCP_TOKEN`. The flag is `--http`. Choose qmd when the workflow is notes-first and context add is the feature you want; choose XERJ when agents must search the whole workspace, not only a notes collection.

## When to choose Khoj or Obsidian Omnisearch

Choose **Khoj** when you want a self-hosted personal AI: docs and web search, chat, custom agents and scheduled research (AGPL-3.0, 38,308 stars, latest release 2.0.0-beta.28, 25 Mar 2026). See [XERJ vs Khoj](https://xerj.org/compare/xerj-vs-khoj). Choose **Obsidian Omnisearch** when search should stay inside the Obsidian app, including PDFs and attachments (GPL-3.0, 2,207 stars, 1.32.0, 24 Oct 2026). Omnisearch is the in-app pick; XERJ can search the same vault folder over MCP with Obsidian closed. See [how to let an AI agent search an Obsidian vault](https://xerj.org/compare/xerj-vs-obsidian-omnisearch).

## qmd context add, and how XERJ relates

`qmd context add` stores a human-written description on a collection or path prefix. The most specific prefix wins, and the text is returned with search hits so an agent can decide which documents to open. XERJ does not copy that command. It relies on the index and citations from the files themselves. If path-level hints for the agent are the reason you tried qmd, start there. If you want one MCP server over notes plus code and logs, start with XERJ.

## Read next

- [How do I let an AI agent search my Obsidian vault?](https://xerj.org/compare/xerj-vs-obsidian-omnisearch)
- [XERJ vs Khoj](https://xerj.org/compare/xerj-vs-khoj)
- [Context7 alternatives 2026](https://xerj.org/compare/context7-alternatives-2026)
- [Best MCP server for local code search 2026](https://xerj.org/compare/best-mcp-server-local-code-search-2026)
- [Search Obsidian PDF and Word attachments](https://xerj.org/answers/search-obsidian-pdf-docx-attachments)

## FAQ

### What is the best qmd alternative in 2026?

XERJ fits local agent search over a mixed workspace. Khoj fits a full self-hosted assistant. Obsidian Omnisearch fits search inside Obsidian. Stay with qmd when you want a notes-first CLI, context add, and local hybrid search with MCP.

### What does qmd context add do?

It attaches a short description to a collection or path, using qmd:// virtual paths or a filesystem path. That description is returned with matching documents so an agent can choose the right group of notes. You can list and remove entries with qmd context list and qmd context rm.

### Is qmd open source?

Yes. tobi/qmd is MIT licensed, with 31,757 GitHub stars on 1 Dec 2026, and its latest release is v2.9.0, 17 Nov 2026.

### Can I use qmd and XERJ together?

Yes. Some people keep qmd on a notes collection (for context add) and point XERJ at the wider workspace (code, PDFs, logs) over MCP.

### How was this page checked?

Stars and licences came from the public GitHub API on 1 Dec 2026. Latest releases came from the GitHub releases API the same day. qmd commands and MCP tools were read from the tobi/qmd README.

## Evidence

- [tobi/qmd](https://github.com/tobi/qmd): 31,757 stars, MIT, v2.9.0, 17 Nov 2026. README: collections, context add, search / vsearch / query, MCP tools query and get.
- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,083 stars, Apache-2.0, v1.0.0-rc.105 (23 Nov 2026).
- [khoj-ai/khoj](https://github.com/khoj-ai/khoj): 38,308 stars, AGPL-3.0, 2.0.0-beta.28, 25 Mar 2026.
- [scambier/obsidian-omnisearch](https://github.com/scambier/obsidian-omnisearch): 2,207 stars, GPL-3.0, 1.32.0, 24 Oct 2026.
