Official server by Microsoft
Playwright MCP server
Drive a real browser through Playwright using accessibility snapshots instead of screenshots.
Install
Pick your agent and copy one line. Remote servers ask you to sign in on first use.
claude mcp add playwright -- npx -y @playwright/mcp
# ~/.codex/config.toml [mcp_servers.playwright] command = "npx" args = ["-y", "@playwright/mcp"]
gemini mcp add playwright npx -y @playwright/mcp
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}code --add-mcp '{"name":"playwright","command":"npx","args":["-y","@playwright/mcp"]}'Comparing options? Browser automation MCP servers compared →
What it can do
From Microsoft's own MCP documentation.
Sign in
None. Runs locally. Logged-in state comes from a persistent profile or a storage state file.
Tools
browser_clickbrowser_closebrowser_console_messagesbrowser_dragbrowser_dropbrowser_emulate_mediabrowser_evaluatebrowser_file_uploadbrowser_fill_formbrowser_findbrowser_handle_dialogbrowser_hoverbrowser_navigatebrowser_navigate_backbrowser_network_requestbrowser_network_requestsbrowser_press_keybrowser_resizebrowser_run_code_unsafebrowser_select_optionbrowser_snapshotbrowser_take_screenshotbrowser_typebrowser_wait_forbrowser_tabs
Options
- Install: npx @playwright/mcp@latest. Needs Node.js 18 or newer.
- --caps adds optional tools such as vision, pdf, devtools, network, storage, testing and config.
- --headless (headed by default), --isolated (in-memory profile), --browser chrome, firefox, webkit or msedge.
- --allowed-origins and --blocked-origins, semicolon separated.
- --port enables HTTP transport at http://localhost:8931/mcp.
Good to know
- The README says it is not a security boundary. Origin lists do not apply to redirects.
- browser_run_code_unsafe is described as RCE equivalent.
- A persistent profile allows one browser instance at a time. Parallel clients need --isolated or separate --user-data-dir.
- file:// navigation is blocked by default.
- Docker supports only headless Chromium.
Details
- Registry name
- io.github.microsoft/playwright-mcp
- Latest version
- 0.0.84 (updated 2026-10-31)
- Packages
@playwright/mcp (npm)
- Links
- Microsoft docsSource
More in Browser automation
Reviewed Oct 21, 2026. Official means published under Microsoft's namespace in the MCP registry. It is not a security audit.
Built an MCP server? Get it listed everywhere →
Shipping an Android app? Google Play needs 12 testers for 14 days first. Get them with Tester Exchange →