Playwright MCP Wsl
MCP server by NorthwoodsSentinel Verified · npm:playwright-mcp-wsl
Wraps @playwright/mcp to add GPU-safe Chromium flags on Windows Subsystem for Linux. It is aimed at users running Playwright browser automation on WSL, such as with Claude Code.
Install Playwright MCP Wsl
Built from the published package, never by AI.
claude mcp add playwright-mcp-wsl -- npx -y playwright-mcp-wslRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"playwright-mcp-wsl": {
"args": [
"-y",
"playwright-mcp-wsl"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"playwright-mcp-wsl": {
"args": [
"-y",
"playwright-mcp-wsl"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"playwright-mcp-wsl": {
"args": [
"-y",
"playwright-mcp-wsl"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add playwright-mcp-wsl -- npx -y playwright-mcp-wsl{
"mcpServers": {
"playwright-mcp-wsl": {
"args": [
"-y",
"playwright-mcp-wsl"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add playwright-mcp-wsl npx -y playwright-mcp-wslGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the playwright-mcp-wsl block.
About
playwright-mcp-wsl is a drop-in wrapper for @playwright/mcp. It detects whether it runs on Windows Subsystem for Linux by reading /proc/version. On WSL it adds --disable-gpu, --disable-software-rasterizer and --disable-dev-shm-usage to Chromium launch arguments. Outside WSL it passes through to @playwright/mcp without changes, and all @playwright/mcp CLI flags are supported.
The source says the wrapper prevents Chromium GPU crashes that occur on WSL2 when parallel browser sessions exhaust GPU memory through the dxg bridge. It is intended for users running Claude Code or other Playwright-based browser automation on WSL1 or WSL2. It requires Node.js 18+, Windows 10 or 11, and @playwright/mcp 0.0.60 or later. It is licensed under Apache-2.0.
Written from the project's README and checked against it.
What you need
- Node.js 18 or later
- Windows 10 or Windows 11
- WSL1 or WSL2
- @playwright/mcp version 0.0.60 or later
Try asking
- Open a page in a headless browser on WSL and take a screenshot.
- Run several parallel browser sessions with Playwright on WSL without crashing.
- Navigate to a URL and read the page's DOM content using Playwright.
Good to know
- Adds GPU-disabling flags only when WSL is detected.
- The source says rendering quality, JavaScript execution and network requests are unaffected.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Running Playwright on WSL2
- Parallel browser automation with Claude Code
- Avoiding Chromium GPU crashes on WSL
Alternatives to Playwright MCP Wsl
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
Playwright MCP Wsl: common questions
Does it change Playwright behavior outside WSL?
The source says that on non-WSL systems it passes through to @playwright/mcp with zero modifications.
Which Chromium flags does it add on WSL?
The source lists --disable-gpu, --disable-software-rasterizer and --disable-dev-shm-usage.
What happens if I already have a custom Playwright config?
The source says WSL-safe args are merged into the existing config rather than overwriting it.
How do I install Playwright MCP Wsl?
In Claude Code run claude mcp add playwright-mcp-wsl -- npx -y playwright-mcp-wsl. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Playwright MCP Wsl the official server?
Playwright MCP Wsl is published by npm:playwright-mcp-wsl from its verified domain in the official MCP Registry.
Is Playwright MCP Wsl free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Playwright MCP Wsl safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Playwright MCP Wsl?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does Playwright MCP Wsl work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
