---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Playwright Official Visual QA MCP Server"
description: "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."
canonical: "https://framesfield.com/skills/playwright-visual-qa-mcp-setup"
---

# Playwright Official Visual QA MCP Server

> 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.

- **Canonical URL:** https://framesfield.com/skills/playwright-visual-qa-mcp-setup
- **Raw Payload URL:** https://framesfield.com/raw/skills/playwright-visual-qa-mcp-setup
- **Asset Type:** MCP Server
- **Compatible Hosts:** Claude Code, Cursor, VS Code, MCP
- **Target Creative Tool:** Playwright Browser Automation
- **License:** Apache-2.0
- **Last Verified:** 2026-11-26
- **Source Reference:** https://github.com/microsoft/playwright-mcp

## Setup & Install

```bash
claude mcp add playwright npx @playwright/mcp@latest

```

## Copyable Asset (playwright-mcp.json)

```json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}
```

## Example Input

```text
"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."
```

## Expected Output

```text
- 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.
```

## Requirements

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

## Known Limits

- 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

## Implementation Notes

## Complete the design-to-code verification loop

Combine Playwright MCP with [Skill 02: Figma Dev Mode MCP Token & Frame Inspector](/skills/figma-mcp-design-sync) and [Workflow 09: Figma Frame to Responsive Astro/Tailwind Component via MCP](/workflows/figma-design-to-astro-landing-section) so every built UI section is automatically verified in Chromium before merging.
