Playwright MCP
Automate browsers with Microsoft Playwright for AI agents
npx @playwright/mcp@latest{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}Playwright MCP is an officially maintained MCP server in the Browser Automation category, developed by Microsoft. It runs locally on your machine, keeping your data private and giving you full control over the connection. Adding it to your setup expands what Claude can do without any extra coding.
About Playwright MCP
The official Playwright MCP server from Microsoft enables AI assistants to control browsers for automation, testing, and scraping.
Features
- Navigate to any URL
- Click, type, and interact with page elements
- Take full-page screenshots
- Extract page content and accessibility trees
- Fill and submit forms
- Network request interception
Why Playwright?
Playwright is the gold standard for browser automation with support for Chromium, Firefox, and WebKit.
Who Should Use Playwright MCP?
- 1Control a browser and scrape the web through Claude
- 2Extend Claude and other AI assistants with new capabilities
- 3Automate tasks that previously required manual steps
- 4Connect your existing tools to an AI workflow
How to Install Playwright MCP
Before you start
You will need Node.js (v18 or later) installed on your machine — download it from nodejs.org if you haven't already.
- 1Open a terminal (Terminal on Mac, Command Prompt or PowerShell on Windows).
- 2Paste the install command above and press Enter — Node.js will download and run the server automatically.
- 3Add the server to your Claude Desktop config file (see the JSON snippet above) and restart Claude.
The Claude Desktop config snippet above can be copied and pasted directly into your claude_desktop_config.json file — no editing required.