AgentDeskAI/browser-tools-mcp
Chrome DevTools extension and local MCP connector for debugging live sessions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
BrowserTools MCP is a TypeScript workspace with three main directories: chrome-extension/, browser-tools-mcp/, and browser-tools-server/. The extension captures console and network activity from the Chrome session the developer is already using and connects over an authenticated loopback WebSocket. The Node.js MCP server normally embeds that connector in one server process and exposes structured tools and resources over stdio. The connector also has a bearer-authenticated local HTTP API and can run standalone so multiple local clients can share one browser connection.
DevTools telemetry and retention are scoped per tab. Opening DevTools establishes the current tab; a reconnect does not take it over, and results include the source tab ID and URL. A separate path for listing, reading, and interacting with tabs uses chrome.tabs and chrome.scripting without attaching the debugger. Its chromeTabId is not interchangeable with the DevTools tabId.
Key Capabilities & Differentiators
The MCP surface covers console errors, XHR/fetch status, timings and bodies, the selected DOM element, page metadata, screenshots, and storage inspection with values withheld by default. Log tools provide filtering, newest-first pagination, and total and returned counts. Full console and network histories, HAR 1.2 exports, images, and complete audit reports are retrievable as MCP resources, so clients can inspect summaries without loading the entire payload into model context.
Screenshots default to a 3 MB budget: oversized images are re-encoded as JPEG, then downscaled if needed, with a file path returned when the image still cannot be inlined. Lighthouse runs accessibility, performance, SEO, and best-practices audits in a separate Chromium process; the last 20 full reports are kept under audits/ in the screenshot directory. Tab navigation and soft input are also available with opt-in controls, but soft actions cannot satisfy Chrome's requirement for a real user gesture.
Trade-offs & Limitations
Compared with using Playwright MCP or Chrome DevTools MCP against a separate automation profile, BrowserTools' advantage is preserving the login state and page that the developer is already debugging. The cost is a manually loaded extension and a DevTools-dependent capture window: traffic that finished before DevTools opened is absent. Default console capture shows Chrome's debugger banner; the page-console wrapping option avoids attaching the debugger. Firefox is not verified, and its screenshot path is unsupported. Lighthouse starts a separate browser, so it should not be assumed to inherit the inspected tab's login state.
Loopback binding, bearer authentication, and credential redaction reduce exposure, but response bodies and screenshots can still contain sensitive application data. Treat the MCP client and its model destination as part of the trust boundary. Keep redaction enabled, expose only necessary tools, and avoid enabling broad private-network audit access. If a private audit target is not already open in a connected tab, prefer a narrowly scoped origin allowlist.
Hardware & Deployment Guide
Use Node.js 22.19 or newer, configure the MCP client to launch npx -y @agentdeskai/browser-tools-mcp@latest, and load chrome-extension/ unpacked in Chrome Developer mode. Open DevTools on the target tab to start capture. No second connector process is needed for a single client. --doctor checks setup and identifies the audit browser; CHROME_PATH can override that browser. The default connector address is 127.0.0.1:3025.
For multiple clients on one workstation, run npx @agentdeskai/browser-tools-server once and decide the shared API's --only, --exclude, and action policy at that process. Do not treat its default HTTP action-confirmation policy as a control on MCP tools in the process that embeds the connector. For upgrades, 1.x is unsupported and has known critical vulnerabilities. v2.0.3 fixes an SSRF issue in the Lighthouse tools affecting v2.0.0–v2.0.2; v2.0.4 hardens local connector authentication and moves the test runner to Vitest 5. The workspace separates unit and integration tests from extension end-to-end tests that use real Chromium.
tabId and URL, while background tab tools use a separate chromeTabId.total and returned; full histories and HAR 1.2 exports are available as MCP resources.--extension-id pairing restrictions.Frontend and full-stack teams debugging authenticated Chrome sessions, correlating console errors and failed requests with screenshots without rebuilding the browser state.
You need repeatable browser automation in isolated profiles, reliable real-user gestures, verified Firefox support, or a browser-data workflow that your MCP client's data policy cannot accommodate.
Quick Start & Installation
npx @agentdeskai/browser-tools-server --verbose
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| browser-tools-mcp ★ | 7.3k | +6 | TypeScript | MIT | Chrome DevTools extension and local MCP connector for debugging live sessions |
| chrome-devtools-mcp | 60.4k | +801 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| agents | 43.2k | +221 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
| context7 | 65.9k | +324 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/AgentDeskAI/browser-tools-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about browser-tools-mcp
How do the extension, connector, and MCP client fit together?
@agentdeskai/browser-tools-server once and share its browser connection. The standalone process controls the local HTTP API's tool exposure and action policy; each attached MCP client can narrow its own tool list.What runtime, hardware, and VRAM should I budget for?
--doctor to see which browser it will launch.Can we self-host this for commercial work, and what should we review before rollout?
When should I use this instead of Playwright MCP or Chrome DevTools MCP?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy