Skip to main content

Add your description here

Project description

Browser Monitoring 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

playwrightdebugger-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

playwrightdebugger-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file playwrightdebugger-0.1.0.tar.gz.

File metadata

  • Download URL: playwrightdebugger-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for playwrightdebugger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19d2d89fa7c5b507b5151468551fce44b1c309137ceffd053616c132e308ea67
MD5 cec9521cfccfbc52282dada87f3f8ec5
BLAKE2b-256 3130d947ecaaa45f4521c35ded6ae3d592a1d31e9316b37395fc6cb901a0acd0

See more details on using hashes here.

File details

Details for the file playwrightdebugger-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for playwrightdebugger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79a2dc95c128d4b6eead785d8a7eed81456f44705dc50f97492db3689810abd7
MD5 0bb4021323b7e009f746263ababad4ed
BLAKE2b-256 31c716fec0111eb283c6e469a12a4dea3a826221d6ef67ec87dcec157740e5f4

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