Playwright (local)
Two Official cards share the name Playwright. This page is the card whose description says it runs locally and drives a local browser. Willow starts Microsoft's open-source server on each person's computer:
npx -y @playwright/mcp@latest
The command is already filled in. This server is Local. Each person connects over STDIO. See Local MCP.
The other Official card is Playwright. That card is Playwright Workspaces, a managed cloud browser. It asks for a workspace region and a workspace ID, and people sign in with Microsoft Entra ID.
Before you start
On every computer that will use the server:
- Node.js 20 or newer, so
npxcan start the server. Willow's local client starts withnpxas well. See Getting started with Playwright MCP. - Google Chrome. The card does not pass
--browser. The server then uses the Chrome channel. When Chrome is missing, it reports that the browser is not installed and tells you to runnpx @playwright/mcp install-browser chrome.
The browser is headed, so a window opens on that computer. Logins stay in a persistent profile on the computer, one profile per client workspace. See User profile.
On Linux, the server runs headless when DISPLAY is unset.
Set up Willow
- Go to MCP Servers → + Add MCP server. Open the Playwright card with the Official badge whose description says it runs locally, and click + Use.
- Leave the command as it is. Local MCP stays on.
- Assign groups and Publish.
To run headless on every computer, open the server's Setup tab, and under MCP configuration add --headless to args, after @playwright/mcp@latest. Microsoft also reads PLAYWRIGHT_MCP_HEADLESS.
To use Firefox, WebKit, or Edge, add --browser and one of firefox, webkit, or msedge to args.
Each person
- Confirm Node.js 20 or newer and Chrome are on that computer.
- On the MCP Servers page, open this server and click Use. Copy the STDIO configuration into the AI client. The client runs the server locally. The first tool call opens a browser on that computer.
Troubleshooting
The browser is not installed
Cause: Chrome is missing on the computer that starts the server. The card leaves --browser unset, so the server uses the Chrome channel.
Solution: Install Google Chrome, or on that computer run npx @playwright/mcp install-browser chrome, then connect again.
The browser window cannot open
Cause: The computer has no display. The server is headed unless --headless is set. On Linux, a missing DISPLAY already selects headless.
Solution: Add --headless to args and publish again.
Two clients on one computer conflict
Cause: A persistent profile can be used by one browser at a time. Microsoft derives that profile from the client's workspace root.
Solution: Add --isolated to args for the extra client, or point it at its own directory with --user-data-dir.