epiral

bb browser

Built by epiral β€’ 2,732 stars

What is bb browser?

Your browser is the API. CLI + MCP server for AI agents to control Chrome with your login state.

How to use bb browser?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add bb browser using the following command: npx @modelcontextprotocol/bb-browser 4. Restart the client and verify the new tools are active.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/bb-browser --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/bb-browser

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

bb browser FAQ

Q

Is bb browser safe?

Yes, bb browser follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is bb browser up to date?

bb browser is currently active in the registry with 2,732 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for bb browser?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<div align="center">

bb-browser

BadBoy Browser

Your browser is the API. No keys. No bots. No scrapers.

npm Node.js License

English Β· δΈ­ζ–‡

</div>

You're already logged into Twitter, Reddit, YouTube, Zhihu, Bilibili, LinkedIn, GitHub β€” bb-browser lets AI agents use that directly.

bb-browser site twitter/search "AI agent"       # search tweets
bb-browser site zhihu/hot                        # trending on Zhihu
bb-browser site arxiv/search "transformer"       # search papers
bb-browser site eastmoney/stock "θŒ…ε°"            # real-time stock quote
bb-browser site boss/search "AI engineer"        # search jobs
bb-browser site wikipedia/summary "Python"       # Wikipedia summary
bb-browser site youtube/transcript VIDEO_ID      # full transcript
bb-browser site stackoverflow/search "async"     # search SO questions

103 commands across 36 platforms. All using your real browser's login state. Full list β†’

The idea

The internet was built for browsers. AI agents have been trying to access it through APIs β€” but 99% of websites don't offer one.

bb-browser flips this: instead of forcing websites to provide machine interfaces, let machines use the human interface directly. The adapter runs eval inside your browser tab, calls fetch() with your cookies, or invokes the page's own webpack modules. The website thinks it's you. Because it is you.

Playwright / SeleniumScraping libsbb-browser
BrowserHeadless, isolatedNo browserYour real Chrome
Login stateNone, must re-loginCookie extractionAlready there
Anti-botDetected easilyCat-and-mouseInvisible β€” it IS the user
Complex authCan't replicateReverse engineerPage handles it itself

Quick Start

Install

npm install -g bb-browser

Use

bb-browser site update        # pull community adapters
bb-browser site recommend     # see which adapters match your browsing habits
bb-browser site zhihu/hot     # go

OpenClaw (no extension needed)

If you use OpenClaw, bb-browser runs directly through OpenClaw's built-in browser β€” no Chrome extension or daemon required:

bb-browser site reddit/hot --openclaw
bb-browser site xueqiu/hot-stock 5 --openclaw --jq '.items[] | {name, changePercent}'

Skill on ClawHub: bb-browser-openclaw

MCP (Claude Code / Cursor)

{
  "mcpServers": {
    "bb-browser": {
      "command": "npx",
      "args": ["-y", "bb-browser", "--mcp"]
    }
  }
}

36 platforms, 103 commands

Community-driven via bb-sites. One JS file per command.

CategoryPlatformsCommands
SearchGoogle, Baidu, Bing, DuckDuckGo, Sogou WeChatsearch
SocialTwitter/X, Reddit, Weibo, Xiaohongshu, Jike, LinkedIn, Hupusearch, feed, thread, user, notifications, hot
NewsBBC, Reuters, 36kr, Toutiao, Eastmoneyheadlines, search, newsflash, hot
DevGitHub, StackOverflow, HackerNews, CSDN, cnblogs, V2EX, Dev.to, npm, PyPI, arXivsearch, issues, repo, top, thread, package
VideoYouTube, Bilibilisearch, video, transcript, popular, comments, feed
EntertainmentDouban, IMDb, Genius, Qidianmovie, search, top250
FinanceXueqiu, Eastmoney, Yahoo Financestock, hot stocks, feed, watchlist, search
JobsBOSS Zhipin, LinkedInsearch, detail, profile
KnowledgeWikipedia, Zhihu, Open Librarysearch, summary, hot, question
ShoppingSMZDMsearch deals
ToolsYoudao, GSMArena, Product Hunt, Ctriptranslate, phone specs, trending products

10 minutes to add any website

bb-browser guide    # full tutorial

Tell your AI agent: "turn XX website into a CLI". It reads the guide, reverse-engineers the API with network --with-body, writes the adapter, tests it, and submits a PR. All autonomously.

Three tiers of adapter complexity:

TierAuth methodExampleTime
1Cookie (fetch directly)Reddit, GitHub, V2EX~1 min
2Bearer + CSRF tokenTwitter, Zhihu~3 min
3Webpack injection / Pinia storeTwitter search, Xiaohongshu~10 min

We tested this: 20 AI agents ran in parallel, each independently reverse-engineered a website and produced a working adapter. The marginal cost of adding a new website to the agent-accessible internet is approaching zero.

What this means for AI agents

Without bb-browser, an AI agent's world is: files + terminal + a few APIs with keys.

With bb-browser: files + terminal + the entire internet.

An agent can now, in under a minute:

# Cross-platform research on any topic
bb-browser site arxiv/search "retrieval augmented generation"
bb-browser site twitter/search "RAG"
bb-browser site github search rag-framework
bb-browser site stackoverflow/search "RAG implementation"
bb-browser site zhihu/search "RAG"
bb-browser site 36kr/newsflash

Six platforms, six dimensions, structured JSON. Faster and broader than any human researcher.

Also a full browser automation tool

bb-browser open https://example.com
bb-browser snapshot -i                # accessibility tree
bb-browser click @3                   # click element
bb-browser fill @5 "hello"            # fill input
bb-browser eval "document.title"      # run JS
bb-browser fetch URL --json           # authenticated fetch
bb-browser network requests --with-body --json  # capture traffic
bb-browser screenshot                 # take screenshot

All commands support --json output, --jq <expr> for inline filtering, and --tab <id> for concurrent multi-tab operations.

bb-browser site xueqiu/hot-stock 5 --jq '.items[] | {name, changePercent}'
# {"name":"δΊ‘ε€©εŒ–","changePercent":"2.08%"}
# {"name":"δΈœθŠ―θ‚‘δ»½","changePercent":"-7.60%"}

bb-browser site info xueqiu/stock   # view adapter args, example, domain

Daemon configuration

The daemon binds to localhost:19824 by default. You can customize the host with --host:

bb-browser daemon --host 127.0.0.1    # IPv4 only (fix macOS IPv6 issues)
bb-browser daemon --host 0.0.0.0      # listen on all interfaces (for Tailscale / ZeroTier remote access)

Architecture

AI Agent (Claude Code, Codex, Cursor, etc.)
       β”‚ CLI or MCP (stdio)
       β–Ό
bb-browser CLI ──HTTP──▢ Daemon ──CDP WebSocket──▢ Your Real Browser
                           β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
                    β”‚ Per-tab     β”‚
                    β”‚ event cache β”‚
                    β”‚ (network,   β”‚
                    β”‚  console,   β”‚
                    β”‚  errors)    β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

License

MIT

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "bb-browser": { "command": "npx", "args": ["bb-browser"] } } }