# agent-browser

This MCP server gives an AI agent a self-hosted Chrome session with a live noVNC screen that a person can take over.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 14
- Author: AetherAI3
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/AetherAI3/agent-browser
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/mcp/agent-browser

## What it does

agent-browser exposes one Chrome session to an AI agent through MCP. Its tool set covers opening a session, navigation, page reading, clicking, text entry, key presses, scrolling, status checks, and closing. A person can watch the same browser through noVNC and step in when the agent reaches a login or 2FA prompt.

The local stack is started with Docker Compose and includes Chrome, a virtual display, noVNC, and the API. Claude Code setup uses controller and observer tokens; a remote deployment also takes `AGENT_BROWSER_URL`. The quickstart requires Docker Engine for Linux with Compose v2, while Docker Desktop and remote-host use are outside that setup path.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `AGENT_BROWSER_URL`, `AGENT_BROWSER_CONTROLLER_TOKEN`, `AGENT_BROWSER_OBSERVER_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env AGENT_BROWSER_URL=<AGENT_BROWSER_URL> --env AGENT_BROWSER_CONTROLLER_TOKEN=<AGENT_BROWSER_CONTROLLER_TOKEN> --env AGENT_BROWSER_OBSERVER_TOKEN=<AGENT_BROWSER_OBSERVER_TOKEN> --transport stdio agent-browser -- npx -y aether-browser
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add agent-browser --env AGENT_BROWSER_URL=<AGENT_BROWSER_URL> --env AGENT_BROWSER_CONTROLLER_TOKEN=<AGENT_BROWSER_CONTROLLER_TOKEN> --env AGENT_BROWSER_OBSERVER_TOKEN=<AGENT_BROWSER_OBSERVER_TOKEN> -- npx -y aether-browser
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agent-browser": {
            "command": "npx",
            "args": [
                "-y",
                "aether-browser"
            ],
            "env": {
                "AGENT_BROWSER_URL": "<AGENT_BROWSER_URL>",
                "AGENT_BROWSER_CONTROLLER_TOKEN": "<AGENT_BROWSER_CONTROLLER_TOKEN>",
                "AGENT_BROWSER_OBSERVER_TOKEN": "<AGENT_BROWSER_OBSERVER_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agent-browser": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "aether-browser"
            ],
            "env": {
                "AGENT_BROWSER_URL": "<AGENT_BROWSER_URL>",
                "AGENT_BROWSER_CONTROLLER_TOKEN": "<AGENT_BROWSER_CONTROLLER_TOKEN>",
                "AGENT_BROWSER_OBSERVER_TOKEN": "<AGENT_BROWSER_OBSERVER_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AGENT_BROWSER_URL=<AGENT_BROWSER_URL> -e AGENT_BROWSER_CONTROLLER_TOKEN=<AGENT_BROWSER_CONTROLLER_TOKEN> -e AGENT_BROWSER_OBSERVER_TOKEN=<AGENT_BROWSER_OBSERVER_TOKEN> agent-browser npx -y aether-browser
```
Replace <…> with your own values

## When to use it
- run a dedicated Chrome session for an agent
- watch browser actions through noVNC
- take over at a 2FA checkpoint
- read page state through MCP tools
- end the browser session cleanly

## Example prompts
- Open the page with agent-browser and report its readable content.
- Navigate to the requested URL, then tell me the page title.
- Pause when a 2FA prompt appears and ask me to enter the code in the browser window.

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32260
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13181
- [apify-mcp-server](https://affpapa.org/en/nevibecode/mcp/apify-mcp-server.md) — MCP server · ★ 13345

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
