MCPSERV.CLUB
mattiasw

BrowserLoop

MCP Server

MCP server for Playwright screenshots and console logs

Active(82)
23stars
1views
Updated 19 days ago

About

A lightweight Model Context Protocol server that captures high‑quality screenshots and collects browser console output using Playwright, enabling AI agents to debug and test web pages efficiently.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

BrowserLoop – A Dedicated MCP Server for Browser Capture and Console Monitoring

BrowserLoop addresses a common pain point for AI‑powered developers: obtaining reliable, programmatic access to visual snapshots and diagnostic logs from web pages. Rather than embedding browser automation logic directly into an assistant, BrowserLoop exposes a lightweight MCP server that lets agents request screenshots or pull console output with a single JSON command. This abstraction eliminates boilerplate, ensures consistent runtime environments via Docker, and keeps the AI’s logic clean and focused on higher‑level tasks.

At its core, BrowserLoop leverages Playwright to drive a headless Chromium instance. When an agent invokes the screenshot or console‑logs endpoints, the server navigates to the target URL, optionally authenticates via cookies, and captures a PNG, JPEG, or WebP image. It also streams all console messages—including warnings, errors, and custom logs—back to the client in real time. The ability to capture full pages or specific elements, adjust viewport sizes, and toggle security‑warning overlays gives developers fine control over the diagnostic data they receive.

The server’s feature set is tailored to real‑world workflows. Testers can quickly generate visual regressions or debug rendering issues without writing test harnesses. QA engineers can capture console errors that surface only in specific environments, while product managers may request screenshots of user flows to validate UI changes. Because BrowserLoop runs inside a Docker container, teams can guarantee that every agent uses the same Chromium build and Playwright version, eliminating “works‑on‑my‑machine” headaches.

Integration with existing MCP pipelines is straightforward. Once BrowserLoop is added to the configuration, any AI assistant that understands MCP can issue a browserloop command with parameters such as , , and . The server responds with a base64‑encoded image or an array of log objects, which the assistant can embed in reports, trigger alerts, or feed into downstream analysis modules. The optional cookie authentication and support for localhost URLs make it suitable for testing protected internal sites or local development environments.

Unique advantages of BrowserLoop include its zero‑install npx execution model, which allows instant, up‑to‑date deployments; comprehensive format support with quality tuning; and a focus on security—running containers as non‑root users mitigates potential attack vectors. While newer MCP solutions like Chrome DevTools now offer richer browser APIs, BrowserLoop remains a lightweight, battle‑tested choice for teams that need quick screenshots and console data without the overhead of a full browser debugging stack.