B4n1Web

io.github.B4N1-com由 GitHub 账号 B4N1-com 发布v0.12.2更新于 Oct 24, 2026

Ultra-lightweight browser engine for AI agents. 33 MCP tools, 4 SDKs, cross-platform.

概览

AI 生成的概览

一个轻量级无头浏览器引擎,让助手可以访问网址并提取网页内容,如 markdown、链接和截图。

可以做什么
B4n1Web 是一个自包含的无头浏览器引擎,通过 stdio 以 MCP 服务器形式提供 33 个工具供智能体使用。它可以访问网址并提取结构化内容,包括 markdown、链接和截图,并支持三种模式:Light(HTTP 抓取加 HTML 解析)、JS(脚本提取)和 Render(完整 Chromium 加截图)。它还提供域名过滤、安全浏览以及用于阻止资源或模拟响应的网络拦截功能。
适用场景
当助手需要抓取和阅读网页、从中提取结构化内容,或在自动化流程中截图时使用。它适合希望使用小型、无依赖的浏览器引擎而非完整浏览器栈的场景。
运行要求
作为 stdio 进程在本地运行;未声明身份验证、环境变量或请求头。可通过 npm、PyPI 或 NuGet 包安装,也可使用适用于 Linux、macOS 和 Windows 的预编译二进制文件。仅限桌面端,无网页可执行文件。Render 模式使用完整 Chromium,约需 100MB 内存。
安装前请注意
该服务器代表助手浏览网页,因此访问的页面和获取的内容会离开本地机器。网络拦截和域名过滤功能可以阻止或模拟请求,可能改变页面返回的内容。清单未要求任何凭据,但使用前请检查特定网站的访问权限。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[B4n1Web]

🌐 B4n1Web — Agentic Browser Engine

Ultra-lightweight headless browser for AI agents.

[License] [PyPI] [npm] [NuGet] [Maven Central] [Docs]

[PyPI Downloads/month] [npm Downloads/month] [NuGet Downloads] [GitHub Release] [GitHub Downloads]

Single Rust binary · 4 language SDKs · 33 MCP tools. Navigate URLs, extract structured content (markdown, links, screenshots), and build autonomous agent workflows.

📖 Full documentation: https://B4N1-com.github.io/b4n1-web/book/


🌍 Languages / Idiomas / 语言

🇬🇧 English🇪🇸 Español🇫🇷 Français🇩🇪 Deutsch🇵🇹 Português🇮🇹 Italiano
🇨🇳 简体中文🇯🇵 日本語🇰🇷 한국어🇷🇺 Русский🇸🇦 العربية🇮🇳 हिन्दी

🖥 Platform Support

8 pre-compiled binaries — works everywhere:

PlatformArchitecturesBinary
Linuxx86_64, aarch64, i686musl (static, no glibc)
macOSx86_64, arm64universal
Windowsx86_64, arm64MSVC

Quick Start

bash
# Install the binarycurl -sL https://raw.githubusercontent.com/B4N1-com/b4n1-web/master/scripts/install.sh | bash
# Or use your preferred package managerpip install b4n1-webnpm install b4n1-webdotnet add package B4n1Web# Java: add dependency from Maven Central
python
from b4n1web import AgentBrowser
browser = AgentBrowser()page = browser.goto("https://example.com")print(page.markdown)browser.close()

MCP Server

bash
# stdio mode (default)b4n1web mcpnpx b4n1-web mcpuvx b4n1-web mcp

SDK Matrix

LanguagePackageVersionBinary
Pythonb4n1-web0.16.0Bundled (musl)
JavaScript/TypeScriptb4n1-web0.16.0Bundled (musl)
Javacom.b4n1:b4n1-web0.16.0Bundled (musl)
C# (.NET)B4n1Web0.16.0Bundled (musl)
Rubyb4n1-web0.16.0Resolver (env/system/PATH)
PHPb4n1/b4n1-web0.16.0Resolver (env/system/PATH)
Gob4n1-web/sdks/go0.16.0Resolver (env/system/PATH)

Capability parity

Every method each SDK exposes is tested (see coverage). Surface differs by design: Python additionally ships a full MCP client (b4n1web.mcp), so it covers the whole tool surface; JS/C#/Java/Ruby/PHP/Go wrap the CLI binary (core flows). Cells below are measured against each SDK's actual source (b4n1-web 0.16.0), not aspirational: explicit rounding — ✓ implemented · · not implemented · mcp available through the bundled MCP server.

CapabilityPythonJS/TSC#JavaRubyPHPGo
goto (light / js / render) + page screenshot✓✓✓✓✓✓✓
wait (--wait-for / waitForSelector)✓✓✓✓✓✓✓
click / typeText✓✓✓✓···
links (Page) + find-links-by-text✓✓✓✓✓✓✓
getLinks (browser) / one-shot fetchmcp✓✓····
evaluate (JS execution)✓···✓✓✓
viewport / user-agent / emulate-device✓✓·····
upload / download / frames / cookies✓······
binary version query (bundle == SDK)✓✓✓✓···

Full parity = one MCP client per SDK (JS/CS/Java) — tracked as tasks; the Ruby/PHP/Go interaction gaps (click/type, device emulation, file transfer, cookies/frames) are their own parity tasks.

Browser Modes

ModeDescriptionRAMStartup
LightHTTP fetch + HTML parsing~15MBInstant
JSLight + JavaScript extraction~15MBInstant
RenderFull Chromium + screenshots~100MB~2s

Features

  • 35 MCP tools for AI agent integration
  • 4 language SDKs (Python, JS, Java, C#) with bundled binary
  • Self-contained binary ~12MB, no dependencies
  • Static linking (musl) — works on any Linux, no glibc required
  • Three modes: Light (instant), JS (scripts), Render (Chromium)
  • Security shield: domain filtering, safe browsing
  • Network interception: block resources, mock responses
  • MCP Server: stdio transport, no port needed
  • Link extraction: get_links MCP tools + getLinks() in every SDK (one-shot fetch without a browser instance)
  • --licenses flag: prints the bundled license + third-party notices, no key required

Documentation

Links

License & Commercial Terms

  • Original Source Code: 100% Proprietary and Closed Source (All Rights Reserved by Bani Montoya).
  • Binaries & SDK Tools: Provided under the Business Source License 1.1 (BUSL-1.1).
    • Free Tier: 100% free for development, evaluation, testing, personal projects, and startups with gross annual revenue < $100,000 USD.
    • Mandatory Enterprise B2B License: Required for government agencies, public bidding projects, and enterprises with gross annual revenue >= $100,000 USD.

For Enterprise B2B licensing inquiries, visit https://b4n1.com/licensing or email [email protected].

来源:README.md,提交 1ea39b5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.12.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。