Browser Monitoring MCP Server

by Operative-Sh
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

控制台和网络日志 Playwright MCP 服务器

此 MCP(模型上下文协议)服务器使用 Playwright 打开浏览器、监控控制台日志并跟踪网络请求。它将这些功能公开为可供 MCP 客户端使用的工具。

特征

  • 在指定的 URL 处打开浏览器
  • 监视和检索控制台日志
  • 跟踪和检索网络请求
  • 完成后关闭浏览器

要求

  • Python 3.8+
  • 剧作家
  • 模型上下文协议 (MCP) Python SDK

克劳德的安装

编辑文件: ~/Library/Application\ Support/Claude/claude_desktop_config.json

添加此内容:

"playwright": { "command": "/Users/christophersettles/.local/bin/uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/playwrightdebugger/", "run", "mcp_playwright.py" ] }

(将/ABSOLUTE/PATH/TO/playwrightdebugger/替换为您克隆存储库的目录的绝对路径)

命令

打开 localhost:3000/dashboard 并查看控制台日志和网络请求

关闭浏览器

工作原理

服务器使用 Playwright 的事件监听器来捕获控制台消息和网络活动。当客户端请求这些信息时,服务器会以 LLM 可以使用的结构化格式返回这些信息。

-
security - not tested
F
license - not found
-
quality - not tested

打开浏览器来监控和检索控制台日志和网络请求,向 LLM 提供有关网页行为的结构化数据。

  1. Features
    1. Requirements
      1. Installation in claude
        1. Commands
          1. How It Works
            ID: ma3zlev3rq