mcp-playwright-server MCP Server

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server can be used with Claude Desktop and other MCP-compatible clients to perform web…

Local serverstdioMIT

What is the mcp-playwright-server MCP Server?

mcp-playwright-server is an MCP project maintained in the mostafaraafat91/mcp-playwright-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server can be used with Claude Desktop and other MCP-compatible clients…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares PLAYWRIGHT_HEADLESS. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
launch_browserLaunch a new browser instance
new_pageCreate a new page in an existing browser
navigateNavigate to a URL
clickClick on an element
type_textType text into input fields
get_textExtract text content from elements
screenshotTake screenshots of pages
wait_for_selectorWait for elements to appear
close_pageClose a page
close_browserClose a browser and all its pages

How to install the mcp-playwright-server MCP Server

{
  "mcpServers": {
    "playwright": {
      "command": "node",
      "args": [
        "/path/to/your/mcpplaywright/src/index.js"
      ],
      "env": {
        "PLAYWRIGHT_HEADLESS": "true"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PLAYWRIGHT_HEADLESSDeclared in the maintainer’s client configuration.Check documentation