BrowserTools MCP
Streams console output, network traffic, screenshots and Lighthouse audits from your real Chrome session into any MCP-compatible coding agent.
- Source repo
- AgentDeskAI/browser-tools-mcp
- Stars
- ★ 7.3k
- Last updated
- 1mo ago v2.0.4
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 75/100 · Good
At a glance
- Works with
- Universal · cross-platformClaude Code
- You'll need
- Typical use
- A frontend developer asks the agent in Cursor to read console errors from the page they are already looking at, instead of copy-pasting stack traces.
- Main limitation
- Setup is genuinely two steps: configure the MCP server and manually load a Chrome extension, then open DevTools each session.
- Website
- agentdesk.ai ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-27latest release v2.0.4 (2026-10-27)+0.9 ★/day over 7 days
- Source review
- 75/100 · Good
What does this agent do, and when should you use it?
BrowserTools MCP is a two-part tool: an MCP server launched with npx (@agentdeskai/browser-tools-mcp) and a Chrome extension you load unpacked. Instead of driving a fresh automated browser, it attaches to the Chrome session you are already logged into via a DevTools extension, capturing console logs, XHR/fetch activity, the selected element, page info, screenshots and browser storage. It exposes these through 16 tools plus three bundled prompts (debuggerMode, auditMode, nextjsSeoAudit) and a set of MCP resources to clients such as Cursor, Claude Code, Windsurf, Cline, Zed and Gemini CLI. Version 2.0 collapses three processes into one, binds only to 127.0.0.1, requires a per-run token, and scrubs Authorization/Cookie headers, JWTs, cloud keys and vendor tokens before data leaves the browser. It also runs Lighthouse accessibility, performance, SEO and best-practices audits from a separate browser process that is blocked from internal networks and cloud metadata endpoints by default. Node.js 22.19 or newer is required, and the project is MIT licensed.
Capture begins on any tab where DevTools is open; the extension forwards telemetry to a local connector, and the MCP server exposes getConsoleLogs, getConsoleErrors, getNetworkLogs, getNetworkErrors, getSelectedElement, getPageInfo, getConnectionStatus, listBrowserTabs, takeScreenshot, refreshBrowser, getBrowserStorage, wipeLogs, plus runAccessibilityAudit, runPerformanceAudit, runSEOAudit and runBestPracticesAudit. Each DevTools tab is tracked and retained separately; tools act on the current tab (the most recent one to open DevTools) unless you pass a tabId or allTabs, and every result reports its tabId, url and otherTabs. Whole-history payloads are served as MCP resources — browser-tools://console/{tabId|all}, browser-tools://network/{tabId|all}, browser-tools://har/{tabId|all}, browser-tools://screenshot/{name} and browser-tools://audit/{reportId} — and tools link to them with resource_link instead of inlining. Log reads accept limit, offset and keyword filters and return newest-first with both total and returned. Audits launch a separate Chromium browser and keep the last 20 full Lighthouse reports under audits/ in the screenshot directory.
- A frontend developer asks the agent in Cursor to read console errors from the page they are already looking at, instead of copy-pasting stack traces.
- Debugging an authenticated dashboard where recreating login state in a throwaway Playwright or Chrome DevTools MCP profile would be painful.
- Chasing failing or slow API calls with getNetworkLogs and getNetworkErrors filtered by URL or body keywords, then pulling the HAR resource for full analysis.
- Running runAccessibilityAudit or runPerformanceAudit with Core Web Vitals before shipping a release.
- Checking a Next.js site's SEO by combining the bundled nextjsSeoAudit prompt with runSEOAudit.
- Working with several open tabs and using listBrowserTabs to pick the right tabId so screenshots and logs come from the intended page.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx @agentdeskai/browser-tools-mcp --doctornpx @agentdeskai/browser-tools-server --verbosenpx @agentdeskai/browser-tools-mcp --port 3025 --screenshot-dir ./shots --only getConsoleErrors,getNetworkLogs --audit-allow-origin http://localhost:3000npx @agentdeskai/browser-tools-server
- Runtime
- Node.js 22.19
- Install notes cover
- Windows
How do you install or deploy this agent?
You need Node.js 22.19 or newer; verify first:
node --versionAdd the server to your MCP client configuration:
{
"mcpServers": {
"browser-tools": {
"command": "npx",
"args": ["-y", "@agentdeskai/browser-tools-mcp@latest"]
}
}
}On Windows, if the client cannot find npx, use:
{
"mcpServers": {
"browser-tools": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@agentdeskai/browser-tools-mcp@latest"]
}
}
}Then clone the repository, open chrome://extensions, enable Developer mode, choose Load unpacked and select the chrome-extension directory. There is no second server to start. Verify the setup with:
npx @agentdeskai/browser-tools-mcp --doctorHow do you use this agent?
Open Chrome DevTools (F12) on the page you want to inspect — capture starts immediately; the BrowserTools panel is only for settings and status — then ask your agent things like "check the console for errors" or "run an accessibility audit on this page". To watch capture happen live during a fresh install:
npx @agentdeskai/browser-tools-server --verboseCommon flags cover port, screenshot directory, tool allow/deny lists and audit origin allowlisting:
npx @agentdeskai/browser-tools-mcp --port 3025 --screenshot-dir ./shots --only getConsoleErrors,getNetworkLogs --audit-allow-origin http://localhost:3000To share one browser session across several MCP clients, start the connector once and let clients attach:
npx @agentdeskai/browser-tools-serverFor working on the project itself:
npm install
npm run build
npm test
npx playwright install chromium
npm run test:e2eSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- data-flow disclosure
What are this agent's strengths and limitations?
- Attaches to your real, already-logged-in Chrome session, sidestepping Chrome 136's restriction on remote debugging for the default profile.
- 2.0 runs as a single process on 127.0.0.1 with per-run token auth and scrubs Authorization, Cookie, JWT and cloud-key credentials before they leave the browser.
- Beyond logs and network data it delivers Lighthouse-grade performance, accessibility, SEO and best-practices audits, which automation-first servers generally lack.
- Whole-history data is exposed as MCP resources with resource_link, and read tools support limit/offset plus keyword filters while reporting total vs. returned.
- Per-tab retention with tabId, url and otherTabs in every result makes wrong-tab answers visible instead of silent.
- Includes a --doctor self-check, --only/--exclude tool filtering, and an MIT license.
- Setup is genuinely two steps: configure the MCP server and manually load a Chrome extension, then open DevTools each session.
- Network capture starts only when DevTools opens, so early page-load requests are missed unless you reload.
- Default console capture shows Chrome's "started debugging this browser" banner unless you switch the panel to Wrap page console.
- Firefox is untested and screenshots (which rely on the DevTools protocol) will not work there; Arc is best-effort and unverified headless.
- Audits spawn a separate browser and can take up to a minute, and their loopback/private-network rules take reading.
- Upgrading from 1.x is mandatory, not optional: 1.2.x has a critical vulnerability and older builds bound 0.0.0.0 and scanned private ranges.
How does this agent compare with similar options?
The README explicitly positions this against CDP-based servers such as Chrome DevTools MCP and Playwright MCP: those drive a fresh automated browser, which suits writing tests but forces you to recreate auth state because Chrome 136+ refuses remote debugging on your default profile. BrowserTools MCP attaches to the existing session through a DevTools extension and adds Lighthouse-grade performance, accessibility and SEO data the automation-first servers do not report.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| BrowserTools MCP This agent | 75 · Good | — | ★ 7.3k | 1mo ago | TypeScript | Claude Code |
| byob (Bring Your Own Browser) | 53 · Major gaps | MCP serverFree | ★ 149 | 1d ago | TypeScript | Codex · Claude Code |
| JS Reverse MCP | 72 · Some gaps | MCP serverFree | ★ 3.1k | 3mo ago | TypeScript | Codex · Claude Code |
| Pilot Browse MCP | 37 · Major gaps | MCP serverFree + model costs | ★ 23 | 4mo ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The materials describe loopback binding, per-run bearer tokens, origin validation, default credential redaction, constrained audit network access, and selectable tool exposure. These support strong scores for least privilege and data-flow transparency. Deductions: redaction is pattern-based and explicitly not guaranteed, and --no-redact can disable it; some state-changing actions invoked through MCP bypass the confirmation gate described for the local API; publisher identity is unverified, and maintenance responsibility and update commitments are not fully clear. Wiping is documented, but no recovery or rollback mechanism is shown.
The README, CLI, and MCP code are broadly consistent about tools, paging, resource links, and error returns; CI is configured for typechecking, builds, tests, and dependency auditing. Deductions: this is a static review with no executed verification; the supplied code excerpts are incomplete, and some README descriptions do not fully line up with the CLI flags shown. Doctor, startup, and tool errors have messages, but the evidence does not support a higher score for failure diagnosis.
The product clearly targets coding agents and users of MCP, covering browser debugging, audits, tab operations, and multiple IDEs. Documentation explains tool boundaries, distinct tab ID spaces, permission switches, and limitations such as unverified Firefox support. Deductions: capture begins only after DevTools opens, and actions and navigation depend on settings and origin rules; support varies across Windows, Firefox, Arc, proxy environments, and MCP clients.
The README is organized around installation, tools, security, configuration, and limitations; setup steps are concrete, the LICENSE states MIT, and security, migration, and CI materials are included. Known limits are described thoroughly. Deductions: names and commands vary across MCP, server, and CLI references; examples and FAQ-style guidance are useful but incomplete; version 2.0 and supported security versions are identified, but a full change history is not provided; maintenance responsibility is only partly described through the security reporting path and support policy.
Structured output, paging and filters, full-history resource links, HAR, screenshots, and Lighthouse reports give agents usable browser data. Debugging the user's active authenticated session has a clear practical benefit. Deductions: setup requires configuring an MCP server and loading an extension, audits may launch an additional browser and take time, and screenshots and large payloads remain subject to size limits.
Several product and security claims can be traced across the README, SECURITY.md, CLI, MCP server, CI workflow, and test source. The documentation distinguishes facts from caveats such as unverified Firefox support and the limits of redaction. Deductions: some security claims are documented but cannot all be checked against the implementation excerpts provided; CI configuration and test files show intended checks and assertions, not that they ran or passed in this review.
- Credential redaction is not guaranteed; unknown secret formats may be captured, and --no-redact disables redaction. Check that browser data is appropriate to expose to the agent.
- The local API confirmation gate does not cover MCP tools embedded in the same process. Configure MCP clients and tool access accordingly.
- Firefox is explicitly unverified; audits launch a browser, and relaxing private-network audit settings can expand reachable destinations.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v2.0.4 2.0.4
Release notes excerpt
Low-severity hardening of the local connector, and the test runner is now Vitest 5. - The token is a bearer token. The HTTP API and the extension WebSocket accept it from Authorization: Bearer or, for the extension, a WebSocket subprotocol. A token in the URL is refused. The extension collects it from POST /.pair, which answers only a real browser-extension origin (chrome-extension:// with a Chromium id, or moz-extension:// / safari-web-extension:// with a UUID). /.identity still does not include it. --extension-id limits pairing and the extension socket to one …View on GitHub ↗ -
v2.0.3 2.0.3 — Security
Release notes excerpt
Fixes a server-side request forgery in the four Lighthouse audit tools (runAccessibilityAudit, runPerformanceAudit, runSEOAudit, runBestPracticesAudit), CWE-918, present in 2.0.0 through 2.0.2. Advisory: GHSA-fm7v-38h4-4q7w. The tools accept a url and audited it in a headless Chrome on the user's machine after checking only that the scheme was http or https. A caller — in practice a model acting on prompt-injected page content — could point that browser at loopback services, the LAN or a cloud metadata endpoint, and the …View on GitHub ↗ -
v2.0.2 v2.0.2 — five defects found while specifying 2.1
Release notes excerpt
Five defects, all found by writing the [2.1 capability specifications](https://github.com/AgentDeskAI/browser-tools-mcp/blob/main/ROADMAP-2.1.md) rather than by anything failing. Four were invisible in normal use, which is how they survived the 2.0 rewrite and its test suite. No API changes. Upgrade with npx @agentdeskai/browser-tools-mcp@latest. Fixed …View on GitHub ↗
FAQ
Can someone else on my network see the captured logs?
Does using it add any model API costs?
My first page load's requests are missing — why?
Will huge screenshots or long logs blow up the context window?
Can an audit reach my internal services?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.