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.
What we found
Make it a test
A Playwright test for this address: it opens the page in a real browser and fails while there is hidden text aimed at AI, an unguarded script from another company or an AI key in the page. Run it in your pipeline and it keeps the page honest.
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.
Planner
Explores the app and writes a Markdown test plan.
Generator
Turns the plan into Playwright test files.
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.
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-originslists trusted origins, separated by semicolons. The README says it is not a security boundary and does not affect redirects.--blocked-originsis checked before the allow list.--allowed-hostsdefaults 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.
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.