Install Playwright MCP server for browser automation in Claude Code
Installs Playwright MCP server for browser automation and accessibility testing.
/plugin marketplace add jpoutrin/product-forge/plugin install claude-code-dev@product-forge-marketplace[--scope <scope>] [--headless]Install the Playwright MCP server to enable browser automation capabilities.
The Playwright MCP server provides:
Run this command to install:
claude mcp add playwright -- npx @playwright/mcp@latest
--scope local (default): Available only in current project--scope project: Shared with team via .mcp.json--scope user: Available across all your projects# Install for user (all projects)
claude mcp add playwright --scope user -- npx @playwright/mcp@latest
# Install for project (team shared)
claude mcp add playwright --scope project -- npx @playwright/mcp@latest
For headless operation (no visible browser):
claude mcp add playwright -- npx @playwright/mcp@latest --headless
claude mcp add playwright -- npx @playwright/mcp@latest --browser firefox
claude mcp add playwright -- npx @playwright/mcp@latest --viewport-size 1920x1080
claude mcp add playwright -- npx @playwright/mcp@latest --isolated
After installation:
/mcp to see the playwright serverbrowser_navigate - Go to URLbrowser_click - Click elementsbrowser_type - Type textbrowser_snapshot - Get page accessibility treebrowser_take_screenshot - Capture screenshotbrowser_fill_form - Fill multiple form fieldsWhen the user runs this command:
Determine scope from arguments or ask:
local if not specifiedRun installation:
claude mcp add playwright [--scope <scope>] -- npx @playwright/mcp@latest [options]
Verify success by checking output
Inform user to restart Claude Code to use the new MCP server