Crawlberg

io.github.xberg-io由 GitHub 账号 xberg-io 发布v1.12.3更新于 Oct 30, 2026

Scrape, crawl, and map websites to Markdown or JSON via local CLI.

概览

AI 生成的概览

Crawlberg 可抓取、爬取并梳理网站,把网页和整站内容转换成干净的 Markdown 或 JSON,供助手直接使用。

可以做什么
  • 把单个页面抓取为带元数据、链接、图片和 JSON-LD 的 Markdown
  • 并发爬取站点,可设置深度、页数上限、URL 过滤并遵守 robots.txt
  • 通过站点地图和链接跟踪梳理站点结构
  • 对依赖 JavaScript 的页面回退到无头浏览器渲染
  • 批量或流式处理大量 URL 并返回结构化提取结果
适用场景
适合需要把网页内容变成干净文本或结构化数据而非原始 HTML 的场景,例如收集文档、研究页面或站点清单,或把页面内容交给后续分析。
运行要求
以本地进程通过 stdio 运行,以 OCI 镜像(ghcr.io/xberg-io/crawlberg)分发,需要容器运行时。仅限桌面端。未声明认证、环境变量或请求头。需要访问目标站点的网络;无头浏览器渲染为可选项。
安装前请注意
它会抓取任意网页,请求和内容会发往第三方站点。它能绕过机器人过滤并使用无头浏览器,可能与网站条款冲突。默认拒绝访问回环、私有和云元数据地址;通过环境变量或配置关闭该限制会失去这层保护。代理池、认证会话和定时调度属于商业版功能。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Crawlberg,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Xberg]

Crawlberg

Turn any website into clean, structured data. Point Crawlberg at a URL and get back Markdown, metadata, and links — from a single page or a whole site — in the language you already use.

What and Why?

You need data that lives on the web, and raw HTML is not it. Crawlberg does the crawling, scraping, and cleanup end-to-end: it fetches pages, follows links, converts each one to Markdown, and hands you structured metadata (titles, links, images, social-card and JSON-LD data) — so you skip the parsing and go straight to the content.

It runs from a single Rust core with identical results across 14 language bindings, and it handles the awkward parts for you: JavaScript-heavy pages fall back to a real headless browser, bot filters are detected and worked around, robots and sitemaps are respected, requests are throttled per domain, and requests to private or internal addresses are refused by default. Drive it from your code, an AI agent, a REST service, or the CLI.

Every part of the pipeline is a trait you can swap — the crawl frontier, rate limiter, storage, event stream, and content filters — so you can plug in your own behavior. Managed extras like proxy pools, tuned bot-evasion, authenticated sessions, scheduling, and billing live in xberg-enterprise.

Features

FeatureDescription
Structured extractionText, metadata, links, images, assets, JSON-LD, Open Graph, hreflang, favicons, headings, response headers
Markdown conversionClean Markdown with citations, document structure, and fit-content mode
Concurrent crawlingDepth-first, breadth-first, or best-first traversal with configurable depth, page limits, and concurrency
14 language bindingsRust, Python, Node.js, Ruby, Go, Java, Kotlin (Android), C#, PHP, Elixir, Dart, Swift, Zig, and WebAssembly
Smart filteringBM25 relevance scoring, URL include/exclude patterns, robots.txt compliance, sitemap discovery
Browser renderingOptional headless browser for JavaScript-heavy SPAs with WAF detection and bypass
Batch & streamingScrape or crawl hundreds of URLs concurrently; real-time crawl events via async streams
SSRF-safe by defaultRefuses loopback, private, link-local, and cloud-metadata addresses; opt out via env var or CrawlConfig
Auth & rate limitingHTTP Basic, Bearer, and custom-header auth with cookie jars; per-domain request throttling
MCP server & REST APIModel Context Protocol integration for AI agents plus an HTTP server with OpenAPI spec

Supported Platforms

Precompiled binaries for glibc Linux (x86_64/aarch64), macOS, and Windows across every binding. On musl Linux (Alpine) coverage is deliberately partial — the CLI, Docker image, Rust, Ruby, Java, and Elixir work there; the Node, Python, Go, PHP, and C# bindings do not ship musl artifacts. See the platform support matrix for the full table and the Alpine workarounds.

⭐ Star this repo to show your support — it helps others discover Crawlberg.

Quick Start

Language Packages

Python
sh
pip install crawlberg

See Python README for full documentation.

Node.js
sh
pnpm add @xberg-io/crawlberg

See Node.js README for full documentation.

Rust
sh
cargo add crawlberg

See Rust README for full documentation.

Go
sh
go get github.com/xberg-io/crawlberg/packages/go

See Go README for full documentation.

Java

Available on Maven Central as io.xberg.crawlberg:crawlberg. See Java README for the dependency snippet and current version.

C#
sh
dotnet add package XbergIo.Crawlberg

See C# README for full documentation.

Ruby
sh
gem install crawlberg

See Ruby README for full documentation.

PHP
sh
composer require xberg-io/crawlberg

See PHP README for full documentation.

Elixir

Add {:crawlberg, "~> 0.3"} to your mix.exs dependencies. See Elixir README for full documentation.

Dart / Flutter
sh
dart pub add crawlberg

See Dart README for full documentation.

Kotlin (Android)

Available on Maven Central as io.xberg.crawlberg.android:crawlberg-android. See Kotlin README for the dependency snippet and current version.

Swift

Add via Swift Package Manager. See Swift README for full documentation.

Zig

See Zig README for installation and usage.

WebAssembly
sh
pnpm add @xberg-io/crawlberg-wasm

See WebAssembly README for full documentation.

C/C++ (FFI)

C header + shared library from GitHub Releases. See FFI crate for full documentation.

CLI
sh
cargo install crawlberg-cli
sh
# Or install the prebuilt binary via cargo-binstall:cargo binstall crawlberg-cli
sh
brew install xberg-io/tap/crawlberg

Windows users can install the same binary through Scoop:

powershell
scoop bucket add xberg https://github.com/xberg-io/scoop-bucketscoop install crawlberg

See CLI README for full documentation.

AI Coding Assistants

Install the Crawlberg plugin from xberg-io/crawlberg. It ships the Crawlberg agent skills (site crawling, HTML→Markdown scraping, headless-Chrome fallback) plus the crawlberg MCP server, — select your runtime below.

The bundle targets Claude Code, Codex, Cursor, Gemini CLI, Kimi, OpenCode, Factory Droid, Hermes, Pi, Agent Plugins and GitHub Copilot CLI. Read the plugin guide for runtime resources, CLI prerequisites and configuration. MCP-capable adapters expose the product's tools; Hermes uses a local stdio bridge and explicitly selected skills. Pi loads skills and prompt templates and requires the product CLI for executable operations.

Install only the public Agent Skills, without a plugin or MCP registration, using the skills CLI:

sh
npx skills add xberg-io/crawlberg --listnpx skills add xberg-io/crawlberg

Choose the skills and target agents interactively. Installing instructions does not install the product CLI or configure provider credentials.

Claude Code
text
/plugin marketplace add xberg-io/crawlberg/plugin install crawlberg@crawlberg
Codex CLI
text
/plugins add https://github.com/xberg-io/crawlberg

Then search for crawlberg and select Install Plugin.

Cursor

Settings → Plugins → Add from URL → https://github.com/xberg-io/crawlberg, then select crawlberg.

Gemini CLI

From a checkout of this repository:

sh
gemini extensions install ./plugin

The manifest is inside plugin/. See the Gemini extension reference for local installation and updates.

Factory Droid
text
droid plugin marketplace add https://github.com/xberg-io/crawlbergdroid plugin install crawlberg@crawlberg
GitHub Copilot CLI
text
copilot plugin marketplace add https://github.com/xberg-io/crawlbergcopilot plugin install crawlberg@crawlberg
Pi

From a checkout of this repository:

bash
pi install ./plugin

After the next plugin release, install the same package used by OpenCode:

bash
pi install npm:@xberg-io/opencode-crawlberg

Pi loads the bundled skills and prompt templates. Use /crawlberg-scrape or /crawlberg-crawl with the input as arguments. Install the crawlberg CLI separately for shell access. This package does not register MCP servers, hooks, or native Pi extensions.

opencode

Add the package to opencode.json:

json
{  "$schema": "https://opencode.ai/config.json",  "plugin": ["@xberg-io/opencode-crawlberg"]}

Documentation

Full guides, per-language API references, the substrate/operational model, antibot strategy, and observability live at docs.crawlberg.xberg.io.

Contributing

Contributions are welcome! See our Contributing Guide.

Part of Xberg.io

  • Xberg — the open-source content-intelligence engine: text, tables, and metadata from 101 formats (115 file extensions), with OCR, transcription, and code intelligence. MIT.
  • Xberg Pro — a complete self-hosted content-intelligence backend in a single container. Commercial.
  • Xberg Enterprise — the distributed, governed content-intelligence platform, scaled on Kubernetes with team governance and support. Commercial.
  • 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 165 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

Links

来源:README.md,提交 0398c61

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

12
  1. v1.12.3最新Oct 29, 2026
  2. v1.12.0Oct 22, 2026
  3. v1.11.0Oct 15, 2026
  4. v1.10.2Oct 6, 2026
  5. v1.10.1Oct 5, 2026
  6. v1.10.0Oct 5, 2026
  7. v1.9.0Oct 3, 2026
  8. v1.8.0Sep 27, 2026
  9. v1.7.2Sep 25, 2026
  10. v1.7.1Sep 16, 2026
  11. v1.7.0Sep 16, 2026
  12. v1.6.4Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分