Atlas / MCP servers / tobi / QMD - Query Markup Documents

QMD - Query Markup DocumentsBLOCK

mcp/tobi/qmd

mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
5 5r · 0w · 0d
Transport
stdio
License
MIT
Stars
30,342
01

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"          
Read from source at commit a35921638296OBSERVED · 2026-10-12
02

Connect

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-code
claude mcp add qmd --env HF_TOKEN=${HF_TOKEN} -- npx -y @tobilu/[email protected]
claude-desktop
{
  "mcpServers": {
    "qmd": {
      "command": "npx",
      "args": [
        "-y",
        "@tobilu/[email protected]"
      ],
      "env": {
        "HF_TOKEN": "${HF_TOKEN}"
      }
    }
  }
}
03

Exposed tools (5)

5 read · 0 write · 0 destructive.

ToolRiskDescription
getread
metadataread
multi_getread
queryread
statusread
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/db.ts:132
exec(sql: string): void;
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/mcp/server.ts:137
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), "../../package.json");
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/_helpers/doctor-vector-check-worker.ts:1
import { createStore } from "../../src/store.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/_helpers/doctor-vector-check-worker.ts:2
import { checkEmbeddingVectorSamples } from "../../src/cli/qmd.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/_helpers/doctor-vector-check-worker.ts:3
import { LlamaCpp, setDefaultLlamaCpp } from "../../src/llm.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/_helpers/doctor-vector-sample-worker.ts:1
import { createStore, getEmbeddingVectorSamples } from "../../src/store.js";
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/mcp-origin-guard.test.ts:110
for (const origin of ["http://localhost:8181", "http://127.0.0.1:8181", "http://[::1]:8181"]) {
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
better-sqlite3
Why it matters. 1 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha a35921638296full audit observations/trust-audit/mcp-server/tobi__qmd.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-12a35921638296BLOCKD69first audit
06

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.

Advertisement