Agent Browser

v1.0.0Browser Automationstable

Enables AI agents to directly control your real Chrome browser with full context including login sessions, cookies, and open tabs. It provides tools for page scanning, JavaScript execution, CDP control, screenshots, and physical mouse/keyboard input

ai-agentautomationbrowser-automationcdpchrome
Share:
212
Stars
0
Downloads
0
Weekly
0/5

What is Agent Browser?

Agent Browser is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai agents to directly control your real chrome browser with full context including login sessions, cookies, and open tabs. it provides tools for page scanning, javascript execution, cdp contro...

Enables AI agents to directly control your real Chrome browser with full context including login sessions, cookies, and open tabs. It provides tools for page scanning, JavaScript execution, CDP control, screenshots, and physical mouse/keyboard input

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables AI agents to directly control your real Chrome brows

Use Cases

Control Chrome with AI agents
Maintain login sessions and cookies
Execute JavaScript and keyboard inputs
335234131

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx agent-browser

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Agent Browser

Agent Browser MCP connects AI agents to your real, already-running Chrome browser — complete with your existing login sessions, cookies, and open tabs — rather than spinning up an isolated browser instance. It exposes tools for page scanning, JavaScript execution, Chrome DevTools Protocol (CDP) commands, screenshot capture, and physical mouse and keyboard input, enabling agents to interact with web applications exactly as a human would. It is particularly useful for automating workflows that require authenticated sessions or complex UI interactions.

Prerequisites

  • Python 3.10 or later on macOS or Windows
  • Google Chrome installed
  • pip for installing the package
  • An MCP-compatible AI client such as Claude Desktop, Cursor, or Hermes Agent
  • Developer Mode enabled in Chrome (for loading the companion extension)
1

Install the agent-browser-mcp package

Clone the repository and install it in editable mode, or build and install the wheel.

git clone https://github.com/335234131/agent-browser-mcp.git
cd agent-browser-mcp
pip install -e .
2

Find the Chrome extension path

After installation, run the helper command to get the path to the bundled Chrome extension directory.

agent-browser-mcp extension-path
3

Load the extension into Chrome

Open Chrome, navigate to chrome://extensions, enable Developer Mode, click 'Load unpacked', and select the directory printed by the previous command. Then open any regular webpage (not about:blank) to establish a valid browsing session.

4

Run the diagnostics check

Verify that the extension is connected and the MCP server can communicate with Chrome.

agent-browser-mcp doctor
5

Add to your MCP client configuration

Register the agent-browser-mcp server in your Claude Desktop or Cursor configuration file.

{
  "mcpServers": {
    "agent-browser": {
      "command": "agent-browser-mcp",
      "args": []
    }
  }
}
6

Verify available tools

Once connected, the following tools will be available to your AI assistant: get_setup_status, list_tabs, switch_tab, open_url, open_new_tab, scan_page, execute_js, cdp_command, cdp_batch, get_cookies, capture_page_screenshot, capture_desktop_screenshot, mouse_move, mouse_click, mouse_drag, type_text, hotkey, and pointer_info.

Agent Browser Examples

Client configuration

Add agent-browser-mcp to your Claude Desktop configuration to give Claude control of your real Chrome browser.

{
  "mcpServers": {
    "agent-browser": {
      "command": "agent-browser-mcp",
      "args": []
    }
  }
}

Prompts to try

Once connected, you can instruct the AI to interact with your browser using your existing sessions.

- "List all my open Chrome tabs and tell me what I have open."
- "Go to https://github.com and take a screenshot of the current page."
- "Click the Login button on the current page and type my username."
- "Execute JavaScript on the current page to get the page title."
- "Get all cookies for the current site."
- "Switch to the tab that has Gmail open and scan the page content."

Troubleshooting Agent Browser

agent-browser-mcp doctor reports the extension is not connected

Ensure you loaded the extension from the correct path (use agent-browser-mcp extension-path), Developer Mode is enabled in Chrome, and you have a real webpage open (not about:blank or a new tab page).

Physical mouse/keyboard tools do not work as expected

The tools require Chrome to be the focused application. Ensure no other window is capturing input focus when the agent sends mouse_click or type_text commands.

The server fails to start with a Python version error

agent-browser-mcp requires Python 3.10 or later. Check your version with python --version and upgrade if needed. On macOS, use pyenv or Homebrew to install a newer Python.

Frequently Asked Questions about Agent Browser

What is Agent Browser?

Agent Browser is a Model Context Protocol (MCP) server that enables ai agents to directly control your real chrome browser with full context including login sessions, cookies, and open tabs. it provides tools for page scanning, javascript execution, cdp control, screenshots, and physical mouse/keyboard input It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Agent Browser?

Follow the installation instructions on the Agent Browser GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Agent Browser?

Agent Browser works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Agent Browser free to use?

Yes, Agent Browser is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "agent-browser": { "command": "npx", "args": ["-y", "agent-browser"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Agent Browser?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides