MCP ExplorerExplorer

Playwright Consolelogs Mcp

@Operative-Shon a year ago
12 MIT
FreeCommunity
AI Systems
# A Playwright MCP Server for Monitoring Console Logs and Network Requests.

Overview

What is Playwright Consolelogs Mcp

playwright-consolelogs-mcp is an MCP server that utilizes Playwright to open a browser, monitor console logs, and track network requests, providing these capabilities as tools for MCP clients.

Use cases

Use cases include debugging web applications by capturing console logs, monitoring network requests during automated tests, and providing insights into browser behavior for developers.

How to use

To use playwright-consolelogs-mcp, install the required dependencies, configure the server settings in the Claude application, and access the dashboard at localhost:3000/dashboard to view console logs and network requests.

Key features

Key features include opening a browser at a specified URL, monitoring and retrieving console logs, tracking and retrieving network requests, and closing the browser when done.

Where to use

playwright-consolelogs-mcp can be used in web development, automated testing, and debugging scenarios where monitoring console and network activity is essential.

Content

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:

(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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers