# Puppeteer DevTools MCP 服务器 — SPA 导航和控制台诊断 (`puppeteer-stealth-mcp`)

> 通过 DevTools 协议自动化本地 Chromium 会话，以检查控制台日志、布局状态和交互式 Web 应用程序。

- **Canonical URL:** https://syndipath.com/zh/mcp/puppeteer-stealth-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@modelcontextprotocol/server-puppeteer`
- **Upvotes:** 728 | **GitHub Stars:** 7240 | **Weekly Installs:** 55800
- **Security Note:** HTTP-200 在 NPM 注册中心（@modelcontextprotocol/server-puppeteer）上验证；通过 npx 在工作区范围的 STDIO 会话中运行。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @modelcontextprotocol/server-puppeteer

# Add to Claude Code CLI
claude mcp add puppeteer-stealth-mcp -- npx -y @modelcontextprotocol/server-puppeteer
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "puppeteer-stealth-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-puppeteer"
      ]
    }
  }
}
```

## Exposed MCP Tools
- `puppeteer_stealth_mcp_extract(url_or_query: string, max_chars?: number)`: Automates local Chromium sessions via DevTools Protocol to inspect console logs, layout states, and interactive web applications.
- `puppeteer_stealth_mcp_metadata(target: string)`: Returns structured page headings, canonical links, and HTTP response diagnostics.
