Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install playwright-mcp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install playwright-mcp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/playwright-mcp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: playwright-mcp description: Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows. metadata: {"openclaw":{"emoji":"🎭","os":["linux","darwin","win32"],"requires":{"bins":["playwright-mcp","npx"]},"install":[{"id":"npm-playwright-mcp","kind":"npm","package":"@playwright/mcp","bins":["playwright-mcp"],"label":"Install Playwright MCP"}]}} ---
Browser automation powered by Playwright MCP server. Control Chrome, Firefox, or WebKit programmatically.
npm install -g @playwright/mcp
# Or
npx @playwright/mcp
Install browsers (first time):
npx playwright install chromium
npx @playwright/mcp
# Headless mode
npx @playwright/mcp --headless
# Specific browser
npx @playwright/mcp --browser firefox
# With viewport
npx @playwright/mcp --viewport-size 1280x720
# Ignore HTTPS errors
npx @playwright/mcp --ignore-https-errors
# MCP tools available:
# - browser_navigate: Open URL
# - browser_click: Click element
# - browser_type: Type text
# - browser_select_option: Select dropdown
# - browser_get_text: Extract text content
# - browser_evaluate: Run JavaScript
# - browser_snapshot: Get page structure
# - browser_close: Close browser
1. browser_navigate to form URL
2. browser_type into input fields
3. browser_click to submit
4. browser_get_text to verify result
1. browser_navigate to page
2. browser_evaluate to run extraction script
3. Parse returned JSON data
| Tool | Description | |------|-------------| | browser_navigate | Navigate to URL | | browser_click | Click element by selector | | browser_type | Type text into input | | browser_select_option | Select dropdown option | | browser_get_text | Get text content | | browser_evaluate | Execute JavaScript | | browser_snapshot | Get accessible page snapshot | | browser_close | Close browser context | | browser_choose_file | Upload file | | browser_press | Press keyboard key |
# Security
--allowed-hosts example.com,api.example.com
--blocked-origins malicious.com
--ignore-https-errors
# Browser settings
--browser chromium|firefox|webkit
--headless
--viewport-size 1920x1080
--user-agent "Custom Agent"
# Timeouts
--timeout-action 10000 # Action timeout (ms)
--timeout-navigation 30000 # Navigation timeout (ms)
# Output
--output-dir ./playwright-output
--save-trace
--save-video 1280x720
browser_navigate: { url: "https://example.com/login" }
browser_type: { selector: "#username", text: "user" }
browser_type: { selector: "#password", text: "pass" }
browser_click: { selector: "#submit" }
browser_get_text: { selector: ".welcome-message" }
browser_navigate: { url: "https://example.com/data" }
browser_evaluate: {
script: "() => { return Array.from(document.querySelectorAll('table tr')).map(r => r.textContent); }"
}
browser_navigate: { url: "https://example.com" }
browser_evaluate: { script: "() => { document.body.style.zoom = 1; return true; }" }
# Screenshot saved via --output-dir or returned in response
--no-sandbox with caution)# Update browsers
npx playwright install chromium
# Debug mode
npx @playwright/mcp --headless=false --output-mode=stdout
# Check installation
playwright-mcp --version
安装 Playwright MCP 后,可以对 AI 说这些话来触发它
Help me get started with Playwright MCP
Explains what Playwright MCP does, walks through the setup, and runs a quick demo based on your current project
Use Playwright MCP to browser automation via Playwright MCP server
Invokes Playwright MCP with the right parameters and returns the result directly in the conversation
What can I do with Playwright MCP in my developer & devops workflow?
Lists the top use cases for Playwright MCP, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/playwright-mcp/ 目录(个人级,所有项目可用),或 .claude/skills/playwright-mcp/(项目级)。重启 AI 客户端后,用 /playwright-mcp 主动调用,或让 AI 根据上下文自动发现并使用。
Playwright MCP 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Playwright MCP 可免费安装使用。请查阅仓库了解许可证信息。
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.
Playwright MCP 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Playwright MCP
Identifies repetitive steps in your workflow and sets up Playwright MCP to handle them automatically