
agent-in-browser
io.github.GwakkoPublished by GitHub account Gwakkov0.1.2Updated Oct 25, 2026
Real browser for any agent: Chrome/Edge/Brave via CDP, Firefox via BiDi. Refs, forms, console, net.
Overview
A local MCP server that gives an AI assistant a real Chrome, Edge, Brave or Firefox browser to navigate, inspect and interact with web pages.
- What you can do
- Open, switch and close tabs, and navigate to URLs in a real browser session, with status and installed-browser checks and viewport resizing or closing the browser entirely. Read a page as a snapshot with element references, find elements, get text, take screenshots and wait for conditions. Click, hover, type, press keys, fill forms and scroll using trusted input. Run JavaScript in the page and collect console messages and network requests. Replay tool calls as YAML test scenarios across a browser matrix with JUnit or JSON reports.
- When to use it
- Useful when an assistant needs to drive a real browser rather than fetch static HTML: testing a local web app, filling in and submitting forms, checking console or network errors, or capturing screenshots. Also suited to scripted cross-browser UI tests run from the shell or CI.
- Requirements
- Runs as a local process on the user's machine (desktop only), installed via the provided installer, Homebrew, Go, or the one-click MCP bundle. It drives browsers already installed on the machine: Chrome-family browsers over CDP and Firefox over WebDriver BiDi; Safari is only detected. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open agent-in-browser in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
agent-in-browser
[ci] [release] [Go Report Card] [license]
A real browser for any AI agent, any model, and any test runner — one dependency-free binary.
[The same agent tool calls driving Chrome over CDP and Firefox over WebDriver BiDi]
Real recording, not a mock-up. The agent reads the page as a snapshot with element refs, types, fills the form and clicks, first in Chrome (CDP), then in Firefox (WebDriver BiDi). Regenerate it with task demo.
agent-in-browser is an open take on "Claude in Chrome". It doesn't need an extension or a vendor-specific runtime. It drives the browsers you already have through their native automation protocols:
It's available three ways, all backed by the same tool catalogue:
- MCP server (
agent-in-browser mcp): plugs into Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, Windsurf, VS Code/Copilot, Zed, opencode and any other MCP client, whatever model sits behind it. - Shell CLI (
agent-in-browser call <tool> …): for agents without MCP, for scripts, and for humans. Calls share one persistent browser. - Scenario runner (
agent-in-browser run test.yaml --browser chrome,firefox): replays tool calls as automated tests across a browser matrix, with JUnit/JSON reports.
An agent skill (skills/agent-in-browser/SKILL.md) ships inside the binary and teaches agents the workflow.
Install
Connect your agent
Claude Desktop, one click: download agent-in-browser-<version>.mcpb from the latest release and open it. It also appears in the MCP Registry as io.github.Gwakko/agent-in-browser.
Without --write, setup only prints the config. Pass browser options through with --args "--browser firefox --headless". See docs/integrations.md for every client.
Use it from the shell
Useful flags (they work anywhere on the command line): --browser firefox, --headless, --instance work for a second, independent browser, --endpoint http://127.0.0.1:9222 to attach to a browser you started yourself, and --viewport 390x844.
Test scenarios
Full format: skills/agent-in-browser/references/scenarios.md.
Tools
browser_status · browsers_installed · tabs_list · tab_new · tab_select · tab_close · navigate · snapshot · find · click · hover · type · press_key · fill_form · scroll · wait_for · get_text · screenshot · evaluate · console_messages · network_requests · resize · browser_close
Arguments are documented in docs/tools.md, which task docs:tools generates.
How it works
- The browser runs on a dedicated profile (
~/.agent-in-browser/profiles/<instance>-<browser>) and is detached, so it survives MCP server restarts. Separate CLI calls reuse it through~/.agent-in-browser/instances/<name>.json. - Page understanding (snapshot, refs, form filling) is injected JavaScript that works the same in every engine. Trusted input, screenshots, tabs and console/network capture come from each protocol's driver.
- Details: docs/architecture.md · browser notes: docs/browsers.md · plans: docs/roadmap.md.
Development
Security notes
- The debugging endpoint listens on
127.0.0.1only. Even so, any local process can drive that browser, so don't sign it into accounts you wouldn't hand to the agent. - Since Chrome 136, remote debugging is refused for your default Chrome profile. agent-in-browser always uses its own profile. To reuse your logins, sign in once inside the agent's browser window and the profile keeps them.
License: MIT
Source: README.md at commit dca60a5
Tools
0Version history
2- v0.1.2LatestOct 25, 2026
- v0.1.1Oct 21, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts