Skip to content
FramesField
MCP Server Beginner Setup (1 Command) playwright-mcp.json
Verified Nov 26, 2026

Playwright Official Visual QA MCP Server

How to install this MCP Server

Run the 1-line Claude Code command (or paste the clean single-server JSON into Cursor MCP settings) so your coding agent can open real browser tabs, verify UI changes visually, and test interactive tools end to end.

Connect Microsoft's official @playwright/mcp Model Context Protocol server to Claude Code or Cursor so agents inspect live local web previews, Remotion studio canvases, and Astro landing pages via structured accessibility trees—verifying responsive layouts, zero broken images, and clean console logs.

Compatible agent hosts
Claude Code Cursor VS Code MCP
Target tool: Playwright Browser Automation · License: Apache-2.0
  1. STEP 01
    Confirm Node.js 20+ is installed

    Playwright MCP runs directly via npx @playwright/mcp@latest with zero manual server hosting.

  2. STEP 02
    Register the server in Claude Code or Cursor

    Pick your editor tab below and run the 1-line CLI command or paste the clean single-server mcp.json block.

  3. STEP 03
    Verify live previews & responsive breakpoints

    Ask your agent to open http://localhost:4321 (Astro) or http://localhost:3000 (Remotion), check 375px & 1440px, and confirm zero console errors.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (playwright-mcp.json) ↓
Claude Code CLI (Official @playwright/mcp) bash
Registers Microsoft's official Playwright MCP server via CLI. Verify connection inside Claude Code using /mcp.
claude mcp add playwright npx @playwright/mcp@latest

2. Inspect or download the full MCP Server file

This is the exact raw file served at /raw/skills/playwright-visual-qa-mcp-setup.

Playwright Official Visual QA MCP Server playwright-mcp.json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

3. Test it right away (sample prompt & result)

Sample prompt / input
"Use Playwright MCP to open http://localhost:4321/skills, test clicking the Subagents and Prompts filter buttons at 1440px and 375px widths, capture a screenshot of each layout, and report any console errors or horizontal overflow."
What happens when it runs
- Launches Chromium via `@playwright/mcp`, inspects live accessibility tree, clicks filter tabs, and checks `document.documentElement.scrollWidth <= window.innerWidth`.
- Confirms zero JS console errors, zero broken `<img>` elements, and returns crisp desktop + mobile visual QA screenshots.

What you need & known limits

Requirements

  • Node.js 20+ installed locally (node -v)
  • MCP-compatible coding client (Claude Code, Cursor, or VS Code)

Watch out for

  • First launch downloads Playwright browser binaries if not already cached locally
  • Do not point Playwright MCP at untrusted third-party pages requiring sensitive account logins inside autonomous sessions

Frequently Asked Questions

Why is @playwright/mcp faster and more accurate than pure screenshot browser bots?
Microsoft's official Playwright MCP reads the browser's structured accessibility tree (ARIA roles, button labels, DOM states) directly instead of guessing pixel coordinates—while still supporting visual screenshots whenever you want layout verification.
How does Playwright MCP help creative video & design-to-code workflows?
Pair it with Figma MCP (Skill 02) and Remotion (Skill 15) so your coding agent builds a landing section or interactive video preview and immediately verifies mobile responsiveness, font loading, and zero console errors in a real browser.
Use this page in AI tools or notes
raw .md