A browser extension that connects your browser with AI agents via MCP or Skill.
⚠️ Security
- Make sure your AI agent environment is not vulnerable to prompt injection — otherwise an attacker can read your browser data through the extension.
- Only install page tools from sources you trust; a malicious tool can execute arbitrary scripts in your browser.
- Install the extension from your browser's store (Chrome · Edge · Firefox).
- The welcome page that opens after install walks you through:
- downloading and registering the Native Host,
- optionally wiring up MCP for any of Codex, Claude Code, VS Code, Cursor, Zed, and Antigravity that it detects,
- optionally installing the Skill for those same agents.
Note: the extension listens on a local port, so if it is installed and active in multiple browsers at the same time, only one of them will work.
Prefer not to use a store? Grab extension-chrome.zip or extension-firefox.zip from the latest release, unzip, then load it unpacked:
- Chrome / Edge — open
chrome://extensions, enable Developer mode, click Load unpacked, choose the unzipped folder. - Firefox — open
about:debugging, click Load Temporary Add-on, choosemanifest.jsoninside the unzipped folder.
Agents with MCP support work out of the box; agents that don't take MCP config can still drive everything through the browser4agent CLI via a Skill or plain shell commands. Setup detects Codex, Claude Code, VS Code, Cursor, Zed, and Antigravity and offers to configure them for you.
What the agent gets:
- Read content — page text, cookies, localStorage, page errors, screenshots, and more.
- Drive the browser — manage tabs and windows from a background script the agent writes itself.
- Run scripts in a tab — agents can write one-off scripts on the fly; complex flows should ship as page tools and be called directly.
- Debug with CDP — Chromium-only tools for network bodies/headers and other low-level visibility.
Agents can call tools scoped to the current tab. Two sources:
- Subscribed toolsets — subscribe from the in-extension marketplace (or paste any URL in settings); available tools are filtered by the tab URL.
- Developer-provided — page authors register tools via the WebMCP API.
After setup, browser4agent is also a one-shot CLI that forwards a single tool call to the running Native Host — handy for shell scripts and quick checks:
browser4agent --tool list_tabs
browser4agent --tool read_tab --input '{"tab_id": 123}'
echo '{"tab_id":123}' | browser4agent --tool read_tab --stdin
browser4agent --tool read_tab --help # inspect a tool's input schema# Browser extension, output in extension/dist/<browser>
pnpm -C extension run build --browser=chrome
# Native Host — running the binary with no arguments enters setup mode
cargo runLoad extension/dist/<browser> via Load unpacked above.
Browser for AI Agent processes browser data only to provide its core features — MCP browser automation. Depending on the user's request, the extension may access tab metadata, page content, cookies, localStorage, page errors, screenshots, and toolset configuration. Data is sent only to the local Native Messaging Host and the user-configured MCP client / AI agent. We do not sell user data, use it for advertising, or use it for unrelated purposes. Only connect AI agents you trust, and only install toolsets you trust.
