Xberg MCP Server
Supports structured output extraction and embeddings using Google's generative AI models, enabling document understanding and search.
Integrates with Hugging Face models for enhanced document analysis and embedding generation.
Supports local LLM inference via Ollama for structured extraction and embeddings, enabling offline document processing.
Supports structured output extraction and embeddings using OpenAI's language models, enabling document understanding and search.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Xberg MCP Serverextract tables from this spreadsheet"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Xberg
Extract clean text, tables, and structured data from documents and code — no format detection, no OCR setup, no stitched-together libraries. One engine, 15 language bindings, runs anywhere.
Xberg is the next iteration of Kreuzberg. Same document-intelligence engine, rebuilt and rebranded under a fresh v1 line.
Feed documents → get clean text, tables, metadata, transcripts, code intelligence · Run it library, CLI, REST API, or MCP server · No GPU needed · Stream multi-GB files · Cache results.
Documents · Images · Spreadsheets · Email · Archives · Code · Audio · Video
Quick start · What you get · Capabilities · CLI · Docs
What you get
Point Xberg at anything — a PDF, a spreadsheet, a scanned image, an audio file, a source tree — and get back clean, structured content you can use right away. One core does the format detection, reading, and extraction, so you don't assemble a pipeline yourself. Call it from Rust, Python, Node.js, Go, Java, C#, Ruby, PHP, Elixir, Dart, Swift, Zig, WASM, Kotlin, or C FFI, and run it as a library, CLI tool, REST API, or MCP server.
What it does | How |
Extract from 97 formats | PDFs, Office, images, HTML, email, archives, scientific publications, and code — intelligent MIME detection, streaming for large files. |
6 output formats | Plain text, Markdown, Djot, HTML, JSON tree structure, or Structured (JSON with OCR metadata and bounding boxes). |
Code intelligence | Functions, classes, imports, symbols, docstrings from 306 programming languages. Syntax-aware chunking for RAG pipelines. |
Crawl & recurse | Follow URLs, extract documents from within documents (nested archives, embedded PDFs). Auto/Document/Crawl modes. |
OCR on demand | Tesseract, PaddleOCR, Candle, or VLM backends — fallback chains, extensible via plugins. Confidence scores. Language auto-detection. |
Transcription | Whisper ONNX for audio/video tracks (MP3, M4A, WAV, WebM, MP4). |
Embeddings & search | Local (ONNX models) or provider-hosted (OpenAI, Anthropic, Google, 143 providers via liter-llm). Reranking. |
Structured outputs | LLM-powered extraction — local (Ollama, LM Studio, vLLM) or remote (OpenAI, Anthropic, Google). |
Enrichment | NER, redaction, summarization, translation, QR code detection, page classification, keyword extraction (YAKE/RAKE), language detection, layout detection, table extraction, token reduction (TOON). |
Batch & parallel | Process 100s of documents in parallel. Per-file timeouts. Configurable batch concurrency ( |
Caching | Content-hash cache keys — skip re-extraction when the file and config are unchanged. |
Deployment | Library, CLI (12 commands), REST API ( |
Related MCP server: doc-ops-mcp
Installation
Language Packages
pip install xbergSee Python README for full documentation.
npm install @xberg-io/xbergSee Node.js README for full documentation.
cargo add xbergSee Rust README for full documentation.
go get github.com/xberg-io/xbergSee Go README for full documentation.
Available on Maven Central as io.xberg:xberg. See Java README for the dependency snippet.
dotnet add package XbergSee C# README for full documentation.
gem install xbergSee Ruby README for full documentation.
composer require xberg-io/xbergSee PHP README for full documentation.
Add {:xberg, "~> 1.0"} to your mix.exs dependencies. See Elixir README for full documentation.
npm install @xberg-io/xberg-wasmSee WebAssembly README for full documentation.
Available on Maven Central as io.xberg:xberg-android. See Kotlin README for the dependency snippet.
Add via Swift Package Manager. See Swift README for full documentation.
dart pub add xbergSee Dart README for full documentation.
Add via zig fetch. See Zig README for full documentation.
Build from source as part of this workspace. See C (FFI) README for full documentation.
CLI & Deployment
brew install xberg-io/tap/xberg12 commands: extract, batch, detect, formats, version, cache (stats/clear/manifest/warm), serve, mcp, api, embed, chunk, completions.
See CLI usage guide for detailed documentation.
docker pull ghcr.io/xberg-io/xberg:latestRun in API, CLI, or MCP modes. See Docker guide for examples.
xberg serve --host 0.0.0.0 --port 8000One POST endpoint handles all formats. Returns JSON or Markdown. Stream large files. See API server guide.
xberg mcp --transport stdio9 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). 4 resources (formats, models, OCR languages, embedding presets).
Add to Claude Desktop or Cursor:
{
"mcpServers": {
"xberg": { "command": "xberg", "args": ["mcp"] }
}
}AI Coding Assistants
Install the Xberg plugin from xberg-io/plugins. Ships extraction APIs, OCR backends, configuration, and language conventions.
/plugin marketplace add xberg-io/plugins
/plugin install xberg@xberg/plugins add https://github.com/xberg-io/pluginsSearch for xberg and select Install Plugin.
Settings → Plugins → Add from URL → https://github.com/xberg-io/plugins, then select xberg.
gemini extensions install https://github.com/xberg-io/pluginsdroid plugin marketplace add https://github.com/xberg-io/plugins
droid plugin install xberg@xbergcopilot plugin marketplace add https://github.com/xberg-io/plugins
copilot plugin install xberg@xbergAdd to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@xberg-io/opencode-xberg"]
}Quick Start
Extract text from a document:
use xberg::{extract, ExtractInput, ExtractionConfig};
#[tokio::main]
async fn main() -> xberg::Result<()> {
let config = ExtractionConfig::default();
let output = extract(
ExtractInput::from_uri("document.pdf"),
&config
).await?;
println!("{}", output.results[0].content);
Ok(())
}Common use cases — see Quick start guide for language-specific examples, OCR, batch processing, and API configuration.
Capabilities
Supported File Formats (96)
97 file formats across 8 major categories with intelligent format detection and comprehensive metadata extraction.
Office Documents
Category | Formats | Capabilities |
Word Processing |
| Full text, tables, images, metadata, styles |
Spreadsheets |
| Sheet data, formulas, cell metadata, charts |
Presentations |
| Slides, speaker notes, images, metadata |
| Text, tables, images, metadata, OCR support | |
eBooks |
| Chapters, metadata, embedded resources |
Database |
| Table data extraction, field type support |
Hangul |
| Korean document format, text extraction |
Images (OCR-Enabled)
Category | Formats | Features |
Raster |
| OCR, table detection, EXIF metadata, dimensions, color space |
Advanced |
| OCR via pure-Rust JPEG2000 decoder, JBIG2 support, table detection |
HEIC family |
| EXIF metadata, optional pixel decoding |
Vector |
| DOM parsing, embedded text, graphics metadata |
Audio & Video
Category | Formats | Features |
Audio |
| Whisper transcription |
Video audio track |
| Audio-track transcription only |
Web & Data
Category | Formats | Features |
Markup |
| DOM parsing, metadata (Open Graph, Twitter Card), link extraction |
Structured Data |
| Schema detection, nested structures, validation |
Text & Markdown |
| CommonMark, GFM, Djot, MDX, reStructuredText, Org Mode |
Email & Archives
Category | Formats | Features |
| Headers, body (HTML/plain), attachments, threading | |
Archives |
| File listing, nested archives, metadata, recursive extraction |
Academic & Scientific
Category | Formats | Features |
Citations |
| Structured parsing: RIS, PubMed/MEDLINE, EndNote XML, BibTeX/BibLaTeX |
Scientific |
| LaTeX, Typst, Jupyter notebooks, PubMed JATS |
Publishing |
| FictionBook, DocBook XML, OPML outlines |
Code Intelligence (306 Languages)
Extract structure from 306 programming languages via tree-sitter:
Feature | Description |
Structure Extraction | Functions, classes, methods, structs, interfaces, enums |
Import/Export Analysis | Module dependencies, re-exports, wildcard imports |
Symbol Extraction | Variables, constants, type aliases, properties |
Docstring Parsing | Google, NumPy, Sphinx, JSDoc, RustDoc, and 10+ formats |
Syntax-Aware Chunking | Split code by semantic boundaries for RAG pipelines |
Diagnostics | Parse errors with line/column positions |
Powered by tree-sitter-language-pack.
Output Formats (6)
Format | Use case | Example |
Plain | Raw text, no markup |
|
Markdown | Readable, structured, RAG-friendly |
|
Djot | Modern lightweight markup | Similar to Markdown but stricter |
HTML | Styled, browser-ready |
|
JSON | Machine-readable tree structure | Hierarchical sections with heading levels |
Structured | OCR metadata, bounding boxes | JSON with |
Deployment Modes
Mode | Command | Transport | Use case |
Library |
| Async functions | Embed in your application |
CLI |
| 12 commands | Scripts, batch jobs, CI/CD |
REST API |
| HTTP POST | Microservice, serverless deployment |
MCP Server |
| stdio or HTTP | Claude, Cursor, IDE agents |
Docker |
| All modes | Container deployment |
OCR Backends
Tesseract — Native C FFI (Linux/macOS/Windows) and WASM (browser)
PaddleOCR — ONNX Runtime, mobile-optimized models
Candle — Pure Rust, CPU-only, lightweight
VLM — GPT-4 Vision, Claude Vision, Gemini Vision, or 143 providers via liter-llm
Fallback chains. Extensible via plugin system.
Embeddings
Local (ONNX Runtime):
Preset models: fast, balanced (default), quality, multilingual
Dimensions: 384, 768, 1024
Provider-hosted:
OpenAI, Anthropic, Google, Hugging Face, Mistral, Cohere, and 143 providers total
Via liter-llm integration
Reranking:
Local ONNX rerankers (cross-encoder models)
Provider-hosted: Cohere Rerank, others
Structured LLM Extraction
Local engines: Ollama, LM Studio, vLLM
Remote: OpenAI, Anthropic, Google, Mistral, Cohere, and 143 providers via liter-llm
Schema validation. Temperature, top-p, frequency penalty tuning.
Enrichment
NER — GLiNER or LLM-based entity recognition
Redaction — Mask PII (phone, email, SSN, credit card, addresses)
Summarization — Document and section summaries via LLM
Translation — Multi-language via LLM
Page Classification — Tag document pages (cover, toc, content, etc.)
QR Code Detection — Extract and decode QR codes from images
Keyword Extraction — YAKE or RAKE algorithms
Language Detection — Detect document language
Layout Detection — RT-DETR + TATR models for document structure
Table Extraction — Cell-level structure and content
Token Reduction — TOON wire format (~30–50% fewer tokens than JSON)
CLI Reference
Command | Subcommands | Purpose |
| — | Extract text from a single document (path, URL, or stdin) |
| — | Extract from multiple documents in parallel |
| — | Identify MIME type of a file |
| — | List all 97 supported formats and MIME types |
| — | Show Xberg version |
|
| Manage extraction cache and models |
| — | Start REST API server (default: http://127.0.0.1:8000) |
| — | Start MCP server (stdio or HTTP transport) |
|
| Output OpenAPI 3.1 specification |
| — | Generate embeddings for text (local or provider-hosted) |
| — | Split text into chunks (text, markdown, YAML, or semantic) |
| — | Generate shell completion scripts |
Run xberg --help or xberg <command> --help for detailed options.
Documentation
Full guides, API references for every binding, format reference, and configuration docs live at xberg.io.
Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
Join our Discord community for questions and discussion.
Part of Xberg.dev
Xberg is one of six open-source projects from Kreuzberg, Inc.:
Xberg — document intelligence: text, tables, metadata from 91+ formats with optional OCR.
Xberg Enterprise — managed extraction API with SDKs, dashboards, and observability.
crawlberg — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
html-to-markdown — fast, lossless HTML→Markdown engine.
liter-llm — universal LLM API client with native bindings for 14 languages and 143 providers.
tree-sitter-language-pack — tree-sitter grammars and code-intelligence primitives.
alef — the polyglot binding generator that produces every per-language binding across the 5 polyglot repos.
License
MIT License (MIT) — see LICENSE for details.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that provides comprehensive PDF processing capabilities including text extraction, image extraction, table detection, annotation extraction, metadata retrieval, page rendering, and document structure analysis.Last updated
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.Last updated1346139MIT
- Alicense-qualityDmaintenanceAn MCP server that uses the Docling toolkit to convert various document formats, including PDFs, Office files, images, and audio, into clean Markdown for AI processing. It supports multiple processing pipelines like VLM and ASR with intelligent auto-detection and job queue management.Last updated2MIT
- Alicense-qualityDmaintenanceUniversal MCP server for extracting text from various document formats including PDF, Excel, Word, CSV, and more, with support for streaming, limits, and markdown conversion.Last updated3MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamon8888/hacienda-private'
If you have feedback or need assistance with the MCP directory API, please join our Discord server