Automation by Microsoft Open source

Playwright MCP

Reliable browser automation for AI agents

View repositoryWebsite

Install Playwright MCP

Choose the tracked registry command or the raw command.

Recommended

Tracked wget install

Counts the install in MCP Haus and runs the published command.

wget -qO- https://mcphaus.com/api/install/playwright-mcp | sh
Raw command

Direct install command

Use this when you want to paste the command into an MCP client config manually.

npx -y @playwright/mcp@latest

What Playwright MCP does

A browser automation MCP server built on Playwright. Agents can navigate pages, click elements, fill forms, capture screenshots, and inspect the DOM with deterministic waits and accessibility-aware locators.

How to use Playwright MCP

1. Copy

Copy the tracked install command to record the download in MCP Haus.

2. Run

Run it in your terminal, or copy the raw command into an MCP client config.

3. Connect

Open your AI client and add the server to the MCP servers list.

Which AI clients does Playwright MCP work with?

Playwright MCP works with every MCP-compatible client, including Claude Desktop, Cursor, Continue, Windsurf, Cline, OpenHands, and Claude Code. Add the install command to your client's MCP configuration and restart the session.

Read the MCP guide