QMD - Query Markup DocumentsBLOCK
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An on-device search engine for everything you need to remember. Index your markdown notes, meeting transcripts, documentation, and knowledge bases. Search with keywords or natural language. Ideal for your agentic flows.
QMD combines BM25 full-text search, vector semantic search, and LLM re-ranking—all running locally via node-llama-cpp with GGUF models.
flowchart LR Q[User Query] --> X[Query Expansion] Q --> FTS[BM25 Search] Q --> VS[Vector Search] X --> HYDE[HyDE] X --> VEC[Vec dense sentences] X --> LEX[Lex BM25 keywords] HYDE --> VS VEC --> VS LEX --> FTS VS --> RRF[Reciprocal Rank Fusion] FTS --> RRF RRF --> RR[LLM Reranker] RR --> OUT[Final ranked results]
Typed expansions are routed exclusively: lex → BM25/FTS, vec and hyde → vector search. The original query is sent to both backends, then fused with RRF and reranked.
You can read more about QMD's progress in the CHANGELOG.
Quick Start
# Install globally (Node or Bun) npm install -g @tobilu/qmd # or bun install -g @tobilu/qmd # Or run directly npx @tobilu/qmd ... bunx @tobilu/qmd ... # Create collections for your notes, docs, and meeting transcripts qmd collection add ~/notes --name notes qmd collection add ~/Documents/meetings --name meetings qmd collection add ~/work/docs --name docs # Add context to help with search results, each piece of context will be returned when matching sub documents are returned. This works as a tree. This is the key feature of QMD as it allows LLMs to make much better contextual choices when selecting documents. Don't sleep on it! qmd context add qmd://notes "Personal notes and ideas" qmd context add qmd://meetings "Meeting transcripts and notes" qmd context add qmd://docs "Work documentation" # Generate embeddings for semantic search qmd embed # Search across everything qmd search "project timeline" # Fast keyword search qmd vsearch "how to deploy"
a35921638296OBSERVED · 2026-10-12Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add qmd --env HF_TOKEN=${HF_TOKEN} -- npx -y @tobilu/[email protected]{
"mcpServers": {
"qmd": {
"command": "npx",
"args": [
"-y",
"@tobilu/[email protected]"
],
"env": {
"HF_TOKEN": "${HF_TOKEN}"
}
}
}
}Exposed tools (5)
5 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get | read | |
metadata | read | |
multi_get | read | |
query | read | |
status | read |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- declared (5 observation(s))
- Shell
- declared (5 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (8)
exec(sql: string): void;
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), "../../package.json");
import { createStore } from "../../src/store.js";import { checkEmbeddingVectorSamples } from "../../src/cli/qmd.js";import { LlamaCpp, setDefaultLlamaCpp } from "../../src/llm.js";import { createStore, getEmbeddingVectorSamples } from "../../src/store.js";for (const origin of ["http://localhost:8181", "http://127.0.0.1:8181", "http://[::1]:8181"]) {better-sqlite3
Gates applied: no_behavioural_pass.
a35921638296full audit observations/trust-audit/mcp-server/tobi__qmd.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | a35921638296 | BLOCK | D | 69 | first audit |
Questions
What is the @tobilu/qmd MCP server?
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
What tools does @tobilu/qmd expose?
5 in total: 5 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is @tobilu/qmd safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.
What credentials does @tobilu/qmd need?
It reads HF_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does @tobilu/qmd run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @tobilu/qmd at 2.8.3.
How current is this page?
The grade is for one exact copy of the source (a35921638296), read on 2026-10-12. The repository is watched and re-audited when it changes.