https://github.com/operative-sh/playwright-consolelogs-mcp
https://github.com/operative-sh/playwright-consolelogs-mcp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/operative-sh/playwright-consolelogs-mcp
- Owner: Operative-Sh
- Created: 2025-03-23T07:07:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T21:41:55.000Z (7 months ago)
- Last Synced: 2025-06-17T13:06:41.948Z (4 months ago)
- Language: Python
- Size: 40 KB
- Stars: 12
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Console and Network Logs Playwright MCP Server
[](https://smithery.ai/server/@Lumeva-AI/playwright-consolelogs-mcp)
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.
## Features
- Open a browser at a specified URL
- Monitor and retrieve console logs
- Track and retrieve network requests
- Close the browser when done## Requirements
- Python 3.8+
- Playwright
- Model Context Protocol (MCP) Python SDK## Installation in claude
Edit the file:
`~/Library/Application\ Support/Claude/claude_desktop_config.json`Add this:
```json
"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)
## Commands
Open localhost:3000/dashboard and look at console logs and network requests
Close the browser
## How It Works
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.