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.1.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.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file mseep_playwrightdebugger-0.3.1.tar.gz.

File metadata

  • Download URL: mseep_playwrightdebugger-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 155bf55bbcfb42af7d96901e38c3b0d9cbe362a55d0553c766dcca4856d339e3
MD5 c2077646cf10c7a6ed66b09e7eb7736a
BLAKE2b-256 5da0a8636e247c1581058c94712d75aacdc9b701748e4d43e4a9ffc9dd395b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_playwrightdebugger-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3d02fd3742383febc0ded8affbe5ab8418f0ffe562e6e2c465686a4bffc3d6c
MD5 7b1e580f4036edf3235f3e990a4dae8e
BLAKE2b-256 9c7dfa88d859083ce861b1626b5ceb54d8352ba7cfa45411b0848797c601184d

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