mcp-server-playwright MCP Server

This project is an experimental project aimed at manipulating a browser through MCP using Playwright, in order to implement a feature to control the browser through AI.

Local serverstdioMIT

What is the mcp-server-playwright MCP Server?

mcp-server-playwright is an MCP project maintained in the hdcola/mcp-server-playwright repository. The maintainer describes its purpose as “This project is an experimental project aimed at manipulating a browser through MCP using Playwright, in order to implement a feature to control the browser…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using bun. 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 CHROME_PATH, MUSER_DATA_DIR. 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
open-browserurl) : Open a browser with the specified URL(option).
close-pagepageNumber: int) : Close a desiginated page in current browser.
close-browser) : Close the browser.
navigate-to-pageurl) : Navigate to the specified URL.
open-new-pageurl) : Open a page in a new tab.
get-page-content) : Get the readability content of the current page.

How to install the mcp-server-playwright MCP Server

{
  "mcpServers": {
    "mcp-server-playwright": {
      "command": "bun",
      "args": [
        "yourpath/mcp-server-playwright/src/index.ts"
      ],
      "env": {
        "CHROME_PATH": "your_chrome_path",
        "MUSER_DATA_DIR": "your_chrome_user_data_path"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
CHROME_PATHDeclared in the maintainer’s client configuration.Check documentation
MUSER_DATA_DIRDeclared in the maintainer’s client configuration.Check documentation