Skip to main content

Installation

Build and Run Playwright MCP Server locally​

To build/run Playwright MCP Server in your local machine follow the below steps

Step 1 : Clone Repository​

git clone https://github.com/executeautomation/mcp-playwright.git

Step 2: Install Dependencies​

npm install

Step 3: Build Code​

npm run build
npm link

Step 4: Configuring Playwright MCP in Claude Desktop​

Modify your claude-desktop-config.json file as shown below to work with local playwright mcp server

{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"--directory",
"/your-playwright-mcp-server-clone-directory",
"run",
"@executeautomation/playwright-mcp-server"
]
}
}
}
Important

After modifying the claude-desktop-config.json file, you must completely close Claude Desktop and manually terminate any running processes from Task Manager (Windows 10/11).

⚠️ If you skip this step, the configuration changes may not take effect.

Reward​

If your setup is all correct, you should see Playwright MCP Server pointing your local machine source code

Playwright MCP Server