Xberg
Open-source document extraction engine for text, tables and OCR, run on your own
Xberg is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Version
- 1.5.4
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add xberg -- npx -y @xberg-io/xberg-cliAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"xberg": {
"command": "npx",
"args": [
"-y",
"@xberg-io/xberg-cli"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"xberg": {
"command": "npx",
"args": [
"-y",
"@xberg-io/xberg-cli"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"xberg": {
"command": "npx",
"args": [
"-y",
"@xberg-io/xberg-cli"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"xberg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@xberg-io/xberg-cli"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add xberg -- npx -y @xberg-io/xberg-cliOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.xberg]
command = "npx"
args = ["-y", "@xberg-io/xberg-cli"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"xberg": {
"command": "npx",
"args": [
"-y",
"@xberg-io/xberg-cli"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Or run: gemini mcp add -s user xberg npx -- -y @xberg-io/xberg-cli
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "xberg": { "command": "npx", "args": [ "-y", "@xberg-io/xberg-cli" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Xberg
Xberg takes a document, scan, spreadsheet, archive or source tree and returns clean text, tables, metadata and structured data in one pass. Format detection, reading and OCR are handled by a single core, so teams do not have to chain several libraries together to get usable output.
The engine is available as a library in many languages, as a command-line tool, as a REST server started with a serve command, and as an MCP server that AI clients can call over stdio. Results can be rendered as plain text, Markdown, Djot, HTML, a JSON tree or DocTags, and code files are parsed for functions, classes, imports and symbols.
It suits developers building retrieval pipelines, document classification or compliance review who want extraction to run on local hardware. Some capabilities such as URL ingestion, transcription and certain rerankers depend on optional feature flags at build time. Pro and Enterprise add a self-hosted platform container with single sign-on and an audit log, with pricing discussed by sales.
What it does
- Broad format coverage
- Reads PDFs, Office files, images, email, e-books, archives and structured data across 107 format families.
- OCR backends
- Offers Tesseract, PaddleOCR, Candle and vision-language model options with fallback chains for scanned pages.
- Code structure extraction
- Pulls functions, classes, imports and symbols from source files in a large set of programming languages.
- Multiple output formats
- Renders extracted content as plain text, Markdown, Djot, HTML, JSON tree or DocTags.
- Embeddings and reranking
- Generates local ONNX or provider-hosted embeddings and supports cross-encoder reranking for search.
- Schema-driven LLM extraction
- Produces JSON matching a supplied schema from documents using local or hosted language models.
Good for
- Turning PDFs and scanned invoices into clean text and tables for a vector database
- Parsing source code into symbols and chunks for code search and RAG
- Routing and classifying incoming documents by extracted content and metadata
- Reviewing contracts and regulatory filings while preserving table structure
- Giving an AI coding assistant a command-line or MCP tool for reading documents
Pricing
Open source
Core is free and MIT licensed; Pro and Enterprise are licensed and priced by sales.
Prices change. Check xberg.io before you buy.
Xberg FAQ
What is the difference between Core, Pro and Enterprise?
Core is the open-source extraction engine that you embed or self-host. Pro is the full platform as one container for a team, adding single sign-on and an audit log. Enterprise is the distributed platform for many teams, adding SAML, SCIM, data rooms and on-prem installs.
Is Xberg free to use?
The Core engine is MIT licensed and free for personal, internal and commercial use. Pro and Enterprise pricing is shared through a sales conversation.
Does Xberg need a GPU?
The project describes CPU as the default, and no GPU is required.
How do I run Xberg as an MCP server?
Run the xberg mcp command with stdio transport and add it to a client such as Claude Desktop or Cursor using the command and arguments shown in the README.
How do I add Xberg to Claude Code?
Run this command in your terminal: claude mcp add xberg -- npx -y @xberg-io/xberg-cli
What are the best alternatives to Xberg?
The closest alternatives to Xberg are Rag, Docs MCP, MCP Local Rag, Space Ocr and Doc Extract MCP.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.