MCP server

Playwright MCP Server

Browser automation through the accessibility tree: click, type, navigate and snapshot pages, no screenshots needed. Official: built and maintained by Microsoft. It runs locally on your machine over stdio. Setup below for 12 clients (checked 2026-10-25). Repo and registry data checked 2026-10-24.
Maintainer
Official · Microsoft
Runs
Local (stdio)
GitHub
★ 38,590, last push 2026-10-22 (checked 2026-10-24)
License
Apache-2.0
Registry
io.github.microsoft/playwright-mcp
Connects to
Playwright

Install the Playwright MCP Server

Pick your client. Each tab starts the same local command. Config shapes checked against each client's docs on 2026-10-25.

Run in a terminal. Everything after -- is the command that starts the server. docs

claude mcp add --transport stdio playwright -- npx -y @playwright/mcp@latest

Tools it exposes

13

The core tools work on the page's accessibility snapshot, not pixels. More groups (network, storage, DevTools, vision, PDF, test assertions) are opt-in with --caps.

  • browser_navigate: Navigate to a URL
  • browser_snapshot: Accessibility snapshot of the page
  • browser_click: Click an element
  • browser_type: Type text
  • browser_fill_form: Fill several form fields at once
  • browser_select_option: Select an option
  • browser_press_key: Press a key
  • browser_wait_for: Wait for text or time
  • browser_take_screenshot: Take a screenshot
  • browser_console_messages: Read console messages
  • browser_network_requests: List network requests
  • browser_evaluate: Evaluate JavaScript on the page
  • browser_tabs: Manage tabs

From the project's own tool list, checked 2026-11-07. Tools change between releases; your client lists the current ones after you connect.

Security notes

  • browser_run_code_unsafe runs arbitrary Playwright code; the README marks it unsafe, so keep approval prompts on for it.
  • The local server runs with your user's permissions (npx downloads it from npm on first run). The package is pinned to @latest, so each start can pull a new version; pin a version if you want to review updates.
  • It reads web pages, and a page can carry prompt-injection instructions. Keep approval prompts on and use a browser profile without your personal sign-ins.
  • Playwright (ExecuteAutomation)community · ★ 5.7k

    Playwright browser and API testing with screenshots and code generation.

  • Browser Useofficial · ★ 119k

    An agent that drives a real Chrome to finish tasks: fill forms, click through flows, extract data.

  • Chrome DevToolsofficial · ★ 54k

    Control a live Chrome: performance traces, network requests, console and screenshots for debugging.

  • Skyvernofficial · ★ 23k

    AI browser automation in Skyvern's cloud: navigate, fill forms and pull data from any site.

  • Apifyofficial · ★ 13k

    Run any of thousands of Apify scrapers (Actors) for social media, maps, e-commerce and more.

  • Firecrawlofficial · ★ 7.7k

    Scrape, crawl, map and search websites into clean Markdown or JSON.

  • Bright Dataofficial · ★ 2.7k

    Web search and scraping that gets past blocks and CAPTCHAs, with a free monthly quota.

  • Hyperbrowserofficial · ★ 791

    Scrape, crawl and extract with cloud browsers, plus browser-use and Claude computer-use agents.

FAQ

What does the Playwright MCP Server do?+

Browser automation through the accessibility tree: click, type, navigate and snapshot pages, no screenshots needed. Its tools include browser_navigate, browser_snapshot, browser_click, browser_type and browser_fill_form.

Is the Playwright MCP server official?+

Official: built and maintained by Microsoft.

How do I add Playwright to Claude Code?+

Run: claude mcp add playwright -- npx -y @playwright/mcp@latest. Add --scope project to share it with your team through .mcp.json.

How do I use the Playwright MCP server in Cursor or VS Code?+

Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("stdio").

Does Playwright work in ChatGPT and claude.ai?+

No: it runs locally over stdio, and ChatGPT and claude.ai only connect to remote servers. Use it in Claude Desktop, Claude Code, Cursor, VS Code or another client that can start a local process.

What are the alternatives to the Playwright MCP server?+

Other browser & web scraping MCP servers: Playwright (ExecuteAutomation), Browser Use, Chrome DevTools, Skyvern and Apify.

All MCP servers · What is an MCP server? · Agent skills