Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to install and configure Playwright MCP?

2025-08-28 1.6 K

The following steps are required to install the Playwright MCP:

  1. environmental preparation: Install the latest LTS version of Node.js (e.g. v22), which can be accessed via thenode -vverification version
  2. global installation: Execute commandnpm install -g @playwright/mcpOr use the latest version ofnpx @playwright/mcp@latest
  3. Starting services: Runnpx @playwright/mcp@latestHeaded mode is enabled by default, adding--headlessParameter Enable Headless Mode

For AI tool integration, MCP service information needs to be configured:

  • Create a configuration file to specify the MCP server address
  • In a Linux monitorless environment, you need to first pass theplaywright run-serverStarting the WebSocket Service
  • configurePLAYWRIGHT_WS_ENDPOINTEnvironment variable pointing to the WebSocket address

A full configuration example can be found in the official documentation, last updated until March 2025.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish