Skip to main content
Glama
codeChap

mcp-server-agent-browser

by codeChap

mcp-server-agent-browser

Status: Testing — Functional but still being validated. Expect rough edges.

Let LLMs drive a real browser. This MCP server wraps agent-browser (by Vercel Labs) so any MCP-compatible client — Claude Desktop, Claude Code, or others — can navigate pages, fill forms, click buttons, take screenshots, and more.

Claude Code navigating Hacker News and taking a screenshot

Prerequisites

Install the agent-browser CLI:

cargo install agent-browser
agent-browser install

Related MCP server: agentify-desktop

Build

cargo build --release

Binary: target/release/mcp-server-agent-browser

Configuration

Add to your MCP client config (example for Claude Desktop / Claude Code):

{
  "mcpServers": {
    "agent-browser": {
      "command": "/path/to/mcp-server-agent-browser"
    }
  }
}

The server communicates over stdio using JSON-RPC 2.0 — it works with any MCP client.

Environment Variable

Description

Default

AGENT_BROWSER_PATH

Path to the agent-browser binary

agent-browser (via $PATH)

What it can do

The server exposes 35+ tools covering:

  • Navigation — open URLs, go back/forward, reload

  • Interaction — click, type, fill, press keys, hover, scroll, drag, select, check/uncheck, upload, download

  • Reading — get page text, HTML, attributes, URL, title

  • Accessibilitybrowser_snapshot returns an accessibility tree with @ref identifiers that can be used as selectors in subsequent calls

  • State — check if elements are visible, enabled, or checked

  • Capture — screenshots (with optional annotation for vision models) and PDF export

  • Sessions — create isolated browser sessions with independent cookies/storage/viewport

  • Cookies — get, set, clear

  • JavaScript — evaluate arbitrary JS in the page context

  • DevTools — read console logs, inspect network requests, connect via CDP

Each tool is self-documented with parameter schemas — your MCP client will discover them automatically.

How it works

A typical AI-driven interaction follows this pattern:

  1. browser_navigate — open a page

  2. browser_snapshot — get the accessibility tree to understand the page structure

  3. browser_click / browser_fill — interact using @ref selectors from the snapshot

  4. browser_screenshot — visually verify the result

The agent decides which tools to call and in what order. You just describe what you want done.

Sessions

All tools accept an optional session_id. Create isolated sessions with browser_new_session and pass the returned ID to subsequent calls. Each session has its own cookies, storage, and viewport. Without a session ID, commands use the default session.

Timeouts

Commands time out after 60 seconds by default. The browser_wait tool adjusts its timeout automatically based on the wait duration you specify.

Limitations

  • Requires the Rust toolchain to build, and Node.js for the agent-browser daemon

  • Chromium only — agent-browser uses Playwright under the hood

  • Headless by default — no visible browser window

  • The 60-second default timeout may not be enough for slow pages or complex interactions

  • No built-in authentication persistence — cookies reset between server restarts unless managed via the cookie tools

  • File upload/download paths are validated but restricted from system directories

License

MIT

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables LLM applications to control web browsers via Browserbase, supporting features like web navigation, screenshots, cookie management, and persistent contexts.
    Last updated
    17
    5,082
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    MCP server that enables AI tools to control local browser sessions for ChatGPT, Claude, and other AI services, supporting querying, navigation, file uploads, and artifact management.
    Last updated
    86
    491
    Mozilla Public 2.0
  • A
    license
    -
    quality
    D
    maintenance
    MCP server for controlling a local camofox-browser instance, enabling LLM agents to perform web automation tasks such as navigation, interaction, snapshotting, and content extraction.
    Last updated
    417
    MIT

View all related MCP servers

Related MCP Connectors

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • A paid remote MCP for AI agent browser MCP session, built to return verdicts, receipts, usage logs,

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/codeChap/mcp-server-agent-browser'

If you have feedback or need assistance with the MCP directory API, please join our Discord server