b4n1-web
Ultra-lightweight headless browser for AI agents. Provides MCP tools for navigating URLs, extracting structured content, and building autonomous agent workflows.
README
B4n1Web ā Agentic Browser Engine
Ultra-lightweight headless browser for AI agents.
š Full documentation: https://B4N1-com.github.io/b4n1-web/ Single Rust binary, 4 language SDKs. Navigate URLs, extract structured content (markdown, links, screenshots), and build autonomous agent workflows.
Quick Start
# Install the binary
curl -sL https://b4n1.com/install | bash
# Or use your preferred package manager
pip install b4n1-web
npm install b4n1-web
dotnet add package B4n1Web
# Java: add dependency from Maven Central
from b4n1web import AgentBrowser
browser = AgentBrowser()
page = browser.goto("https://example.com")
print(page.markdown)
browser.close()
MCP Server
# stdio mode (default)
b4n1web mcp
# Or with each SDK
npx b4n1-web mcp
uvx b4n1-web mcp
SDK Matrix
| Language | Package | Version | Binary |
|---|---|---|---|
| Python | b4n1-web |
0.12.2 | Bundled (musl) |
| JavaScript/TypeScript | b4n1-web |
0.12.2 | Bundled (musl) |
| Java | com.b4n1:b4n1-web |
0.12.2 | Bundled (musl) |
| C# (.NET) | B4n1Web |
0.12.2 | Bundled (musl) |
Browser Modes
| Mode | Description | RAM | Startup |
|---|---|---|---|
| Light | HTTP fetch + HTML parsing | ~15MB | Instant |
| JS | Light + JavaScript extraction | ~15MB | Instant |
| Render | Full Chromium + screenshots | ~100MB | ~2s |
Features
- 33 MCP tools for AI agent integration
- 4 language SDKs (Python, JS, Java, C#)
- Self-contained binary ~11MB, 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
Documentation
- SDK Docs ā Full documentation
- Agent Reference ā AI agent integration
- MCP Tools ā MCP registry
Links
- Website: https://b4n1.com
- GitHub: https://github.com/B4N1-com/b4n1-web
- PyPI: https://pypi.org/project/b4n1-web
- npm: https://www.npmjs.com/package/b4n1-web
- NuGet: https://www.nuget.org/packages/B4n1Web
- Maven Central: https://central.sonatype.com/artifact/com.b4n1/b4n1-web
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.