Paper
Local-first AI document search with exact page and line citations. Ask in plain language, get the answer and the file, page and line it came from. One binary: a CLI and an MCP server for Claude and other agents. No account, no API keys, no telemetry — and it works offline.
Install
Or the prebuilt binary:
|
The first paper command finishes setup by itself: it registers a background
indexer (launchd / systemd), downloads the 134 MB default embedding model, and
indexes ~/Documents, ~/Downloads, ~/Desktop. Keyword search works from the
first second; semantic results appear when the model lands. Opt out with
PAPER_NO_AUTOSTART=1, and remove it with paper daemon-control uninstall.
Try it
Every result carries path + line_start + line_end, so a citation always
resolves to the lines it quotes. Answers are extractive: sources first, then one
or two sentences, and "not found" when the evidence is weak.
Why it is different
- Citations, not hallucinations. Hybrid FTS5 +
sqlite-vecwith rank fusion, plus abstention on low-confidence matches. - Private by construction. The index and embeddings stay on your machine;
PAPER_OFFLINE=1forbids all network access. - Agent-ready. MCP tools:
search_documents,read_source,answer_documents,index_documents,index_status,add_index_root,remove_index_root. Path vetting keeps prompt injections away from.ssh,.aws,.kubeand similar directories. - Broad input. PDF (exact page), DOCX (paragraph ranges), Markdown, TXT, HTML, CSV, JSON, EPUB, RTF, ODT, XLSX, PPTX; optional OCR for scans and images.
- 100+ languages with
multilingual-e5-small, including cross-lingual search.
Models
| Model | Size | Use |
|---|---|---|
bge-small-en-v1.5 |
134 MB | default English embeddings (auto-downloaded) |
multilingual-e5-small |
487 MB | 100 languages |
bge-reranker-base |
1.13 GB | optional precision boost |
Links
Licence
MIT OR Apache-2.0.