Opens a browser to monitor and retrieve console logs and network requests, providing structured data about web page behavior to LLMs.
This MCP (Model Context Protocol) server uses Playwright to open a browser, monitor console logs, and track network requests. It exposes these capabilities as tools that can be used by MCP clients.
Edit the file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Add this:
"playwright": { "command": "/Users/christophersettles/.local/bin/uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/playwrightdebugger/", "run", "mcp_playwright.py" ] }
(Replace /ABSOLUTE/PATH/TO/playwrightdebugger/
with the absolute path to the directory where you cloned the repository)
Open localhost:3000/dashboard and look at console logs and network requests
Close the browser
The server uses Playwright's event listeners to capture console messages and network activity. When a client requests this information, the server returns it in a structured format that can be used by the LLM.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!