Agent Browser logo

Agent Browser

Controls real Chromium through MCP for navigation, form interaction, accessibility snapshots, screenshots, cookies, and sessions.

Install Agent Browser

Run the project’s own setup commands, in order.

Setup steps from the project

agent-browser installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    cargo build --release
    

Overview

The agent-browser MCP server lets MCP clients control a real Chromium browser through Vercel's agent-browser CLI. It exposes browser actions for navigation, form filling, clicking, accessibility snapshots, screenshots, cookies, JavaScript evaluation, CDP access, and session handling. Use it when an agent must operate a live browser rather than fetch web documents, such as completing a workflow or restoring a logged-in session. It runs as a standard MCP stdio server and supports optional TOML configuration.

Use cases

  • Automate browser-based form workflows
  • Inspect accessibility trees before interacting with pages
  • Restore authenticated browser sessions
  • Capture screenshots from live Chromium pages
  • Diagnose browser CLI and daemon setup

Key features

  • Live Chromium automation over MCP
  • Accessibility snapshots with interactive references
  • Form filling, clicking, navigation, and waiting
  • Cookies, local storage, and session persistence
  • Screenshots, JavaScript evaluation, and CDP access
  • Browser installation and daemon diagnostics

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 46d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit25d agoMost recent push to the default branch.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Browser works

What agent-browser does

The agent-browser MCP server gives an MCP client control of Chromium through Vercel Labs' agent-browser command-line tool. It is intended for live browser automation: an agent can open URLs, inspect page structure, interact with controls, and capture visual output. This differs from web-search or page-fetching tools, which retrieve documents without operating a browser.

The available interaction set includes navigation, clicking, typing and form filling, accessibility-tree snapshots, screenshots, cookies, JavaScript evaluation, Chrome DevTools Protocol access, and sessions. Additional wrapper capabilities include browser diagnostics, regular-expression text matching with surrounding context, and waiting for page load, URL, text, or selector conditions.

How it works

The MCP process launches or communicates with an agent-browser Chromium daemon. A typical agent workflow is to navigate first, request an interactive snapshot to obtain element references, use those references for clicks or form filling, and take a screenshot when pixel-level output is needed.

Persistence is enabled by default. Each session_id receives its own restore key, and cookies plus local storage are saved when the browser closes and during the CLI's autosave process. A later run can restore that session. Restore data is stored below ~/.agent-browser/ in the mcp-server namespace. An encryption key file can be configured because the restore files contain credentials.

The browser_doctor tool checks the CLI, configuration, persistence settings, headed-mode environment, and likely daemon state without launching Chrome. If the MCP process is killed, the daemon may remain active; the diagnostic tool can report this condition.

Setup and configuration

Install the CLI and its browser before building or running the MCP server:

bash
cargo install agent-browser
agent-browser install
cargo build --release

The resulting binary is target/release/mcp-server-agent-browser. Configure an MCP client to start that binary over stdio. The optional TOML file is located at ~/.config/mcp-server-agent-browser/config.toml; set MCP_AGENT_BROWSER_CONFIG to use another path.

Configuration controls headed mode, persistence, daemon lifetime, namespace isolation, wrapper timeouts, idle shutdown, download location, a separate Chrome profile, and encryption. Defaults include headless operation, persistence enabled, a one-hour idle timeout, and ~/Downloads for downloads. AGENT_BROWSER_HEADED=1 enables headed mode, while AGENT_BROWSER_PATH selects a different CLI binary. Headed mode takes effect at launch, so an existing headless daemon must be closed first.

Tools and capabilities

The agent-browser MCP server supports tools for:

  • Navigating pages and waiting for page conditions
  • Inspecting accessibility snapshots and locating interactive references
  • Clicking, typing, and filling forms
  • Reading page text, including regex matches with two lines of context
  • Taking screenshots
  • Managing cookies and browser sessions
  • Evaluating JavaScript and using CDP operations
  • Checking installation and daemon configuration with browser_doctor

Limitations and notes

The agent-browser MCP server uses Chromium through Playwright and does not provide web search. Playwright's upstream action timeout is 25 seconds; the wrapper's command timeout is configurable separately. Headed operation is ignored while an existing daemon is running.

Screenshot, PDF, and download destinations must be relative paths, paths under /tmp, or paths inside the configured download directory. Snap Chromium on Ubuntu may fail to expose its DevTools port; the browser installed by agent-browser install, or an explicit executable path, is preferred in that case.

The project is beta. Unit tests cover the CLI wrapper, and a fake-browser stdio smoke test is available, but real Chromium login restoration after a restart requires manual verification. The server is licensed under MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent Browser

agent-browser is an MCP server that connects MCP clients to a real Chromium browser through Vercel Labs' agent-browser CLI. Its main tools support navigation, clicking, form filling, accessibility snapshots, screenshots, cookies, JavaScript evaluation, CDP access, sessions, and browser diagnostics for live automation.

Install the CLI and browser with `cargo install agent-browser` and `agent-browser install`, then build the Rust server with `cargo build --release`. Configure your MCP client to launch the resulting `target/release/mcp-server-agent-browser` binary over stdio.

Enable the default persistence setting, log in in headed mode, then close the browser or MCP process before starting it again. Cookies and local storage are saved per `session_id` under the namespaced `~/.agent-browser/` state directory and should restore on the next navigation.

No, it does not provide search. The server operates Chromium through the agent-browser CLI, so use another search tool to find a URL and then pass that URL to `browser_navigate`.

Call `browser_doctor` to inspect the CLI, configuration, persistence, headed-mode environment, and likely daemon state without launching Chrome. It can also help identify a missing installation or a daemon left running after the MCP process was killed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent Browser AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-browser-2?style=directory)](https://allmcps.com/mcp/agent-browser-2)
HTML Embed
<a href="https://allmcps.com/mcp/agent-browser-2"><img src="https://allmcps.com/api/badge/agent-browser-2?style=directory" alt="Agent Browser on AllMCPs" /></a>