agent-browser-use
Integrates with Cloudflare WARP to route the agent browser through a built-in tunnel, display the browser's public IP, toggle WARP on/off, automatically register a free WARP account, and route DNS/WebRTC through the tunnel to avoid IP leaks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent Browser Use
Let AI coding agents drive a real browser over MCP, while you watch every step live in a web page and can take over at any time.
Agent Browser Use is a single native binary (Rust) that runs one headless Chrome on your machine and exposes it as a set of Model Context Protocol tools in the style of Playwright MCP. Any MCP-capable agent (Claude Code, Codex, OpenCode, Pi, Cursor, VS Code…) can navigate, read the page, click, type and log in for you, while a web viewer shows the agent's cursor, the element it is acting on, and a log of every step.
Demo
https://github.com/user-attachments/assets/19edb4dd-3e3f-45e3-8809-b27a6c31be58

Related MCP server: Chrome Bridge
Screenshots
Features
Playwright-style MCP tools —
browser_snapshotreturns an accessibility outline with areffor every element, and the action tools (click, type, scroll, drag, select…) use those refs.Live viewer — watch the page stream in your browser, with the agent's cursor, captions and chat log.
Shared browser room — you and the agent use the same Chrome; take control at any time, or block the agent.
Pick an element — click the pick button, point at anything on the page and get a short code (e.g.
el-1d2a). Paste it to your coding agent, which looks the element up withbrowser_get_elementand can act on it right away.Record a flow — press the red record button, do a task in the browser, then stop. You get a flow id (e.g.
flow-3fa9c1): paste just the id to your agent, which looks it up withbrowser_get_flowand replays it withbrowser_run_flow(repeat it N times, or change what gets typed withinputs) or adapts it to what you ask. The Flows tab in the sidebar lists your flows: view and edit their steps, rename, replay, export/import or delete them. Passwords are never stored: the agent must be given them at replay time.Assets tab — everything the browser produced while you work is kept in the sidebar's Assets tab: screenshots (the agent's
browser_take_screenshotand the Capture screen button), text copied in the shared browser, elements you picked and downloaded files. View, copy, download or remove each one. They survive a restart (assetsfolder next to the profile).Inspect (DevTools) — press the
</>button in the bottom bar to dock Chrome's own DevTools under the shared screen (it follows the active tab; drag its top edge to resize, or pop it out into a window). It goes through the server, so it sits behind the password and works over the public link. Pass-no-devtoolsto keep Chrome's local debugging port closed.Persistent logins — cookies live in a profile folder, so you sign in once and the agent reuses the session.
No heavy dependencies — no Docker, X server or video encoder needed. Docker is available if you prefer it.
Quick start
Install the binary (see Install, no Rust needed) and run
agent-browser-use, or run from source (requires a Rust toolchain and Chrome/Chromium, or just Docker):git clone https://github.com/cavaldos/agent-browser-use.git cd agent-browser-use make run # starts the server on port 3000Or run it with Docker:
make docker. If you installed the binary (see Install), just runagent-browser-use.The server listens on port 3000:
Viewer (watch the agent): http://localhost:3000
MCP endpoint (connect agents): http://localhost:3000/mcp
Keep the server running while you use your agents.
Run commands
agent-browser-use # web UI + MCP over HTTP (port 3000)
agent-browser-use -p 8080 -pw secret # other port, with a password
agent-browser-use mcp # MCP over stdio (an agent starts it for you); also serves the web UI
agent-browser-use -version # print the version
agent-browser-use -update # update to the latest releaseFrom source, use make:
Command | What it does |
| Run from source. Short options: |
| Pass any flag straight to the app |
| Build |
| Dry-run the release pipeline locally ( |
| Tag and push a release (maintainers; runs fmt, clippy, tests first) |
| Build and install to |
| Run in Docker, show its logs, stop it |
| Docker with a Cloudflare WARP container as the browser's proxy |
PORT=8080, HOST=0.0.0.0 and ARGS="-agent-speed 1" also work with make.
Flags
Flag | Default | Meaning |
|
| HTTP port |
| none | Password for the web UI and |
|
| The one folder where everything is stored (see below; or env |
|
|
|
| auto-detect | Path to the browser executable |
| none | Connect to an already running Obscura ( |
|
| Shared screen size |
|
| Image quality 10-100 (lower = less bandwidth) |
|
| Maximum open tabs |
|
| Page for new tabs |
|
| Agent cursor/typing pace: |
|
| Give control back after the agent is idle this long ( |
|
| Open the viewer when the agent starts and nobody is watching |
| none | Upstream SOCKS5 proxy for the browser only (or env |
| off | Public https link through a built-in Cloudflare tunnel (sets a password if none) |
| random | With |
| off | Allow |
| off | Disable the |
| off | Disable the shared browser |
| off | Disable browser audio |
| none | File to keep chat history across restarts (default: memory only) |
| inside | Override where one specific part is stored |
Run agent-browser-use -h for the full list. Set AGENT_BROWSER_USE_NO_MENU=1 to run in the foreground instead of the terminal menu.
Where your data goes
Everything the app creates lives in one folder named log/, created in the folder you start the app from (make run: the project root). Change it with -home <folder>. With agent-browser-use mcp (started by an agent from any folder) it is ~/.agent-browser-use/ instead.
log/
chrome-profile/ browser cookies and logins (delete it to log out of everything)
downloads/ files the browser downloaded
uploads/ files the agent may upload from
states/ saved login sessions (contain cookies: treat like passwords)
flows/ recorded flows
warp.json built-in WARP account (private key, don't share)
agent-browser-use.log server logOwn IP via Cloudflare WARP (browser only): the globe chip in the header always shows the agent browser's public IP; its switch sends the browser through Cloudflare WARP. WARP runs inside the app (userspace WireGuard, no network interface, no route changes), so your computer keeps its own IP. The first time you switch it on, the app signs up a free WARP account and keeps it in warp.json in the home folder (private key, don't share it). To use your own SOCKS5 proxy instead, pass -proxy socks5://host:port (or AGENT_BROWSER_USE_PROXY); make docker-warp does that with a WARP container. DNS and WebRTC also go through the tunnel, so the real IP does not leak.
Install
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/cavaldos/agent-browser-use/main/scripts/install.sh | shWindows (PowerShell, installs the .exe into %LOCALAPPDATA%\agent-browser-use):
irm https://raw.githubusercontent.com/cavaldos/agent-browser-use/main/scripts/install.ps1 | iexThen run agent-browser-use. Viewer: http://localhost:3000, MCP endpoint: http://localhost:3000/mcp.
Uninstall: rm ~/.local/bin/agent-browser-use (Windows: Remove-Item -Recurse $env:LOCALAPPDATA\agent-browser-use)
Prefer Docker or need more options? See docs/INSTALL.md.
Browser engine
# macOS
brew install --cask chromium
# Debian / Ubuntu
sudo apt install -y chromium
# Fedora
sudo dnf install -y chromium
# Windows (PowerShell)
winget install Hibbiki.ChromiumConnecting a coding agent (MCP)
Start the server with a password (./agent-browser-use -pw your-password), then point your agent at
http://localhost:3000/mcp. New to MCP, or want the stdio mode? Read the general guide.
No password? Start the server without
-pw, then delete theAuthorizationheader / token lines in the snippets below.
Claude Code
claude mcp add --transport http agent-browser http://localhost:3000/mcp --header "Authorization: Bearer your-password"Or in a project .mcp.json:
{
"mcpServers": {
"agent-browser": {
"type": "http",
"url": "http://localhost:3000/mcp",
"headers": { "Authorization": "Bearer your-password" }
}
}
}Check it with claude mcp list or /mcp.
Codex (OpenAI)
~/.codex/config.toml (or .codex/config.toml in a trusted project). The password stays in an environment variable so it isn't written in the file:
[mcp_servers.agent-browser]
url = "http://localhost:3000/mcp"
bearer_token_env_var = "AGENT_BROWSER_USE_PASSWORD"export AGENT_BROWSER_USE_PASSWORD=your-passwordRestart Codex after editing the file.
OpenCode
opencode.json (project root or global config):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"agent-browser": {
"type": "remote",
"url": "http://localhost:3000/mcp",
"enabled": true,
"headers": { "Authorization": "Bearer your-password" }
}
}
}Pi
MCP is not part of every Pi install; it is often added through an extension such as the community pi-mcp-adapter.
Once MCP is enabled, use the common mcpServers format:
{
"mcpServers": {
"agent-browser": {
"type": "http",
"url": "http://localhost:3000/mcp",
"headers": { "Authorization": "Bearer your-password" }
}
}
}Other agents
Cursor, VS Code, Windsurf, Gemini CLI, Cline, Zed, Claude Desktop and more: docs/MCP-CLIENTS.md.
Verify the connection
Ask your agent something like:
Go to news.ycombinator.com, open the top story and summarize it.
Then open http://localhost:3000 to watch the agent work.
Available tools
Tool | What it does |
| Open a URL (non-URL text is searched on Google), or move through history |
| Accessibility outline of the page, with a |
| Click, hover, type into a field, press keys and shortcuts |
| Pick |
| Wait for text, or for the page to change on its own |
| Screenshot the tab, or run JavaScript in the page |
| Manage tabs, or show a message to the people watching |
| Console output, exceptions and network requests (status, headers, response body). Action results also list new console errors and failed requests |
| Wait for and read downloaded files; fill |
| Read and change cookies and localStorage/sessionStorage; save and restore a whole login session by name |
| Only what changed on the page since the last snapshot or a named baseline |
| Phone/tablet presets, screen size, pixel ratio, touch, user agent, locale, time zone, dark mode, GPS location, network speed |
| Read a flow a person recorded (by its id, e.g. |
| Replay a recorded flow, optionally several times, with changed inputs ( |
Recorded flows
Record a task once, then let the agent repeat it or adapt it:
Press the red record button under the screen and use the browser as usual (clicks, typing, choices in lists, keys, links, tabs).
Press Stop & save. You get an id such as
flow-3fa9c1.Paste the id to your agent with what you want, e.g. "flow-3fa9c1, do it for these three names". Alone, the id replays the flow once.
The agent finds the flow with browser_get_flow, then replays it with browser_run_flow or follows its steps when the job needs changes. Actions the agent takes itself are not recorded.
Passwords are never stored. A password step needs its value passed in
inputsat replay time, or a saved login (browser_state).Flows tab (sidebar): list, search, rename, view and edit steps, remove steps, replay from the viewer, export and import as
.json, delete.Flows are saved in the
flows/folder inside the home folder (change it with-flows <folder>).Not recorded: hover-only menus, scrolling, and anything inside an iframe.
See docs/GUIDE.md for the full tool reference, options, the shared browser room, security and limitations.
Security
Uploads only read from the upload folder (and the download folder), never from other places on the machine. Saved sessions (
states/) contain cookies: treat them like passwords.The shared browser keeps the cookies of every account you log into. The agent can read any open page and run JavaScript in it, so only log into accounts you are happy for the agent to use.
By default
/mcponly accepts connections from the local machine, and it rejects requests from other websites.Without
-pw, anyone who can reach port 3000 can open the viewer and drive the browser. Keep it on a trusted network, or set a password.
Build and test
Requires stable Rust (rustup). The tunnel needs cloudflared embedded at build time: scripts/fetch-cloudflared.sh downloads it into app/cloudflared/ (the release build does this for you).
make build # bin/agent-browser-use
cd app && cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo testCI (.github/workflows/ci.yml) runs the same checks on Linux and macOS. Pushing a tag vX.Y.Z (make release V=vX.Y.Z) builds and publishes binaries for macOS, Linux (arm64, amd64) and Windows (amd64).
Project layout
app/src/ Rust source: agent/ (MCP tools), browser/ (Chrome/CDP), network/ (tunnel, WARP, proxy),
recording/ (flows, assets, states), system/ (auth, update, menu)
app/static/ web UI (embedded in the binary)
app/parity/ golden outputs from the former Go version, used to check behaviour parity
docker/ Dockerfile and entrypoint
scripts/ run / build / release / docker scripts
docs/ full guide and images
bin/ built binary (make build)Documentation
docs/INSTALL.md — Docker, building from source, options.
docs/GUIDE.md — full guide: tools, options, shared browser room, data, security and limitations.
docs/CONTRIBUTING.md — contributing and releasing.
Star History
License
See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Run multi-step tasks in a real Chrome browser: persistent environments, live view, human takeover.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Automate cloud Chrome—navigate, click, type, screenshot, run code, record screen video
Related MCP Servers
- AlicenseNot gradedqualityBmaintenancesingle-binary MCP server that gives AI agents a browser. 66 tools for navigation, form filling, data extraction, screenshots, and DOM diffing — built on pure Chrome DevTools Protocol.14MIT
- AlicenseAqualityAmaintenanceMCP server + Chrome extension that drive the user's real, logged-in Chrome over a local WebSocket. 59 token-efficient web-dev tools: compact element refs instead of screenshots, server-side table filtering, visual regression, accessibility/SEO/security audits, network mocking. Also runs on ChromeOS/Crostini.691,702 npm7MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that lets agents drive your real Chrome browser with existing logins and sessions via an outbound-only WebSocket extension. It exposes Playwright-compatible browser tools for navigation, clicking, typing, and snapshots.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive a real Chrome instance over the Chrome DevTools Protocol — opening and navigating tabs, reading compact YAML page outlines with refs, clicking, typing, scrolling, screenshotting, and evaluating scripts — with no browser extension or installed dependencies. It also audits pages for horizontal overflow and WCAG AA contrast, available both as an MCP tool and as a CI-friendly CLI.15 npmMIT