MCP Browser Automation

MCP Browser Automation

site icon
2025.01.01 6
TypeScript浏览器自动化浏览器自动化
MCP Browser Automation 是一个基于 Model Context Protocol 的服务器实现,用于通过 Playwright 自动化浏览器操作。它与 Claude Desktop 客户端交互,接受用户提示并使用服务器控制浏览器。
View on GitHub

Overview

基本能力

产品定位

MCP Browser Automation 是一个用于浏览器自动化的工具,通过与 Claude Desktop 客户端的集成,实现自动化浏览和操作。

核心功能

  • 通过 Playwright 控制浏览器
  • 与 Claude Desktop 客户端交互
  • 接受用户提示并执行自动化操作

适用场景

  • 自动化测试
  • 网页数据抓取
  • 浏览器操作自动化

工具列表

  • Playwright: 用于控制浏览器的自动化工具
  • Claude Desktop: 用于与用户交互的客户端

常见问题解答

使用教程

使用依赖

  • Playwright: npm install playwright
  • Claude Desktop: 从 Claude Desktop 下载并安装
  • Node.js: 从 Node.js 下载并安装

安装教程

  1. 克隆仓库: git clone https://github.com/hrmeetsingh/mcp-browser-automation.git
  2. 安装依赖: npm install
  3. 验证 dist 文件夹中的可执行文件

调试方式

  1. 创建配置文件 ~/Application Support/Claude/claude_desktop_config.json (macOS)
  2. 复制以下内容到文件:
{
  "mcpServers": {
    "mcp-browser-automation": {
      "command": "node",
      "args": ["/path/to/mcp-browser-automation/dist/index.js"]
    }
  }
}
  1. 启动 Claude Desktop
  2. 打开 Claude Desktop 并开始新的对话以打开浏览器并导航到 URL

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。