MCP ConfigsMar 29, 2026·1 min read

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
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

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

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


Intro

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.


🙏

Source & Thanks

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

Related Assets