Run this command in your terminal:
claude mcp add playwright -s user -- npx -y @playwright/mcp@latest
What the flags mean:
playwright – name for the MCP servers user – scope is "user", meaning it's available across all your projects globally- – separator indicating everything after is the command to runnpx -y @playwright/mcp@latest – runs the official Microsoft Playwright MCP serverAlternative scopes:
s local – only available in current directorys project – available across related project directoriesAfter installation, verify it's working: