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