Add your description here
Project description
Console and Network Logs Playwright MCP Server
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:
"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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_playwrightdebugger-0.3.0.tar.gz.
File metadata
- Download URL: mseep_playwrightdebugger-0.3.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3660eac2ddbd2c821add19d5b10e4641c3bb1301316e346fb61a1295736b8d8f
|
|
| MD5 |
60836f74ddce9d1257864a2a133f04c9
|
|
| BLAKE2b-256 |
435ccff9a410bf282c1375e17b34275448ccebe8f6e6748bc4c5394854fc0158
|
File details
Details for the file mseep_playwrightdebugger-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mseep_playwrightdebugger-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58f74734d5949a15908a1b6b464c8655e17649b787eae199f972478dd5565a2
|
|
| MD5 |
72e751e4cffcb869ff4a7a59937c1dac
|
|
| BLAKE2b-256 |
c137c65f98139a8c5e0f120b1c26328fd7a0e52a195dfa100632bc68e6f1f531
|