FastQA-MCP
An MCP tool that turns your AI agent into a QA tester
Explore the app. Find the hidden bugs. Replay the tests in CI.

Quick start · Tools · Settings · What it finds · CI · Not Playwright MCP · Reference
New in 1.0.3. Findings explained in plain words with a safe next check · new rules for misleading feedback (FALSE-SUCCESS, FALSE-FAILURE, STUCK-LOADING) · safe targeting with within and no guessing on Delete, Pay or Submit · role checks with expect_permission · form test ideas and visual checks on request · parallel replay with --workers · behaviour baselines. See the changelog.
A QA tester for your AI agent
An AI agent testing a web app usually asks one question: did the page show the right thing? FastQA makes it ask a second: what went wrong behind it?
FastQA is an open-source MCP server built on Playwright. Your agent uses it to explore a web app, run a whole test in one call, and learn about the bugs a passing page hides, each one explained with its evidence. What the agent got working is saved and replayed later without a model, including in CI.
- Explore: open a page, see its forms and field rules, run many steps in one call.
- Find bugs: failed calls, JS errors, silent failures, misleading messages, double submits, dead clicks and broken images are reported without being asked.
- Explain: each finding says what it may mean, which action it most likely came from, and one safe next check.
- Verify: assert UI state, network responses, accessibility and role permissions.
- Replay: save flows, run them again without AI (also in parallel), and export Playwright tests.
FastQA needs no LLM of its own, no cloud service and no database. Bring any MCP client and model: the model decides what to test, FastQA carries out the steps, watches what happens and reports it.
The bugs your screen doesn't show
A test places an order. The page says "Thank you for your order". Behind it, a notification call fails. A UI-only assertion passes; FastQA tells the agent anyway. Real output from the bundled demo shop:
PASSED 2/2 steps in 323ms
✓ click "Place order" (38ms)
↳ POST /api/notifications 500 14ms · POST /api/orders 201 66ms
✓ expect_text "Thank you for your order" (1ms)
--- changes ---
url: http://127.0.0.1:4321/orders?notify=500
+ status "Thank you for your order"
⚠ 1 JS error(s), 1 failed request(s) so far — call evidence for details
QA: 1 new candidate finding (highest HIGH) · 2 requests observed · 1/1 assertion passed
F-001 HIGH NET-5XX POST /api/notifications returned 500 — A-7 click "Place order" (inferred) — E-21
→ leads, not confirmed defects. F-001: the server failed POST /api/notifications; what it should have saved or sent may be missing (not verified); other calls of the same action succeeded (POST /api/orders 201): a partial success. Next: check the resulting state (the record, message or email it should create) without submitting it again
The steps still pass: a finding never changes them unless you run in strict mode. inferred means the link to the click is by timing, not proof. The last line is written by FastQA itself, so the agent does not have to work out what a raw 500 means. To make such a failure fail the test, assert it (expect_no_errors, expect_request) or use strict mode.
Quick start
You need Node.js 20+ and a browser: Chrome or Edge on your computer is enough, otherwise run npx playwright install chromium once. Your MCP client starts FastQA by itself with this command:
npx -y fastqa-mcp@latest
@latest picks up new releases; pin a version (fastqa-mcp@1.0.3) for teams and CI. Check it with npx -y fastqa-mcp@latest --version.
Claude Code
claude mcp add fastqa -- npx -y fastqa-mcp@latest
claude mcp add fastqa --scope project --env FASTQA_HEADED=true -- npx -y fastqa-mcp@latest # shared .mcp.json, visible browser
Or write .mcp.json yourself (every setting is optional; see Settings):
{
"mcpServers": {
"fastqa": {
"type": "stdio",
"command": "npx",
"args": ["-y", "fastqa-mcp@latest"],
"env": {
"FASTQA_HEADED": "false",
"FASTQA_QUALITY": "observe",
"FASTQA_TIMEOUT_MS": "5000",
"FASTQA_COOKIES": "keep",
"FASTQA_VAR_password": "${FASTQA_VAR_password}"
}
}
}
}
"${FASTQA_VAR_password}" takes the value from your shell, so the real password is never in the file. Check with claude mcp list or /mcp. If the first start times out while the package downloads, start once with MCP_TIMEOUT=60000 claude.
OpenCode (opencode.json in the project, or ~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"fastqa": {
"type": "local",
"command": ["npx", "-y", "fastqa-mcp@latest"],
"environment": { "FASTQA_HEADED": "false", "FASTQA_VAR_password": "{env:FASTQA_VAR_password}" },
"timeout": { "startup": 60000 }
}
}
}
}
Older OpenCode versions put the server directly under "mcp" (without "servers") and use "enabled": true. Check with opencode mcp list.
Other clients (Claude Desktop, Cursor, VS Code) use the same block as Claude Code: claude_desktop_config.json, .cursor/mcp.json, or .vscode/mcp.json (there the key is "servers" and the entry needs "type": "stdio").
If it does not start: run the command above in a terminal first. "Could not launch a browser" → npx playwright install chromium or set FASTQA_CHROME. On Windows, some clients need cmd /c npx -y fastqa-mcp@latest. Restart the client after changing a setting.
Your first test. Ask your agent in normal words:
Use FastQA to open https://staging.example.com/login, log in as qa.user@example.com with the password placeholder {{password}}, place a test order, check the success message and that POST /api/orders returned 201, and check for unexpected errors. If it passes, save the flow as checkout.
The agent turns that into one act call. Use a test environment you are allowed to test, never real purchases or shared production data.
The eight tools
| Tool |
What it does |
Main inputs |
open |
Opens a page, returns a compact snapshot (e4 textbox "Email" [required] type:email) and starts recording |
url, fresh (new isolated context), device ("iPhone 13"), cookies (accept / reject / keep) |
act |
Runs up to 50 steps in one call; returns pass/fail per step, what each action did (↳ lines) and the page diff |
steps, snapshot (diff / full / none), strict (no guessing on ambiguous targets), scope (label for expected-error policies) |
snapshot |
The page as compact lines |
mode (interactive / full), root (CSS scope) |
screenshot |
JPEG of the page or an element (passwords masked) |
target, full_page |
audit |
axe-core WCAG 2.1 A/AA check of the page and its frames |
– |
evidence |
Errors and failed requests; drill-down views |
view: summary, findings, network, timeline, discovery, config, forms (boundary test ideas, nothing submitted), visual (overflow, clipped text, covered or overlapping controls, layout shift); finding, action, path, details, report |
flow |
Record and replay without a model |
action: start, save, run, list, show, export; name (* = all), vars, dataset (CSV), mode (strict), workers (1–8), role |
close |
Closes the browser |
– |
A step is { "do": …, "target": …, "value": … }, optionally with timeout (ms), frame (an iframe) and within (a container). A target is a ref (e12), a visible label or text ("Log in"), or a selector (#id, css=…, testid=…).
| Step kinds |
|
| Actions |
goto click dblclick hover fill type press select check uncheck wait cookies upload |
| Assertions |
expect_text expect_no_text expect_url expect_title expect_value expect_visible expect_hidden expect_enabled expect_disabled expect_count expect_request ("POST /api/orders", status "2xx") expect_no_errors expect_accessible expect_permission ("allowed" / "denied") |
{ "steps": [
{ "do": "fill", "target": "Email", "value": "qa.user@example.com" },
{ "do": "fill", "target": "Password", "value": "{{password}}" },
{ "do": "click", "target": "Log in" },
{ "do": "expect_text", "value": "Welcome back" },
{ "do": "click", "target": "Delete", "within": "Invoice 1001" },
{ "do": "expect_request", "target": "DELETE /api/invoices", "value": "2xx" },
{ "do": "expect_no_errors" }
] }
Every parameter and limit is in the reference.
Settings
Environment variables in the client's env / environment block. All optional.