QA Pilot
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@QA Pilot Open http://localhost:3000, click Add to cart, then screenshot the page"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
QA Pilot — an MCP server for Playwright testing
Let an AI assistant actually test your app. QA Pilot is a Model Context Protocol (MCP) server that gives AI assistants hands on a real browser: navigate, look at the page, click, type, screenshot, read console errors, run real Playwright tests — and heal selectors that broke in the last release.
AI coding assistants can write tests. They can't run them against your app, see what broke, and fix it — until now.
See it working
The demo below is real: npm run demo drives the server over stdio against the included demo page. It navigates, snapshots, clicks "Show message", heals a renamed button selector, screenshots, and runs a Playwright spec (2 pass, 1 fails on purpose).

=== heal_selector (#checkout-btn — renamed in the last release) ===
{
"found": true,
"suggestions": [
{
"locator": "page.getByRole('button', { name: 'Add to cart' })",
"kind": "role",
"confidence": 0.95,
"reason": "Role + accessible name — the most resilient locator Playwright recommends."
}
]
}
=== run_playwright_test ===
total 3, passed 2, failed 1 in 7516ms
FAILED: demo.spec.js › search box accepts text (intentionally failing)
Error: expect(locator).toBeVisible() failed
at examples/demo.spec.js:28:76Test results — run live, not mocked:
npm test
✔ healSelector finds the renamed checkout button by its text
✔ healSelector suggests role+name for an input with an accessible name
✔ healSelector suggests label for an input with a real <label>
✔ healSelector suggests testid for an element with nothing else to grab
✔ healSelector returns found:false when nothing matches
✔ healSelector handles an empty page gracefully
✔ MCP server: list tools, navigate, snapshot, click, type, heal, run test
ℹ tests 8 · pass 8 · fail 0Related MCP server: OLTestStack
Tools
Tool | What it does |
| Go to a URL in the shared browser session. Returns title, final URL, HTTP status. |
| Accessibility snapshot of the page. Every interactive element gets a |
| Click an element from the last snapshot, by ref. |
| Type into an input from the last snapshot, by ref. |
| PNG screenshot of the current page. |
| Run a JS expression in the page, get JSON back. |
| Console errors, page errors and failed requests seen so far. |
| Fix a broken CSS selector — see below. |
| Run a real Playwright test file, get structured results. |
Plus one prompt, qa-smoke-test, which walks an assistant through smoke-testing a URL step by step.
Selector healing
The signature feature. A selector usually breaks for a boring reason — an id renamed, a class changed. The healer looks at what's actually on the page right now and ranks replacements the way Playwright's own docs recommend:
getByRole > getByLabel > getByText > getByTestId > CSS// heal_selector({ selector: "#checkout-btn" }) on a page where the
// button's id is now #checkout-btn-new:
{
"found": true,
"suggestions": [{
"locator": "page.getByRole('button', { name: 'Add to cart' })",
"kind": "role",
"confidence": 0.95
}]
}Install
npm install
npx playwright install chromium # browsers only; the server itself uses playwright-coreNode 20+ required.
Use it
Claude Desktop — add to your MCP config:
{
"mcpServers": {
"qa-pilot": {
"command": "node",
"args": ["/absolute/path/to/qa-pilot-mcp/src/server.js"]
}
}
}VS Code (Copilot) — add the same server to .vscode/mcp.json.
Try it without any AI client:
npm run demo # full transcript + screenshots/demo.png
npm test # unit tests + a live stdio end-to-end testSet PLAYWRIGHT_CHROMIUM_PATH if your Chromium lives somewhere unusual.
How it works
src/server.js MCP server (stdio transport) + the qa-smoke-test prompt
src/tools.js the nine tools: schemas, descriptions, handlers
src/browser.js one shared Chromium session; aria snapshots with refs
src/healer.js selector scoring + resilient locator suggestions (pure, tested)
src/runner.js runs `playwright test --reporter=json`, parses the report
examples/ demo page + demo spec (2 pass, 1 fails on purpose)
test/ healer unit tests + a live stdio integration test
scripts/demo.mjs the transcript generator used for the screenshot aboveOne browser session is shared across tool calls, so an assistant can navigate, look, click and screenshot as one continuous flow — the way a human tester works. Nothing is logged to stdout (stdio is the protocol channel); diagnostics go to stderr.
Why this exists
Every "AI QA agent" demo ends the same way: the agent writes a test, the test fails on a renamed selector, and a human has to fix it. The missing piece was never the model — it was the tools. QA Pilot is those tools: a browser the agent can drive, a test runner it can invoke, and a healer for the most common failure in UI automation.
License
MIT.
Available Tools
9 toolsbrowser_clickB
Click an element from the last snapshot, by its ref (e.g. "e123").
Inputs: ref (required).
browser_consoleA
Read console errors, page errors and failed requests seen so far in this session. The first thing to check when a page looks broken.
Inputs: no named parameters.
browser_evaluateA
Run a JavaScript expression in the page and get the result as JSON. Useful for reading state the snapshot hides (e.g. document.title, localStorage, window flags).
Inputs: expression (required).
browser_screenshotA
Take a screenshot of the current page as a PNG image. Use it to see layout, visual bugs and anything the snapshot cannot show.
Inputs: no named parameters.
browser_snapshotA
Get an accessibility snapshot of the current page. Every interactive element has a [ref=eN] handle — use those refs with browser_click and browser_type. Take a fresh snapshot after any navigation or click.
Inputs: no named parameters.
browser_typeA
Type text into an input from the last snapshot, by its ref. Clears the field first.
Inputs: ref (required), text (required).
heal_selectorA
Fix a CSS selector that stopped matching. Looks at what is actually on the page right now and suggests up to 3 resilient Playwright locators (role/label/text first, CSS last), ranked with reasons.
Inputs: selector (required).
run_playwright_testA
Run a real Playwright test file and return the structured result: passed/failed/skipped counts, per-test status, and the error message + file:line for every failure.
Inputs: file (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool maps to a distinct action on the shared browser session or test runner: navigation, inspection (snapshot/screenshot/console/evaluate), interaction (click/type), selector repair, and test execution. The only mild overlap is browser_evaluate vs browser_console for reading state, but the descriptions clearly separate arbitrary JS evaluation from console/network error capture.
All names are snake_case and mostly verb_noun (browser_navigate, browser_click, browser_type, heal_selector, run_playwright_test). Seven tools share a clean browser_ prefix, while heal_selector and run_playwright_test sit outside that grouping, and a couple of names (browser_snapshot, browser_screenshot, browser_console) are noun-style rather than verb-first.
Nine tools is well within the sweet spot for a QA automation server. Each tool earns its place: a minimal but complete interaction loop (navigate → snapshot → click/type) plus diagnostics, screenshot, selector healing, and test running.
The core QA loop is covered, including the often-missed selector healing and Playwright test execution. However, common browser actions like key presses (Enter/Escape), hover, select-option, explicit waits, back/forward navigation, and tab management are absent, though most can be worked around via browser_evaluate.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
MCP server for Mint — AI-powered QA that runs your app in a real browser on every PR.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI-powered browser automation, web scraping, and testing using Playwright across Chromium, Firefox, and WebKit. It allows users to perform actions like navigation, clicking, typing, and taking screenshots through natural language interfaces.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to automate browser testing via Chromium, providing tools for navigation, interaction, and inspection.-
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server that enables AI assistants to control a browser through Playwright, supporting tasks like navigation, typing, clicking, and taking screenshots.Apache 2.0

AWARSEofficial
AlicenseAqualityBmaintenanceSelf-healing browser automation MCP server integrating Playwright with LLM-assisted locator repair.61MIT