文档智能框架 是 AI Skill Hub 本期精选MCP工具之一。已获得 8.5k 颗 GitHub Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
文档智能框架 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
文档智能框架 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/xberg-io/xberg
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "xberg"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 文档智能框架 执行以下任务... Claude: [自动调用 文档智能框架 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"______": {
"command": "npx",
"args": ["-y", "xberg"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/xberg-io/assets@v1/banner/readme-banner-dark.svg"> <img alt="Xberg" width="420" src="https://cdn.jsdelivr.net/gh/xberg-io/assets@v1/banner/readme-banner-light.svg"> </picture> </p>
<details> <summary><strong>Full feature list</strong></summary>
<details> <summary><strong>CLI Tool</strong></summary>
brew install xberg-io/tap/xberg
Windows users can install the same binary through Scoop:
scoop bucket add xberg https://github.com/xberg-io/scoop-bucket
scoop install xberg
14 commands: extract, batch, detect, formats, version, cache, tree-sitter, doctor, serve, mcp, api, embed, chunk, and completions.
See CLI usage guide for detailed documentation.
</details>
<details> <summary><strong>Docker</strong></summary>
docker pull ghcr.io/xberg-io/xberg:latest
Run in API, CLI, or MCP modes. See Docker guide for examples.
</details>
<details> <summary><strong>REST API Server</strong></summary>
xberg serve --host 0.0.0.0 --port 8000
One POST endpoint handles all formats. Returns JSON or Markdown. Stream large files. See API server guide.
</details>
<details> <summary><strong>MCP Server</strong></summary>
xberg mcp --transport stdio
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). 4 resources (formats, models, OCR languages, embedding presets).
Add to Claude Desktop or Cursor:
{
"mcpServers": {
"xberg": { "command": "xberg", "args": ["mcp"] }
}
}
</details>
| Mode | Command | Transport | Use case |
|---|---|---|---|
| **Library** | xberg::extract() | Async functions | Embed in your application |
| **CLI** | xberg extract document.pdf | 14 commands | Scripts, batch jobs, CI/CD |
| **REST API** | xberg serve | HTTP POST | Microservice, serverless deployment |
| **MCP Server** | xberg mcp | stdio or HTTP | Claude, Cursor, IDE agents |
| **Docker** | docker run ghcr.io/xberg-io/xberg | All modes | Container deployment |
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.
---
<details> <summary><strong>All 14 commands</strong></summary>
| Command | Subcommands | Purpose |
|---|---|---|
extract | — | Extract text from a single document (path, URL, or stdin) |
batch | — | Extract from multiple documents in parallel |
detect | — | Identify MIME type of a file |
formats | — | List all supported formats and MIME types |
version | — | Show Xberg version |
cache | stats, clear, manifest, warm | Manage extraction cache and models |
tree-sitter | download, list, cache-dir, clean | Manage code-intelligence grammars |
doctor | — | Diagnose the local installation and runtime dependencies |
serve | — | Start REST API server (default: <http://127.0.0.1:8000>) |
mcp | — | Start MCP server (stdio or HTTP transport) |
api | schema | Output OpenAPI 3.1 specification |
embed | — | Generate embeddings for text (local or provider-hosted) |
chunk | — | Split text into chunks (text, markdown, YAML, or semantic) |
completions | — | Generate shell completion scripts |
Run xberg --help or xberg <command> --help for detailed options.
</details>
---
<details open> <summary><strong>Python</strong></summary>
pip install xberg
See Python README for full documentation.
</details>
<details> <summary><strong>Node.js / TypeScript</strong></summary>
npm install @xberg-io/xberg
See Node.js README for full documentation.
</details>
<details> <summary><strong>Rust</strong></summary>
cargo add xberg
See Rust README for full documentation.
</details>
<details> <summary><strong>Go</strong></summary>
go get github.com/xberg-io/xberg/packages/go@latest
⚠️ The repository root is not a Go module —go get github.com/xberg-io/xbergwill fail. Always target the/packages/gosubdirectory as shown above.
See Go README for full documentation.
</details>
<details> <summary><strong>Java</strong></summary>
Available on Maven Central as io.xberg:xberg. See Java README for the dependency snippet.
</details>
<details> <summary><strong>C#</strong></summary>
dotnet add package XbergIo.Xberg
See C# README for full documentation.
</details>
<details> <summary><strong>Ruby</strong></summary>
gem install xberg
See Ruby README for full documentation.
</details>
<details> <summary><strong>PHP</strong></summary>
composer require xberg-io/xberg
See PHP README for full documentation.
</details>
<details> <summary><strong>Elixir</strong></summary>
Add {:xberg, "~> 1.0"} to your mix.exs dependencies. See Elixir README for full documentation.
</details>
<details> <summary><strong>WebAssembly</strong></summary>
npm install @xberg-io/xberg-wasm
See WebAssembly README for full documentation.
</details>
<details> <summary><strong>Kotlin (Android)</strong></summary>
Available on Maven Central as io.xberg:xberg-android. See Kotlin README for the dependency snippet.
</details>
<details> <summary><strong>Swift</strong></summary>
Add via Swift Package Manager. See Swift README for full documentation.
</details>
<details> <summary><strong>Dart / Flutter</strong></summary>
dart pub add xberg
See Dart README for full documentation.
</details>
<details> <summary><strong>Zig</strong></summary>
Add via zig fetch. See Zig README for full documentation.
</details>
<details> <summary><strong>C/C++ (FFI)</strong></summary>
Build from source as part of this workspace. See C (FFI) README for full documentation.
</details>
107 formats across 140 unique file extensions, with 56 compatibility MIME aliases, intelligent format detection, and comprehensive metadata extraction.
| Category | Formats | Capabilities |
|---|---|---|
| **Word Processing** | .docx, .docm, .doc, .dotx, .dotm, .dot, .odt, .pages, .wpd, .wp, .wp5, .wp6 | Full text, tables, images, metadata, styles |
| **Spreadsheets** | .xlsx, .xlsm, .xlsb, .xls, .xla, .xlam, .xltm, .xltx, .xlt, .ods, .numbers | Sheet data, formulas, cell metadata, charts |
| **Presentations** | .pptx, .pptm, .ppt, .pps, .ppsx, .potx, .potm, .pot, .odp, .key | Slides, speaker notes, images, metadata |
| **PDF** | .pdf | Text, tables, images, metadata, OCR support |
| **eBooks** | .epub, .fb2 | Chapters, metadata, embedded resources |
| **Database** | .dbf, .sqlite, .sqlite3, .db, .gpkg, .gpkx | Bounded table extraction, schema metadata, GeoPackage detection |
| **Hangul** | .hwp, .hwpx | Korean document format, text extraction |
| Category | Formats | Features |
|---|---|---|
| **Raster** | .png, .jpg, .jpeg, .gif, .webp, .bmp, .tiff, .tif | OCR, table detection, EXIF metadata, dimensions, color space |
| **Advanced** | .jp2, .jpg2, .j2c, .j2k, .jpc, .jbig2, .jb2, .pnm, .pbm, .pgm, .ppm | OCR via pure-Rust JPEG2000 decoder, JBIG2 support, table detection |
| **HEIC family** | .heic, .heics, .heif, .heifs, .hif, .avif, .avcs | EXIF metadata, optional pixel decoding |
| **Vector** | .svg | DOM parsing, embedded text, graphics metadata |
| Category | Formats | Features |
|---|---|---|
| **Audio** | .mp3, .mpga, .m4a, .wav, .webm | Whisper transcription |
| **MP4 audio track** | .mp4, .mpg4, .mp4v, .m4v | Audio-track transcription only |
| **MPEG audio track** | .mpeg, .mpg, .mpe, .m1v, .m2v | Audio-track transcription only |
| **WebM audio track** | .webm | Audio-track transcription only |
| Category | Formats | Features |
|---|---|---|
| **Markup** | .html, .htm, .xhtml, .xht, .xml, .kml, .svg | DOM parsing, metadata (Open Graph, Twitter Card), link extraction |
| **Structured Data** | .json, .geojson, .jsonl, .ndjson, .yaml, .yml, .toml, .csv, .tsv | Schema detection, nested structures, validation |
| **Text & Markdown** | .txt, .adoc, .asciidoc, .vtt, .md, .markdown, .commonmark, .qmd, .rmd, .djot, .dj, .mdx, .doctags, .rst, .org, .rtf | AsciiDoc, CommonMark, MyST Markdown, Quarto, R Markdown, Djot, MDX, DocTags, reStructuredText, Org Mode |
| Category | Formats | Features |
|---|---|---|
| **Email** | .eml, .msg, .pst | Headers, body (HTML/plain), attachments, threading |
| **Archives** | .zip, .tar, .tgz, .gz, .7z | File listing, nested archives, metadata, recursive extraction |
| Category | Formats | Features |
|---|---|---|
| **Citations** | .bib, .ris, .nbib, .enw | Structured parsing: RIS, PubMed/MEDLINE, EndNote XML, BibTeX/BibLaTeX |
| **Scientific** | .tex, .latex, .typ, .typst, .jats, .nxml | LaTeX, Typst, PubMed JATS |
| **Text notebooks** | .ipynb, .md, .py, .R, .jl | Jupyter, MyST-NB, Jupytext percent/light, saved outputs, cell visibility tags |
| **Publishing** | .fb2, .docbook, .dbk, .docbook4, .docbook5, .opml | FictionBook, DocBook XML, OPML outlines |
高质量的开源MCP工具,支持多语言
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,文档智能框架 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | xberg |
| 原始描述 | 开源MCP工具:A polyglot document intelligence framework with a Rust core. Extract text, metad。⭐8.5k · Rust |
| Topics | 文档智能Rust多语言 |
| GitHub | https://github.com/xberg-io/xberg |
| License | NOASSERTION |
| 语言 | Rust |
收录时间:2026-06-25 · 更新时间:2026-06-26 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端