Skip to content
appsgit

Playwright MCP

Playwright MCP is an MCP server that provides browser automation capabilities using Playwright. It has 37,886 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @playwright/mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code.

github.com/microsoft/playwright-mcp (opens in a new tab)

Install Playwright MCP

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "playwright-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

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

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "playwright-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "playwright-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp"
      ]
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Tools (40)

Parsed from the Tools section of the README; check the repository for the current list.

  • browser_click
  • element

    Human-readable element description used to obtain permission to interact with the element

  • target

    Exact target element reference from the page snapshot, or a unique element selector

  • button

    Button to click, defaults to left

  • modifiers

    Modifier keys to press

  • browser_close
  • browser_console_messages
  • level

    Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to "info".

  • filename

    File name to save the console messages to. Relative file names are resolved against the workspace root.

  • browser_drag
  • browser_drop
  • paths

    Absolute paths to files to drop onto the element.

  • data

    Data to drop, as a map of MIME type to string value (e.g. {"text/plain": "hello", "text/uri-list":…

  • browser_emulate_media
  • contrast

    Emulates the prefers-contrast media feature

  • media

    Changes the CSS media type of the page

  • browser_evaluate
  • function

    () => { /* code / } or (element) => { / code */ } when element is provided

  • browser_file_upload
  • browser_fill_form
  • fields

    Fields to fill in

  • browser_find
  • text

    Plain text to search for in the page snapshot (case-insensitive substring match).

  • regex

    Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in…

  • browser_handle_dialog
  • accept

    Whether to accept the dialog.

  • browser_hover
  • browser_navigate
  • browser_navigate_back
  • browser_network_request
  • index

    1-based index of the request, as printed by browsernetworkrequests.

  • part

    Return only this part of the request. Omit to return full details.

  • browser_network_requests
  • static

    Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.

  • filter

    Only return requests whose URL matches this regexp (e.g. "/api/.*user").

  • browser_press_key
  • browser_resize
  • width

    Width of the browser window

  • height

    Height of the browser window

  • browser_run_code_unsafe

About Playwright MCP

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

  • mcp
  • playwright

FAQ

Playwright MCP FAQ

Still curious? Email info@appsgit.com.

What is Playwright MCP?

Playwright MCP is an MCP server that provides browser automation capabilities using Playwright. It has 37,886 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @playwright/mcp. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/microsoft/playwright-mcp.

How do I install the Playwright MCP MCP server?

Add the command npx -y @playwright/mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Playwright MCP free?

The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.

Is Playwright MCP actively maintained?

The most recent commit was on Sep 28, 2026. The latest release is v0.0.83, published Sep 28, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.