free-ocr-api

Free self-hosted OCR & document data extraction API. Turn PDFs, scans, invoices, receipts & bank statements into JSON, CSV or Excel. No API keys, no cloud. Web UI, CLI, folder autopilot, MCP server

A new way for AI to search for data
View on GitHub
2GitHub stars
21commits on main
0forks
v1.1.0latest release, 2026-10-18

Python 88.1%, HTML 11.1%, Dockerfile 0.8% · created 2026-10-17 · last push 2026-10-25

What XERJ indexed

Snapshot

20 files · 106.6 KB

The whole repository at commit 27203709d1 (2026-10-17). main is 19 commits ahead.

Selected work

“Add freeocr package: OCR engine, extractors, API, CLI, MCP server”. 12 files, 2,256 lines in freeocr.

Licence

The repository

MIT

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-18. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

bank-statement-parserdata-entrydata-extractiondocument-aidocument-extractionfastapifree-apiidp

Example questions

The prompt

Paste it into your AI agent. It clones Ethos6/free-ocr-api at the pinned commit and indexes it on your machine.

Search the GitHub repository Ethos6/free-ocr-api with XERJ (https://hub.xerj.org/corpus/ethos6--free-ocr-api).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/Ethos6/free-ocr-api free-ocr-api && git -C free-ocr-api checkout 27203709d130c54e5b01912c3a33f18df7cb6f29
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./free-ocr-api --url http://127.0.0.1:9200 --prefix free-ocr-api --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.