BrowserControl

io.github.adityasasidhar由 GitHub 帳號 adityasasidhar 發布v0.3.1更新於 Nov 21, 2026

A real browser for AI agents: screenshots with numbered elements, so the agent clicks by number.

發布方自己的服務:Browser.lol

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

讓 AI 助理在本機操作真實的 Chromium 瀏覽器,回傳附編號元素的截圖,因此能依編號點擊。

可以做什麼
  • 開啟頁面並點擊、輸入、捲動、懸停、拖曳與按鍵,可用 find 搜尋整個頁面
  • 在一次呼叫中批次執行多個步驟,只回傳一張截圖
  • 填寫表單:下拉選單、核取方塊與檔案上傳
  • 以 Markdown 讀取頁面,擷取表格、連結與 JSON 欄位
  • 在多個分頁與各自擁有 Cookie 的隔離工作階段間操作
  • 除錯:讀取主控台記錄、頁面錯誤、網路請求並匯出 HAR;模擬或封鎖回應、限制網路速度、模擬裝置,並錄製 Playwright 追蹤或測試
適用情境
適合助理需要實際操作網站而非只抓取文字的情況:瀏覽網站、在瀏覽器中測試本機應用程式、填寫表單,或確認頁面實際呈現。適合能讀取截圖的視覺模型。
執行需求
透過 uvx 以 stdio 在本機執行,需要安裝 uv;瀏覽器會在首次執行時自動準備。選用設定包括以 BROWSER_HEADLESS 無介面執行、連線到以遠端偵錯方式啟動的自有 Chrome,或在本機連接埠以 HTTP 傳輸執行。未宣告需要帳號或 API 金鑰。
安裝前請注意
瀏覽器設定檔保存在本機,並在多次執行間保留網站登入狀態,助理會以你已登入的工作階段操作。它能在真實網站上點擊、輸入、上傳檔案與送出表單,可能造成實際變更或購買。HTTP 模式沒有身分驗證,應只綁定在本機。截圖比純文字工具消耗更多 token。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 BrowserControl,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[BrowserControl]

BrowserControl

A real browser for your AI agent. It sees the page and clicks by number.

[PyPI] [Python] [Total downloads] [MIT license]

Documentation · Quickstart · All 69 tools · Recipes · MCP Registry · Español


BrowserControl is an MCP server that lets Claude, Cursor, VS Code, or any other MCP client use a real Chromium browser on your machine.

After every action, the agent gets back a screenshot with a numbered box on every button, link, and field, plus the same list as text. To press the button marked 5, it calls click(5). No CSS selectors, no guessing coordinates.

[Animated demo: numbered boxes appear on a shop page, the agent types into box 5, clicks box 6, the numbers rebuild on the results page, and it clicks box 9 to add an item to the cart, while a transcript shows each tool call]

Install

You need uv. Everything else, including the browser, is set up on first run.

Codex (installs the local MCP server and the BrowserControl skill):

bash
codex plugin marketplace add adityasasidhar/browsercontrolcodex plugin add browsercontrol@browsercontrol

Claude Code (installs the server and a skill that teaches Claude to use it):

text
/plugin marketplace add adityasasidhar/browsercontrol/plugin install browsercontrol@browsercontrol

OpenCode 2 (installs the local MCP server and the BrowserControl skill):

bash
opencode plugin add github:adityasasidhar/browsercontrol

VS Code or Cursor: one click.

[Install in VS Code] [Install in Cursor]

Anything else: add this to your client's MCP config.

json
{  "mcpServers": {    "browsercontrol": {      "command": "uvx",      "args": ["browsercontrol"]    }  }}

Restart your client and you're done. Setup for Claude Desktop, Gemini CLI, Zed, OpenCode, and others is in the client guide.

Try it

Ask your agent something that needs a browser:

Open Hacker News and tell me the top three stories.

Go to my app on localhost:3000, sign up with a test account, and tell me if anything breaks.

Find the cheapest flight from Berlin to Lisbon next Friday and show me the options.

How it works

Each time the agent does something, BrowserControl waits for the page to settle, takes a screenshot, numbers everything you can interact with, and sends back both:

text
Clicked element 5
Found 23 interactive elements:  [1] a - Home  [2] input[search] - Search products  [3] button - Search  [4] a - Sign in  ...

The agent reads the picture to understand the page, then picks a number for its next action. Numbers are rebuilt after every step, so they always match what's on screen right now. If something has moved or gone, the tool says so instead of clicking the wrong thing.

This is called Set of Marks. It works on any site, including ones with messy markup, iframes, and shadow DOM.

What your agent can do

BrowseOpen pages, click, type, scroll, hover, drag, and press keys. find("Checkout") searches the whole page, not just what's visible.
Batchact([...]) runs several steps in one call and returns one screenshot, which saves time and tokens.
Fill formsPick from dropdowns, tick checkboxes, and upload files.
Read and extractGet a page as Markdown, pull out tables and links, or extract fields into JSON.
Use tabs and sessionsWork across several tabs, or open isolated sessions side by side, each with its own cookies.
DebugRead console logs, page errors, and network requests with their headers and bodies. Export a HAR file.
Test edge casesFake or block API responses, slow the network, go offline, and emulate phones, locations, timezones, and dark mode.
RecordSave Playwright traces, and turn what the agent did into a runnable Playwright test.

See all 69 tools, with every parameter.

Common setups

Run it hidden. The browser opens a visible window by default. To run it headless (servers, CI), set BROWSER_HEADLESS:

json
"browsercontrol": {  "command": "uvx",  "args": ["browsercontrol"],  "env": { "BROWSER_HEADLESS": "true" }}

Use your own Chrome. Start Chrome with --remote-debugging-port=9222, then ask the agent to connect to it. It opens its own tab and leaves yours alone. How to set it up.

Share one browser between clients. Run it as an HTTP server, and point your clients at http://127.0.0.1:8000/mcp:

bash
uvx browsercontrol --transport httpuvx browsercontrol --transport http --isolate-clients   # a separate session for each client

Every setting is listed in Configuration.

Good to know

  • It runs locally. The browser runs on your machine. Nothing goes through a BrowserControl server.
  • Logins are kept. The browser profile lives in ~/.browsercontrol/user_data, so sites you sign in to stay signed in between runs.
  • It's built for vision models. Every action returns an image. That gives the agent the full picture, but uses more tokens than text-only tools. See how it compares to other approaches.
  • The HTTP mode has no authentication. Keep it on 127.0.0.1 unless you put something in front of it.
  • Something not working? Check Troubleshooting, or open an issue.

For agents

The docs are built to be read by agents too: llms.txt indexes every page, llms-full.txt has all of it in one file, and tools.json lists every tool with its parameters. Any docs page is also available as Markdown by adding .md to its address.

Contributing

Bug reports, fixes, and new tools are welcome.

bash
git clone https://github.com/adityasasidhar/browsercontrol && cd browsercontroluv sync && uv run playwright install chromiumuv run pytest

The contributing guide covers the checks, adding a tool, and working on the docs. Please also read CONTRIBUTING.md.

License

MIT

來源:README.md,提交 46e841c

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v0.3.1最新Nov 21, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Browser 整合