# 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 ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use ```json { "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. --- ### FAQ **Q: What is Playwright MCP Server?** A: 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 **Q: How do I install Playwright MCP Server?** A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes. ## Source & Thanks > Created by [Microsoft](https://github.com/microsoft/playwright). MCP integration by Anthropic. > [Playwright](https://playwright.dev) — Fast and reliable end-to-end testing. --- Source: https://tokrepo.com/en/workflows/290f10c7-59c4-49aa-bfdd-56e8becfa222 Author: MCP Hub