Skip to content
↑↓navigate↵openescclose
Claude+372Whisper+228LangChain+168Codex+223NotebookLM+276DALL-E 3+192DeepL+249n8n+208Topaz Video AI+153LlamaIndex+161
Playwright MCP logo
#1 · of 445 · by weekly downloadsMCP server

Playwright MCP

Gives an assistant a real browser to click, type and read pages with

0
SaveVisit website ↗
Rank
#1
of 445 · by weekly downloads
Weekly downloads
7.6M
npm + PyPI, last 7 days

Add it to your client

Official
Install
npx -y @playwright/mcp@latest
mcpServers
{
  "mcpServers": {
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp@latest"
      ]
    }
  }
}
Transport
stdio
Runtime
Node
Auth
Not required
Tools
25
License
Apache-2.0
Tools
browser_navigatebrowser_clickbrowser_typebrowser_snapshotbrowser_take_screenshotbrowser_console_messagesbrowser_network_requestsbrowser_resize

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.

  • --browser picks chrome, firefox, webkit or msedge; --headless hides the window.
  • --isolated keeps the profile in memory. By default, logins persist in a per-workspace profile.
  • --port 8931 serves HTTP at http://localhost:8931/mcp.

What it exposes

  • browser_navigate, browser_click, browser_type, browser_fill_form, browser_select_option
  • browser_snapshot, browser_take_screenshot, browser_tabs
  • browser_console_messages, browser_network_requests
  • Opt-in groups through --caps, such as vision for coordinate clicks and pdf for browser_pdf_save

Limits

  • The README states the server is not a security boundary. browser_run_code_unsafe runs 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.

Comments(0)

Sign in to comment

No comments yet — be the first.

Similar MCP servers

Report this comment

Why are you reporting this?