MCP Configs2026年3月29日·1 分钟阅读

Playwright MCP Server — Browser Automation for AI

Official Playwright MCP server for browser automation. Lets Claude Code, Cursor, and other AI tools navigate pages, fill forms, click buttons, take screenshots, and run end-to-end tests via natural la

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@anthropic/mcp-playwright"]
    }
  }
}

Add to your claude_desktop_config.json or .cursor/mcp.json.


介绍

The Playwright MCP Server bridges AI coding tools with real browser automation. Instead of writing Playwright scripts manually, describe what you want in natural language — navigate to a URL, fill out a form, click a button, assert page content, or take a screenshot.

Best for: End-to-end testing, web scraping, form automation, visual regression testing Works with: Claude Code, Cursor, Gemini CLI, VS Code + Copilot


Key Capabilities

Browser Control

  • Navigate to URLs, go back/forward, reload
  • Click elements by text, role, CSS selector
  • Fill input fields, select dropdowns, check boxes

Testing

  • Assert text content, element visibility
  • Screenshot capture for visual comparison
  • Console log and network request monitoring

Advanced

  • Multi-page/tab support
  • File upload/download handling
  • JavaScript evaluation in page context
  • Mobile device emulation

Example

Ask your AI tool:

"Go to https://example.com, fill the search box with 'AI tools', click Search, and screenshot the results page."

The MCP server handles all Playwright API calls automatically.


🙏

来源与感谢

Created by Microsoft. MCP integration by Anthropic. Playwright — Fast and reliable end-to-end testing.

相关资产