Playwright MCP
Browser automation through accessibility snapshots, navigation, and form interaction.
Overview
Microsoft's Playwright MCP server gives agents browser automation tools built on Playwright. It can navigate pages, inspect accessibility snapshots, click, type, and capture screenshots. Because it drives a real browser, it may access authenticated sessions and anything reachable on the local network; use an isolated profile and explicit allow-lists where possible.
Capabilities
- Navigate pages
- Accessibility snapshots
- Click and type
- Screenshots
- Multi-tab sessions
Connection profile
- Transports
- stdio
- Authentication
- None (browser profile)
- License
- Apache-2.0
- Vendor
- Microsoft
- Repository
- github.com/microsoft/playwright-mcp
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
npx -y @playwright/mcp@latest
Security notes
- A persistent browser profile may contain logged-in sessions; use a dedicated profile for agent work.
- Browsed content is untrusted and can attempt prompt injection; do not let a page direct privileged actions.
- Browser automation can reach localhost and private network services. Apply network isolation where needed.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Used in these workflows
Use current library docs plus a real browser to implement an API client, then test the golden path and failure cases.
WorkflowRun a repeatable browser QA passDrive the site with Playwright, debug failures with Chrome DevTools, and record evidence for each finding.
WorkflowTurn a Figma frame into reviewed frontend codePull design context, implement against the repository's existing components, and verify the result in a real browser.
Related failure modes
The client tried to launch a local MCP server but could not find the executable named in the command field. This is an environment and PATH problem, not a protocol problem: the server process never starts.
JSON-RPC -32602 Invalid paramsThe method exists but its parameters are missing, of the wrong type, or outside the accepted range. For MCP tool calls, this is usually a schema mismatch between the model's arguments and the tool's inputSchema.
MCP tool not found after the server connectsThe server is connected but the requested tool is absent from its tool list. The tool may not be enabled, the server may expose a different toolset, or the client may have cached a stale list.
MCP request or tool call times outA request exceeded the client's or server's time budget. Timeouts can be legitimate slow operations, an unresponsive upstream dependency, a blocked stdio process, or a timeout set too low for startup or long-running tools.
Client does not support the selected MCP transportA configuration was copied from one client to another, but the target client does not implement that transport. Codex, for example, documents stdio and Streamable HTTP but not legacy SSE; other clients differ in field names and transport support.
Sources & evidence
- github.com/microsoft/playwright-mcpRepository · checked Oct 23, 2026 · documented
Microsoft's repository documents the Playwright MCP server, its browser tools, and supported clients.