AI Security Curator · Test your website

What does an AI see on your website that you don't?

Paste a web address. We read the page the way an AI assistant does and show you the hidden text, the instructions aimed at AI, the secret keys, the outside scripts and the missing protections. Then turn what we find into a Playwright test that keeps failing until it is fixed.

Or try:

AI + Playwright

Let an AI drive the browser, then keep it honest

Playwright now works with AI two ways: an MCP server that lets an AI assistant use a real browser, and test agents that plan, write and repair tests. Both read the page's own text, which is why the hidden-text check above comes first.

Video, 50 seconds, with captions and no voice: Playwright drives this page on a made-up shop, exports the check as a test, then shows how Playwright MCP and the test agents fit in.
1

Planner

Explores the app and writes a Markdown test plan.

2

Generator

Turns the plan into Playwright test files.

3

Healer

Runs the suite and repairs tests that fail, replaying the failing steps.

Playwright Test Agents, from the Playwright docs. Set them up with npx playwright init-agents --loop=vscode; the agent definitions are collections of instructions and MCP tools.

1. Give your AI a browser (Playwright MCP)

Playwright MCP is a Model Context Protocol server that lets an AI work with web pages through structured accessibility snapshots, with no vision model needed. The AI reads the snapshot, picks an element reference and passes it to the next tool call.

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

In Claude Code: claude mcp add playwright npx @playwright/mcp@latest

Tools include browser_navigate, browser_snapshot, browser_click, browser_fill_form, browser_console_messages and browser_network_requests.

Our take

2. Scan before you let it read

What the AI works from is the page's own text, so anything a page hides in its text is in front of the model too. Run the X-ray on the page first. If it finds hidden instructions, do not point an agent at it.

Then ask the agent to build the check for you. A prompt to try with the MCP server connected:


        

3. Fence it in

Playwright MCP has options that limit where it goes. Use them on every run, and treat them as a seatbelt, not a wall:

  • --allowed-origins lists trusted origins, separated by semicolons. The README says it is not a security boundary and does not affect redirects.
  • --blocked-origins is checked before the allow list.
  • --allowed-hosts defaults to localhost, loopback addresses and the host the server runs on.
  • File access stays inside the workspace and file:// pages are blocked, unless you pass --allow-unrestricted-file-access. Do not.

The README also lists browser_run_code_unsafe. Keep it out of anything that reads untrusted pages.

Our take

4. The loop that keeps a site safe

  • X-ray the page and read what it found.
  • Export the test above and commit it. It fails while the problem exists.
  • Let the planner and generator extend it: more pages, more checks, from the same plan.
  • When a redesign breaks a selector, the healer repairs the test. Review every repair: a healer must never "fix" a failing safety check by loosening it.

Sources read: Playwright MCP introduction · microsoft/playwright-mcp README · Playwright Test Agents. The cards marked "Our take" are our advice, not Playwright's.