# Repository Briefing: AgentDeskAI/browser-tools-mcp
> Source: https://repoforai.com/repo/AgentDeskAI/browser-tools-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/AgentDeskAI/browser-tools-mcp
- **Official Docs / Website**: https://agentdesk.ai/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (83/100 · Maintenance 26/35 · Adoption 17/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.0.4 (2026-10-27) — https://github.com/AgentDeskAI/browser-tools-mcp/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 7,348 ★ total (+2 24h / +6 7d) · 539 forks
- **Topics**: `ai`, `anthropic`, `cursor`, `mcp`, `mcp-server`
- **When to Use**: Best for: Frontend and full-stack teams debugging authenticated Chrome sessions, correlating console errors and failed requests with screenshots without rebuilding the browser state. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Session capture: A DevTools extension collects evidence from the Chrome profile already in use, without relying on remote debugging of the default profile.
- Tab isolation: DevTools telemetry is retained per tab; results include `tabId` and URL, while background tab tools use a separate `chromeTabId`.
- Context budgets: Paginated log reads report `total` and `returned`; full histories and HAR 1.2 exports are available as MCP resources.
- Image handling: Screenshots default to a 3 MB budget, with JPEG re-encoding, downscaling, and a disk-path fallback.
- Audit execution: Four Lighthouse audit types run in a separate Chromium process, with URL policy checks covering redirects and subresources.
- Connector boundary: Loopback binding, per-run bearer authentication, and optional `--extension-id` pairing restrictions.
```

## Quick Start / Clone
```bash
npx @agentdeskai/browser-tools-server --verbose
```
