Skip to main content

Add your description here

Project description

Console and Network Logs Playwright MCP Server

smithery badge

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

mseep_playwrightdebugger-0.3.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_playwrightdebugger-0.3.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

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

Hashes for mseep_playwrightdebugger-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3660eac2ddbd2c821add19d5b10e4641c3bb1301316e346fb61a1295736b8d8f
MD5 60836f74ddce9d1257864a2a133f04c9
BLAKE2b-256 435ccff9a410bf282c1375e17b34275448ccebe8f6e6748bc4c5394854fc0158

See more details on using hashes here.

File details

Details for the file mseep_playwrightdebugger-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_playwrightdebugger-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c58f74734d5949a15908a1b6b464c8655e17649b787eae199f972478dd5565a2
MD5 72e751e4cffcb869ff4a7a59937c1dac
BLAKE2b-256 c137c65f98139a8c5e0f120b1c26328fd7a0e52a195dfa100632bc68e6f1f531

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page