Playwright MCP
Gives an assistant a real browser to click, type and read pages with
Add it to your client
Officialnpx -y @playwright/mcp@latest
{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp@latest"
]
}
}
}- Transport
- stdio
- Runtime
- Node
- Auth
- Not required
- Tools
- 25
- License
- Apache-2.0
Playwright MCP gives an agent in Claude Code or Cursor a real browser for walking through a signup flow, reproducing a UI bug or checking a page after a deploy. After each action it returns an accessibility snapshot: roles, labels and element refs as text. The model clicks by ref instead of guessing coordinates from a screenshot, so it needs no vision model.
Setup
npx @playwright/mcp@latest runs over stdio, needs Node.js 18 or newer and no API key. In Claude Code: claude mcp add playwright npx @playwright/mcp@latest.
--browserpicks chrome, firefox, webkit or msedge;--headlesshides the window.--isolatedkeeps the profile in memory. By default, logins persist in a per-workspace profile.--port 8931serves HTTP athttp://localhost:8931/mcp.
What it exposes
browser_navigate,browser_click,browser_type,browser_fill_form,browser_select_optionbrowser_snapshot,browser_take_screenshot,browser_tabsbrowser_console_messages,browser_network_requests- Opt-in groups through
--caps, such asvisionfor coordinate clicks andpdfforbrowser_pdf_save
Limits
- The README states the server is not a security boundary.
browser_run_code_unsaferuns arbitrary code in the server process. - Two clients can't share one persistent profile; start extra ones with
--isolated.
Microsoft recommends it for long exploratory sessions that keep browser state between steps. For token-conscious coding agents it suggests Playwright CLI with skills.
Similar MCP servers
Checkly MCP Server
MCP serverReads synthetic monitoring checks and their failures, including Playwright script results.
BrowserStack MCP Server
MCP serverOpens sessions on BrowserStack's real device cloud and diagnoses failing test runs from the editor.
Browserbase MCP Server
MCP serverDrive a cloud browser session with instruction-level page actions.

Comments(0)
Sign in to comment