// rag · xberg-io/xberg

xberg

Polyglot document intelligence in Rust — extract text, tables and structured data from 106 formats.

★ 9.4k stars⑂ 590 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

xberg is an open-source rag & knowledge project by xberg-io (xberg-io/xberg on GitHub). It has 9,388 GitHub stars and 590 forks, is released under the MIT license, and was last updated on GitHub on 8 October 2026.

Repository
xberg-io/xberg
GitHub stars
9,388
Forks
590
License
MIT
Last updated on GitHub
8 October 2026
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Pick the binding for your stack (Python, Node, CLI, Docker or MCP) and the document types you need to extract, including whether OCR is required.

  2. Get the project

    Clone xberg-io/xberg from GitHub (or use the install path in the run steps below) and skim its README for the parts relevant to your goal.

  3. Install and configure

    Install the package for your language — for Python that is a single pip install — or pull the Docker image for the server modes.

  4. Run your first task

    Extract one real document and inspect the structured output (text, tables and metadata), then wire it into your pipeline or MCP client.

// features

Why people love it

106 formats, one API

Extract text, metadata, images, tables and structured data from 106 formats across roughly 140 file extensions and 56 MIME aliases.

Fifteen bindings plus servers

Use it from fifteen language bindings, or as a CLI, REST API or MCP server for agent tooling.

Code intelligence for 371 languages

Beyond documents, xberg understands code across 371 languages for mixed code-and-docs corpora.

Multiple OCR backends

Choose Tesseract (native or WASM), PaddleOCR via ONNX, the pure-Rust Candle backend, or vision LLMs for scanned pages.

Structured LLM extraction

Pull schema-shaped structured data out of documents with LLM-backed extraction when rules are not enough.

Enrichment built in

Entity recognition, PII redaction (phone, email, SSN, cards, addresses), summarisation, translation and page classification are included.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source from the official GitHub repository for xberg.

    git clone https://github.com/xberg-io/xberg.git
    cd xberg
  2. Install for Python

    Install the Python binding exactly as the README's installation table shows.

    pip install xberg
  3. Or run the Docker image

    Run the published container image for the server/CLI deployment modes.

    docker run ghcr.io/xberg-io/xberg:latest  # see README for the exact mode arguments
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains xberg?

xberg-io, through the xberg-io/xberg repository, with documentation at docs.xberg.io.

Is xberg free to use?

Yes — the project is open source under the MIT license as recorded for this listing. You can use, modify and distribute it under the MIT terms.

Does xberg need a paid API key?

Core extraction and OCR run locally with no key. Optional vision-LLM OCR and LLM extraction/enrichment use a provider you configure, with your own key.

How does xberg compare to calling a hosted document-parsing API?

Hosted parsers charge per page and require uploading documents. xberg is a local Rust engine you embed in your own stack across fifteen languages — you operate it yourself, and only optional LLM features need a provider.

How do I get started with xberg?

Clone the repository (or use the documented installer), follow the install and configure steps on this page, and run the smallest real task first — extract one real document and inspect the structured output (text, tables and metadata), then wire it into your pipeline or MCP client.

// keep exploring

Similar tools

RAG & Knowledge

opendataloader-pdf

Turn PDFs into AI-ready data: extract Markdown, JSON and tables — and auto-tag for accessibility

★ 29.5k starsApache-2.0
View guide →
RAG & Knowledge

seekdb

seekdb — the AI-native search database unifying vector, text and structured data for agents.

★ 3.1k starsApache-2.0
View guide →
RAG & Knowledge

PaddleOCR

Lightweight OCR toolkit turning PDFs and images into structured, LLM-ready data in 100+ languages

★ 90.8k starsApache-2.0
View guide →
RAG & Knowledge

helix-db

An OLTP graph database with native vector and full-text search, built in Rust on object storage.

★ 6.1k starsApache-2.0
View guide →
RAG & Knowledge

rags

Build a ChatGPT over your own data using natural language and LlamaIndex.

★ 6.5k starsMIT
View guide →
RAG & Knowledge

trustgraph

The semantic intelligence layer for ontologies — governed, traceable knowledge for AI agents

★ 2.8k starsApache-2.0
View guide →
// alternatives

Alternatives in RAG & Knowledge

The most-starred other RAG & Knowledge projects in the LibreAI catalogue — the realistic shortlist if xberg is not the right fit.

Get xberg

Free and open — grab the source, star the repo, and start creating.