mcp-playwright测评

mcp-playwright介绍

mcp-playwright是一个使用 Playwright 提供浏览器自动化能力的模型上下文协议服务器。该服务器使 LLMs 能够与网页交互、截屏,并在真实的浏览器环境中执行 JavaScript。

GitHub地址:github.com/executeauto...

安装

bash 复制代码
npm install -g @executeautomation/playwright-mcp-server

Claude Desktop 配置:

perl 复制代码
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@executeautomation/playwright-mcp-server"]
    }
  }
}

但是这样配置在Cline中会报错,如下所示:

修改为如下所示即可:

perl 复制代码
 "playwright": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@executeautomation/playwright-mcp-server"
      ]
    }

现在看一下mcp-playwright提供的所有功能。

实践

现在开始测试一下mcp-playwright提供的几个工具。

模型使用的是Qwen/Qwen2.5-72B-Instruct。

playwright_navigate

页面导航功能。

任务:"使用mcp服务器导航至github.com/executeauto..."

效果:

playwright_screenshot

屏幕截图功能。

效果:

playwright_click

点击元素功能。

比如点击Issues 按钮。

playwright_fill

填写输入字段功能。

Task:"使用MCP服务器导航至www.google.com.hk/index.html 并在搜索框输入你好。"

playwright_evaluate

执行js代码。

Task:"使用MCP服务器导航至www.google.com.hk/index.html 并在控制台输出你好世界。"

剩下的工具我就不一个个试了。

具体使用场景我也还不了解,但是毕竟是个新项目,看看这个项目的发展吧!!

相关推荐
over6972 天前
从 LLM 到全栈 Agent:MCP 协议 × RAG 技术如何重构 AI 的“做事能力”
面试·llm·mcp
用户12039112947262 天前
从MCP到RAG:Agent的开发之路
agent·mcp
用户8307196840822 天前
spring ai alibaba + nacos +mcp 实现mcp服务负载均衡调用实战
spring boot·spring·mcp
栀秋6662 天前
重塑 AI 交互边界:基于 LangChain 与 MCP 协议的全栈实践
langchain·llm·mcp
神秘的猪头3 天前
🔌 给 AI 装上“三头六臂”!实战大模型接入第三方 MCP 全攻略
langchain·llm·mcp
神秘的猪头4 天前
🔌 把 MCP 装进大脑!手把手带你构建能“热插拔”工具的 AI Agent
langchain·llm·mcp
小兵张健4 天前
AI 页面与交互迁移流程参考
前端·ai编程·mcp
小兵张健4 天前
掘金发布 SOP(Codex + Playwright MCP + Edge)
前端·mcp
Qinana4 天前
从代码到智能体:MCP 协议如何重塑 AI Agent 的边界
前端·javascript·mcp
神秘的猪头4 天前
🚀 拒绝“手搓”工具!带你硬核手写 MCP Server,解锁 Agent 的无限潜能
agent·mcp·trae