Back to MCP directory
publicPublicdnsLocal runtime

playwrightess-mcp

提供持久化Playwright评估环境的MCP服务器,通过JavaScript编程接口实现调用间状态保持

article

README

🚀 Playwrightess MCP

Playwrightess MCP 是一个 MCP(模型上下文协议)服务器,它提供了一个持久的 Playwright 评估环境。与 Playwright MCP 不同,它采用了一种截然不同的方法,暴露了一个在调用之间具有持久性的 JavaScript 编程接口。这使得代理可以使用名为 playwright_eval 的统一工具来调用 Playwright API。这是一个实验性项目,暂未发布。

🚀 快速开始

Playwrightess MCP 提供了一个持久的 Playwright 评估环境,可通过特定的 JavaScript 编程接口调用 Playwright API。

📦 安装指南

在项目根目录下,执行以下命令进行安装和构建:

npm install
npm run build

💻 使用示例

基础用法

配置 MCP 服务器,可通过以下 JSON 格式的配置文件进行配置:

{
  "mcpServers": {
    "playwriter-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/dist/index.js"],
      "env": {}
    }
  }
}

📄 许可证

本项目基于 Claude 构建,版权情况可能较为特殊。若可适用版权,项目遵循 Apache 2.0 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client