Xberg is a Rust-core document intelligence framework supporting extraction of text, tables, metadata, and images from 101 formats (115 file extensions) plus code intelligence for 371 programming languages. It offers 15 language bindings (Rust, Python, Node.js, Go, Java, C#, Ruby, PHP, Elixir, Dart, Swift, Zig, WASM, Kotlin, C FFI) with CLI, REST API, and MCP server interfaces. The MCP server provides 9 tools (extract, extract_batch, detect_mime_type, cache_stats, list_formats, cache_clear, get_version, cache_manifest, cache_warm), 3 prompts (extract_document, extract_with_ocr, semantic_search), and 4 resources (formats, models, OCR languages, embedding presets).
Use cases
Extract text and tables from PDFs, Office documents, images, etc., for RAG or data processing.
Perform OCR on scanned documents with backends like Tesseract and PaddleOCR.
Extract functions, classes, imports, and other structures from source code for code analysis.
Use local or remote LLMs for schema-driven structured data extraction and document understanding.