Get everything in
Drag in a file or a whole folder, or point your scanner at a watched folder.
Self-hosted document archive
Engrafo is a small, self-hostable home for your paperwork. Drop in a scan, a receipt or an ebook: it reads the text, files it in your folders, and finds it again by what it says. Everything stays in your own bucket and database.
Features
Upload a file and it goes straight into a bucket you own. A pipeline reads it, files it and indexes it, and its page shows what came out.
Drag in a file or a whole folder, or point your scanner at a watched folder.
Uploads go straight from the browser to your bucket, each with its own progress bar, and a folder upload keeps its subfolders. A scanner's network share works too: whatever lands in the watched folder is filed and then removed.
OCR turns scans into searchable PDF/A, and a vision model can read them too.
ocrmypdf turns pages upright, straightens them and gives them a text layer. A PDF that already has text keeps it. If you have a vision model, any OpenAI-compatible endpoint can re-read the pages instead, as plain text or Markdown with tables.
Find a document by what it says, even when you don't remember the words.
Every document's text is cut into passages and searched two ways at once: by meaning, with a small embedding model running on your own CPU, and by exact words, with Postgres full-text search. Results show the passage that matched.
Nested folders, drawn as a tree in the sidebar on every page.
File documents the way you file anything else. Drag a document or a folder onto another one, or use Move to. Names are unique within a folder, so a second scan.pdf becomes scan (2) instead of overwriting the first.
The date on a letter and the total on a receipt are read for you.
The date printed on a document is read from its text in the common formats, in English and German. A receipt's vendor, total and currency are read by plain rules, and left empty when they are unclear rather than guessed. Correct anything you like: your edits are never overwritten.
Merge pages scanned as separate files, or let Engrafo suggest which belong together.
Pick PDFs and images in any order and merge them into one document. The OCR text layer comes along, so nothing is read twice. Engrafo also spots a scan filed as several documents, such as a page per file or front and back apart, and suggests the merge. A vision model can double-check the cases it is unsure of.
Claude, or any MCP client, can search and read the folders you choose.
Share a folder from its menu, make an API key in Settings, and point an MCP client at your instance. It can list, search and read what is in that folder and the folders inside it. Nothing else is visible, and the tools only read.
Every step of every document has a status, and a failure tells you why.
The Processing page shows what is running, what is waiting and what has failed. A failed document says which step stopped and offers a retry, and any document can be processed again with OCR turned on or off. A restart picks up where it left off.
Your bucket, your database, your server. Nothing leaves it.
Files live in any S3-compatible bucket (RustFS comes in the compose file), metadata in Postgres, and search runs locally. Export the whole archive as a single file and import it into another instance. Sign in with a magic link or your own OpenID Connect provider.
Small on purpose
Engrafo keeps your documents and finds them again, and that is all it tries to do. Folders are the one way to organise, so there is nothing else to learn or maintain.
Get started
One compose file pulls everything from Docker Hub: Engrafo, Postgres,
RustFS for storage, and a one-shot job that creates the buckets.
Nothing to clone or build. Then open
http://ENGRAFO_HOST:3004 and sign in; the first account
is the admin.
mkdir engrafo && cd engrafo
curl -fsSLO https://raw.githubusercontent.com/cubicecho/engrafo/main/docker-compose.quickstart.yml
# The three secrets it refuses to start without, plus the address you reach it at.
printf 'ENGRAFO_HOST=%s\nBETTER_AUTH_SECRET=%s\nPOSTGRES_PASSWORD=%s\nRUSTFS_PASSWORD=%s\n' \
"$(hostname -f)" "$(openssl rand -hex 32)" "$(openssl rand -hex 24)" "$(openssl rand -hex 24)" > .env
docker compose -f docker-compose.quickstart.yml up -d