Puppeteer MCP Server

Browser Automationstdiov0.6.2
代码仓库

Provides browser automation capabilities through the Model Context Protocol using Puppeteer. Enables AI agents to navigate web pages, take screenshots, click elements, fill forms, and execute JavaScript in a browser context. Useful for web scraping, testing, and interacting with web applications programmatically. Originally part of the reference servers, now archived and available in servers-archived.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-puppeteer"
      ]
    }
  }
}

工具 (5)

puppeteer_navigate

Navigate the browser to a specified URL and wait for the page to load.

{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "URL to navigate to"
    }
  }
}

puppeteer_screenshot

Take a screenshot of the current page or a specific element.

{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the screenshot"
    },
    "width": {
      "type": "integer",
      "description": "Viewport width in pixels"
    },
    "height": {
      "type": "integer",
      "description": "Viewport height in pixels"
    },
    "selector": {
      "type": "string",
      "description": "CSS selector of element to screenshot (captures full page if omitted)"
    }
  }
}

puppeteer_click

Click on an element identified by a CSS selector.

{
  "type": "object",
  "required": [
    "selector"
  ],
  "properties": {
    "selector": {
      "type": "string",
      "description": "CSS selector of the element to click"
    }
  }
}

puppeteer_fill

Fill a form input field with the specified value.

{
  "type": "object",
  "required": [
    "selector",
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "description": "Value to fill into the field"
    },
    "selector": {
      "type": "string",
      "description": "CSS selector of the input field"
    }
  }
}

puppeteer_evaluate

Execute JavaScript code in the browser page context and return the result.

{
  "type": "object",
  "required": [
    "script"
  ],
  "properties": {
    "script": {
      "type": "string",
      "description": "JavaScript code to execute in the browser"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Anthropic (@modelcontextprotocol)
代码仓库
https://github.com/modelcontextprotocol/servers-archived
许可证
MIT
版本
0.6.2
星标
265
最后更新
2026年1月27日