AI Automation Playbooks

Browser Automation With Playwright MCP: QA Your Own Site Like an Agent Would

26 November 2026 · Updated 28 November 2026 · 12 min read · by Yang Kai

Use Playwright MCP to QA your own launched site like an agent: a ready prompt and checklist set for links, forms, mobile views, and console errors.

Checklist inside: Playwright MCP QA Prompt and Checklist Set

Contents
  1. The short version
  2. How Playwright MCP actually works
  3. Setup: pinned, isolated, scoped
  4. The server not to install
  5. Why agent QA catches different bugs
  6. The ready-to-paste QA prompt
  7. The QA checklist set
  8. What an agent QA run costs, and where it struggles
  9. Reading the report like an owner
  10. How we researched this
  11. Verdict

The bugs that embarrass a launched site are rarely in the code review. They are the contact form that silently fails on mobile, the footer link that 404s, the console error that appears only after one specific button is clicked. Code review cannot see any of them, because none of them exist in the source — they exist at runtime, in a real browser, on the deployed site.

Playwright MCP — Microsoft’s browser-automation server for the Model Context Protocol, published as @playwright/mcp — gives an AI agent that real browser. The agent opens your site, clicks through it and reports back in plain language. This guide explains how the server works, how to set it up safely, and gives you the exact QA prompt and checklist set to run against a site you own. The selection criteria for browser servers sit in MCP for browsers and clients; the safety audit is the MCP security checklist.

The short version

How Playwright MCP actually works

Most browser tools hand a model screenshots or raw HTML and let it guess. Playwright MCP instead returns an accessibility snapshot: the page as a structured tree of roles, names and text, where each element carries a reference the next action targets. The agent reads the snapshot, then calls tools such as browser_click or browser_type against those references.

That design has three practical consequences. It is deterministic — the agent acts on named elements, not pixel coordinates. It works with ordinary text models, because the input is text. And the snapshot itself becomes evidence: when the agent reports that a button is missing, the snapshot shows what the page actually exposed.

The tools a QA run uses most:

Tool What it does in a QA pass
browser_navigate Opens a URL
browser_snapshot Returns the accessibility tree the agent acts on
browser_click / browser_type Follows links, submits forms, fills fields
browser_take_screenshot Captures an image when a report needs one
browser_console_messages Lists the page’s console output, including errors
browser_network_requests Lists requests the page made — failed loads show up here
browser_resize Changes the viewport, for the mobile pass

A vision mode exists as an opt-in capability for pages the accessibility tree cannot describe. For site QA, snapshot mode is the right default: faster, cheaper in tokens, and easier to audit afterwards.

Setup: pinned, isolated, scoped

Install the server in your agent’s MCP config with a pinned version, following the pinning habit from MCP in production:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp@0.0.85", "--headless", "--isolated"]
    }
  }
}

Three flags do the safety work. —headless runs the browser without a window, which suits scheduled runs. —isolated keeps the browser profile in memory and discards it when the session ends — the default persistent profile stores cookies and logins between runs, which a QA agent does not need. —allowed-origins can restrict which origins the browser may request; the project’s README is candid that origin lists are a scoping aid, not a security boundary, so treat them as one layer, not the whole defence.

No credentials are needed for public pages, and that is the right default. If part of your site needs a login, create a dedicated test account with no payment method and no admin rights, and keep its details in an environment variable or the server’s secrets file — never in the prompt.

The server not to install

Older tutorials and many agent configs still point at @modelcontextprotocol/server-puppeteer, the MCP project’s original Puppeteer reference server. Do not use it. The server was archived in May 2025 and moved to the modelcontextprotocol/servers-archived repository, whose notice states it receives no security updates or bug fixes.

This is not a theoretical risk. In November 2026, Glow Labs published research (named MCPhantom) on agents installing archived reference servers from training data; the Puppeteer server carries a flaw where a prompt injection on a visited page can make it start an arbitrary process instead of a browser, and the maintainers closed the report as out of scope because the package is unmaintained — no fix is coming. Playwright MCP is the maintained replacement, and MCP servers worth installing applies the same maintained-or-not test to the rest of a typical config.

Why agent QA catches different bugs

A traditional test script checks what you predicted could break. An agent exploring with a goal checks what a visitor would actually try — including the odd path you forgot existed. That makes agent QA a complement to unit tests, not a replacement: best at navigation, rendering, forms and “does this page make sense” failures, weakest at precise assertions about business logic. Use each where it is strong.

Scope note: everything here is for testing sites you own or are authorised to test. Point the agent at your own launch, with test data, in an environment you control.

The ready-to-paste QA prompt

Copy this, replace the URL and page list with yours, and hand it to your agent:

You are QA-testing my own website, https://example.com. Work through the checklist below in order, at desktop size first, then repeat steps 1–4 in a mobile viewport (390×844). For every issue, report: the page URL, the step, what you expected, what actually happened, and a screenshot if you can take one. Do not submit any form with real personal data — use the test values provided. Do not attempt to log in, guess passwords, or access any admin area. End with a summary table: checks passed, checks failed, and the top three issues to fix first.

That last paragraph matters. Bounding an agent’s scope in the prompt — your site, test data, no credential guessing — is basic defensive practice, the same instinct as scoping a server token in automation workflow security.

The QA checklist set

Area Check Pass condition
Links Click every nav, footer, and in-article link No 404s, no placeholder # links, external links open correctly
Links Follow the main call-to-action on each page Lands on the intended page, not a redirect chain
Forms Submit the contact form with valid test data Success message shown, no console error
Forms Submit with an invalid email and an empty required field Inline validation appears, nothing is sent
Mobile Load key pages at 390×844 No horizontal scroll, tap targets usable, menu opens and closes
Console Record console errors on every page visited Zero errors, or each one listed with its page
Performance feel Note any page that visibly loads in stages or shifts layout Shifts and slow blocks named per page
Content Check titles, headings, and one image per page No missing images, no lorem ipsum, headings in order
Search / 404 Open a nonsense URL A helpful 404 page with a working link home

Agents are tireless link-clickers, which is exactly what this job needs. The classic failure is an internal link pointing at a slug that was renamed before launch — invisible in the editor, broken in production. Ask the agent to list every internal link target it visited; comparing that list against your sitemap catches orphans and typos in one pass. Cross-link discipline between articles is why pieces like build your first MCP server and their neighbours get checked as a set, not one page at a time.

Forms: test the failure, not just the success

Most builders test that a form can succeed. The expensive bugs live in the failure paths: validation that never appears, a submit button that spins forever, a success state that fires even when the backend rejected the data. The checklist forces both paths, with test values only. If your form sends a real notification, warn whoever receives it that a QA run is happening — or route test submissions to yourself during the run.

Mobile viewport and console errors

Most readers arrive on a phone, while most building happens on a wide monitor — the mobile pass is where the blind spot lives. Pair it with the console pass. An agent that reports “the page looked fine” while browser_console_messages shows a failed script is demonstrating the difference between visual QA and technical QA. You need both columns filled before you call a launch clean.

What an agent QA run costs, and where it struggles

The run is not free, and pretending otherwise sets the wrong expectations. Every action returns a snapshot, and snapshots are text your model pays tokens to read — a long, dense page can make a full-site crawl the expensive way to find a broken link. Three habits keep the cost sane. Scope the run to the pages that matter instead of the whole sitemap. Use the device emulation and viewport options deliberately rather than re-running every page at every size. And where your client supports it, reduce snapshot volume on repeat runs of pages that passed cleanly last time.

Know the blind spots, too. Pages built on canvas or heavy custom widgets expose a thin accessibility tree, so the agent sees less than a visitor does — that is the one case where the vision capability earns its place. Bot protection and CAPTCHAs can block the agent entirely; on your own site, run against staging or allowlist the test traffic rather than fighting your own defences. And an agent can be confidently wrong about visual questions — “the layout looks fine” from a snapshot is a statement about structure, not about pixels. Keep a human glance for the pages where appearance is the product.

Reading the report like an owner

Fix in this order: broken conversion paths first (forms, sign-up, checkout links), then broken navigation, then console errors, then cosmetic issues. Re-run only the failed section after fixing — a full re-run every time trains you to skim. Save each report next to the deploy it tested; three saved reports will show you your recurring failure pattern, which is more valuable than any single run. If renamed slugs keep appearing, the fix moves earlier: internal-link checking belongs in the pre-deploy pass, not the weekly one.

Run the pass at two moments: right after a deploy, and once a week on a schedule. The scheduling pattern in the n8n plus AI agents playbook can trigger the run and deliver the summary, so the check happens even in weeks when you forget. Keep the weekly report to one screen: checks passed, checks failed, the top three fixes. A report that takes ten minutes to read will be read twice and then never again; a one-screen report becomes part of the week’s rhythm, which is the whole point of automating it.

How we researched this

Desk research, November 2026. Tool names, flags and behaviour are taken from the official microsoft/playwright-mcp repository documentation and the npm release page; the archived-server warning is from the modelcontextprotocol/servers-archived repository notice and Glow Labs’ MCPhantom research, published November 2026. The prompt and checklist are this site’s own artefact, written for this guide. No hands-on test results are claimed anywhere in the article.

Verdict

Twenty minutes, two viewports, one honest report: run the prompt above against your homepage and your single most important conversion page first, before you widen it to the rest of the site. A short run you repeat beats a thorough run you abandon. Browser checks pair with the other side of agent testing — if your agent also talks to databases or files, testing MCP servers covers the failure modes a browser pass will never see.

FAQ

What is Playwright MCP, in plain terms? It is a bridge that gives an AI agent a real browser. Instead of reading your HTML and guessing, the agent loads pages, clicks elements, fills forms, and reports what actually happened — closer to a human QA pass than a code review.

Do I need to know how to code to run this QA pass? No. You need the server installed and connected to your agent, which the setup section covers in a few minutes. The QA itself is a pasted prompt plus a checklist, not a test suite you write by hand.

What does agent QA catch that a code review misses? Anything that only exists at runtime: a form that fails silently on submit, a link that 404s only in production, a button hidden behind a cookie banner on mobile, a console error from a third-party script. None of those are visible in source code.

How often should I run a Playwright MCP check? After any deploy that touches navigation, forms, or checkout — and once before any launch you care about. It is cheap enough to run weekly on a content site, which is when silent breakage usually gets found.

Why not use the Puppeteer MCP server instead? The original Puppeteer reference server was archived in May 2025 and receives no security updates; published research in November 2026 documented a prompt-injection flaw in it that will never be patched. Playwright MCP is actively maintained by Microsoft and works from accessibility snapshots rather than screenshots.

Category: AI Automation Playbooks · Tags: #testing #mcp #checklist

Next step: this article is part of Automation guides, which covers the full topic from first setup to advanced use.

Related guides