Browser Use
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
作者提供的说明(英文原文)
Visible Electron browser driven by a semantic accessibility tree: 17 MCP tools, no screenshots.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add ai-browser -- npx -y @glittering0717/ai-browser mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ai-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Glittering 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(2.5.2)于6天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Browser Use, Chrome DevTools MCP, MCP Server Browser
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
MCP server for Chrome DevTools
MCP server for browser use access
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
AI Browser
中文读者请看这里: README-CN.md(3 分钟速读 + 中文安装指引)
A real browser whose only operator is your agent.
It reads pages as a semantic tree instead of screenshots, acts through trusted browser input — and because it is a normal, visible Electron window, a human can reach for the mouse at any time.
A noisy real-world feed (300+ accessibility nodes) becomes a typed structure — then one ui.act switches the feed and the tree changes with it. Every call is a raw JSON-RPC message over one WebSocket: no SDK, no coordinates.
Reproduce: npm start then node examples/feed-tree.mjs
Human + agent, same browser, same socket. The agent drives, then simply stops and watches; a person clicks an article in the real window, the agent notices the new tab on its next read, and continues on the page the human chose. No lock, no hand-off API.
Try it yourself: npm start then node examples/human-takeover.mjs — click anything when it says YOUR TURN .
What it is. An Electron app that exposes its tabs over two equivalent interfaces — an MCP server (17 browse_* tools) and a raw WebSocket JSON-RPC API (ws://localhost:9223, methods ui.*). Your agent navigates, reads a structured semantic tree (role / label / value / states / actions), and clicks or types by data-ai-id. Reading never goes through a screenshot and there is no OCR — that's the point of the tree. browse_screenshot exists, but as a *diagnostic* for the cases the tree can't see (overlays, canvas, mis-rendered layout), not as the read path.
What it is not. It is not headless. The window really opens, really renders, and stays interactive — see Letting a human step in. Nor does it "co-drive" with you: the hand-off is a conversation between the agent and the user, not a browser API.
Security note. The WebSocket server binds loopback only and **refuses any handshake that carries
an
Originheader** — that's what a browser always sends, so a page running inside AI Browser (or
any other browser) cannot drive the control plane, while Node/CLI/MCP clients (which send no
Origin) work normally. There is still no token: a local process running as you can connect.
Do not expose port 9223 beyond loopback.
(
AI_BROWSER_WS_ALLOW_ORIGIN=1disables the check — debug only, it re-opens the page → browser path.)
Sandbox is off by default, deliberately. Chromium's OS sandbox cannot initialise in restricted
shells (IDE terminals, some CI), where it fails with `sandbox initialization failed: Operation not
permitted` and the app exits before any of our code runs — so there is no error to report, just a
silent quit.
AI_BROWSER_SANDBOX=1turns it on; if the app then quits instantly with no output at
all, that's this — unset the variable. Renderers are still isolated from the page either way
(
contextIsolation:true,nodeIntegration:false); this switch is about the OS layer under them.
Install the prebuilt package unless you have a reason not to. Option A is one file you double-click: no Node.js, no dependency tree, no build step. Source install (Option C) pulls a ~276 MB node_modules plus a ~100 MB Electron engine download on top — only use it when no package fits your platform, the package misbehaves, or you specifically need to run from source.
Grab AI-Browser- -arm64.dmg from GitHub Releases (~110 MB to download, ~245 MB on disk — most of it is the bundled Chromium engine, which *is* the product). Open the dmg, drag AI Browser to /Applications, launch it. Done.
Two things to know before you download it:
Grab AI-Browser- -win32-x64-Setup.exe from the same Releases page (~79 MB). Run it and click through: it installs per user to %LOCALAPPDATA%\Programs\AI Browser (no admin prompt, no UAC), creates the Start Menu entry and a Desktop shortcut by itself, and offers to launch the browser when it finishes. Uninstall is a normal entry in Settings → Apps; it removes the program and both shortcuts but leaves ~/.ai-browser alone, so your profiles and logins survive a reinstall.
Two things to know:
Agents still connect through the MCP server (Option B below), and the two channels cooperate: when the packaged app is already running, the MCP server finds it on port 9223 and reuses it instead of spawning a second copy of Electron — one browser, one login session, whichever way you start it. So "package for the engine + npx for the MCP bridge" is the normal agent setup too.
The package is published as @glittering0717/ai-browser; no clone needed:
npx -y @glittering0717/ai-browser --help
To open the visible browser window directly:
npx -y @glittering0717/ai-browser start
Requires Node ≥ 18 and a desktop session (this is a GUI app). If a launch needs its own engine, the first run prepares it (~100 MB, downloaded once). npm ≥ 11 blocks dependency install scripts by default — the launcher detects that and runs Electron's own downloader itself, so nothing extra is needed. If the download from GitHub releases is slow or blocked (common on mainland-China networks), point it at a mirror:
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npx -y @glittering0717/ai-browser start
Use this when there is no package for your platform, the package gives you trouble, or you need to modify the code. It is the heaviest of the three: npm install pulls the full dependency tree (~276 MB), then the Electron engine (~100 MB) on top.
git clone https://github.com/Glittering/ai-browser.git
cd ai-browser npm install
If the Electron binary download is slow or fails outright, use the mirror:
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm install
Or make it sticky by creating a .npmrc in the project root:
electron_mirror=https://npmmirror.com/mirrors/electron/
Confirm the binary actually landed before blaming anything else — a missing binary still leaves you with an "install that succeeded":
ls node_modules/electron/dist
To check the install end to end:
npm start
A 1280×800 window opens and the terminal prints AI Browser WS server listening on ws://localhost:9223. (The first tab opens on the default start page; ignore it and navigate away.)
To build the package yourself:
npm install
node scripts/build_dmg.cjs # current arch node scripts/build_dmg.cjs --arch arm64 # or x64
Output lands in dist/. The script uses @electron/packager plus macOS's built-in hdiutil (no external binary downloads); the reasoning — including why electron-builder refuses to build this project — is documented in docs/DEPENDENCY_AND_DISTRIBUTION_AUDIT.md.
Add this to your MCP client's config file — Claude Desktop's config, ~/.cursor/mcp.json, or a project-level .mcp.json:
{
"mcpServers": { "ai-browser": { "command": "npx", "args": ["-y", "@glittering0717/ai-browser", "mcp"] } } }
A ready-made copy sits in examples/mcp-config.json. From-source users can instead point command: "node" at /absolute/path/to/ai-browser/src/main/mcp_server.js.
You do not need to start the browser yourself. On the first browse_* call the MCP server probes port 9223; if nothing is listening it spawns Electron detached and waits up to 30 seconds for the WebSocket server (the very first call may additionally spend time preparing the engine). If you would rather keep one long-lived window shared by every client, launch the AI Browser app you installed in Option A (or run npx -y @glittering0717/ai-browser start, or npm start from source) — a second launch just focuses the existing window.
examples/AGENT_INSTRUCTIONS.md has a copy-paste prompt you can drop into a CLAUDE.md, Cursor Rule, or any system prompt; it teaches the tool loop, the token-saving params, and when to ask a human. Agents installing this themselves (Cline, etc.) can read the short machine-oriented llms-install.md instead of this README.
Source of truth: src/main/mcp_tools.js. There are 17 — a deliberately small surface, since every tool schema is injected into your agent's context on every turn.
| Tool | One line |
|---|---|
browse_navigate | Load a URL in your tab or the given tab. |
browse_get_tree | Read the page as a semantic tree + page context (modals, messages, stats). |
browse_act | click / type (append at caret) / setContent (replace all) / clear / focus / hover / scroll_to / upload / get_value (read-only) / drag / press / wheel on a data-ai-id. |
browse_diff | snapshot a baseline, then diff to get added / removed / changed paths with before/after values. This is how you prove an action did anything. |
browse_capabilities | Probe what a page affords and which route to take on it (see below). |
browse_repaint | Force the compositor to redraw the tab when the window shows a stale page; returns repaint_count. |
browse_downloads | List a tab's downloads with their on-disk paths. Downloads are asynchronous — poll this after clicking an export button. |
browse_canvas | Read through captured draw calls: list / read / configure / capture. Experimental — see the canvas section below. |
browse_evaluate | Run a JS *expression* in page context (5000-char cap, Node identifiers rejected). |
| `browse_scroll
只显示了开头部分;其余内容请在仓库中阅读