MCP Catalogs
首页

puppeteer-mcp-server

by sultannaufal·19·综合分 42

自托管 Puppeteer MCP 服务器,提供浏览器自动化工具,支持多种传输方式和 API 密钥认证。

browser-automationweb-scrapingdeveloper-tools
6
Forks
0
活跃 Issue
6 个月前
最近提交
2 天前
收录于

概述

该 Puppeteer MCP 服务器通过模型上下文协议提供了包含 16 个工具的完整浏览器自动化套件。它包含核心浏览器导航工具、高级鼠标交互功能和用于身份验证处理的 cookie 管理。服务器同时支持现代可流式传输的 HTTP 方式和传统的 SSE 传输方式,并通过 API 密钥进行身份验证验证。该服务器已投入生产使用,支持 Docker 部署,具备限流、健康监控和全面的日志记录功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:Web 应用程序的自动化测试和截图
:动态网站的网络爬虫和数据提取
:自动化表单填写和 UI 交互测试
:如何与服务器进行身份验证?
:支持哪些传输协议?

什么时候选它

当您需要通过 MCP 进行全面的浏览器自动化,特别是在需要高级鼠标交互或用于身份验证的 cookie 管理的场景时,选择此服务器。

什么时候不要选它

如果您只需要无头操作(此服务器提供完整浏览器控制)或需要托管云服务而非自托管解决方案,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • puppeteer_navigate

    Navigate to URLs with safety validation

  • puppeteer_screenshot

    Take full page or element screenshots

  • puppeteer_click

    Click elements with retry logic

  • puppeteer_fill

    Fill input fields with validation

  • puppeteer_select

    Select options from dropdown elements

  • puppeteer_hover

    Hover over elements with effect detection

  • puppeteer_evaluate

    Execute JavaScript with console capture

  • puppeteer_mouse_move

    Precise coordinate movement with smooth interpolation

  • puppeteer_mouse_click

    Advanced clicking with button options (left/right/middle/back/forward)

  • puppeteer_mouse_down

    Mouse button press for drag operations

  • puppeteer_mouse_up

    Mouse button release for drag operations

  • puppeteer_mouse_wheel

    Mouse wheel scrolling with deltaX/deltaY control

可对比工具

browserless-mcpplaywright-mcpweb-scraper-mcp

安装

安装

使用 Docker(推荐)

# 克隆仓库
git clone https://github.com/sultannaufal/puppeteer-mcp-server.git
cd puppeteer-mcp-server

# 创建包含 API 密钥的 .env 文件
echo "API_KEY=your-secure-api-key-here" > .env

# 使用 Docker Compose 启动
docker compose --env-file .env up -d

手动安装

# 前置条件:Node.js 18+,npm 8+
npm install
npm run build
npm start

Claude Desktop 配置

添加到你的 Claude Desktop config.json:

{
  "mcpServers": {
    "puppeteer": {
      "command": "node",
      "args": ["dist/server.js"],
      "env": {
        "API_KEY": "your-api-key"
      }
    }
  }
}

FAQ

如何与服务器进行身份验证?
所有端点都需要 Bearer 令牌身份验证。设置您的 API_KEY 环境变量,并在请求中包含 'Authorization: Bearer your-api-key'。
支持哪些传输协议?
服务器同时支持现代可流式传输的 HTTP 方式(MCP 2025-06-18 规范)和传统的 SSE 传输,以确保向后兼容性。

puppeteer-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。