
fastqa-mcp
io.github.VnKk8/fastqa-mcp
Browser QA for AI agents: whole tests in one call, finds and explains hidden bugs, CI replay.
Documentation
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 · Not Playwright MCP · How it works · Continuous QA · Benchmarks · CI · Reference
New in 1.0.2. File uploads, facts in every result so the agent needs fewer calls, and four new bug detectors: silent failures, double submits, dead clicks and broken images. 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. 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 can be saved and replayed later without a model, including in CI.
- Explore: open a page, see its forms and field rules, and try many steps in one call.
- Find bugs: failed calls, JS errors, silent failures, double submits, dead clicks and broken images are reported without being asked.
- Explain: each finding names the action it most likely came from and the evidence behind it.
- Verify: assert UI state, network responses and accessibility.
- Replay: save flows, run them again without AI, and export Playwright tests.
FastQA does not need its own LLM, cloud service or database. Bring any compatible MCP client and model. The model decides what to test; FastQA carries out the steps, watches what happens and reports it.
Not Playwright MCP, and not the Playwright command line
FastQA uses Playwright inside, so the names are easy to mix up. Here is what each one is, in plain words.
- Playwright is a library from Microsoft that drives a real browser: it opens pages, clicks, types and reads the screen. FastQA uses it the way a car uses an engine. You never install it or call it yourself.
- The Playwright command line (
npx playwright test,npx playwright codegen) runs test files that a person writes and keeps as code. No AI takes part. - Playwright MCP (
@playwright/mcp) is Microsoft's MCP server. It gives an AI agent general browser controls, one action per call. It is made for driving a browser; deciding whether what happened is right is left to the agent. - FastQA MCP is an MCP server made for testing. The agent sends a whole test in one call and gets back the result, the checks, and the possible bugs FastQA noticed on its own, each explained.
| Playwright command line | Playwright MCP | FastQA MCP | |
|---|---|---|---|
| Who drives the browser | Test code a person writes | An AI agent, one action per call | An AI agent, a whole test per call |
| Checks results | Yes, written in the code | The agent looks and judges | Yes: expect_* steps in the same call |
| Finds bugs nobody asked about | No | The agent can ask for network and console logs and judge them itself | Yes: failed calls, JS errors, silent failures, double submits, dead clicks, broken images, each with its evidence |
| Says what each action did | No | The agent takes a new snapshot to see | Yes: the calls it made, messages that came and went, a form the browser blocked, why a step failed |
| Runs again without AI | It is code already | No | Yes: saved flows run in CI with JUnit and HTML reports |
| Calls for the demo login-to-cart test | none (written as code) | 10 | 2 |
Questions people ask:
- Do I have to install Playwright? No. FastQA brings what it needs. It only needs a browser: Google Chrome or Microsoft Edge on your computer is enough, or run
npx playwright install chromiumonce. - Can I use them together? Yes. A test the agent got working can be saved as a flow and exported as a Playwright test file (
flow export), so it can join a test suite you keep with the Playwright command line. - Is FastQA made by Microsoft? No. It is an independent open-source project that uses Playwright, which is also open source.
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 and the UI never looks at the response.
A UI-only assertion passes. FastQA records the failed request and tells the agent without being asked. This is real output from the bundled demo shop:
PASSED 2/2 steps in 323ms
✓ click "Place order" (38ms)
↳ POST /api/orders 201 65ms · POST /api/notifications 500 14ms
✓ 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
F-001 HIGH NET-5XX POST /api/notifications returned 500 — A-2 click "Place order" (inferred) — E-10
→ leads, not confirmed defects: check them with evidence {view:"findings"} before reporting success
The steps still pass: the finding does not change them. It names the action that started the request and says how sure that link is (inferred means timing, not proof of cause). The failed request is evidence to investigate, not proof that the order failed.
To make such a failure fail the test, assert it: add an expect_no_errors or expect_request step, or run in strict mode.
Every interaction is a testing opportunity. Every observation is evidence. Every unexpected behaviour is a potential discovery.
Quick start
Setting up FastQA means telling your AI client which command starts it. You never run FastQA yourself. The client starts it in the background when it needs a browser and stops it when it is done.
Step 1: check what you need
| You need | How to check | If it is missing |
|---|---|---|
| Node.js 20 or newer | Run node --version in a terminal. It should print v20 or higher. | Install it from nodejs.org. |
| A browser FastQA can control | Google Chrome or Microsoft Edge on your computer is enough. | Run npx playwright install chromium once. It downloads a browser that only FastQA uses. |
There is nothing else to install. The first time the client starts FastQA, the package is downloaded automatically.
Step 2: know the one command
Every setup below uses the same command:
npx -y fastqa-mcp@latest
| Part | What it does |
|---|---|
npx | A tool that comes with Node.js. It downloads a package if you do not have it yet, then runs it. |
-y | Answers "yes" to the question npx asks before it installs something. Without it, the client would wait for an answer that nobody can type. |
fastqa-mcp@latest | The FastQA package, in its newest version. @latest makes npx look for a new release each time the client starts FastQA, instead of reusing an older copy it downloaded before. To stay on one version, which is the safer choice for teams and for CI, write that version instead, for example fastqa-mcp@1.0.2. |
To check that the command works on your computer, run npx -y fastqa-mcp@latest --version. It prints a version number and exits.
Claude Code
The short way. Run this once in a terminal, inside your project folder:
claude mcp add fastqa -- npx -y fastqa-mcp@latest
| Part | What it does |
|---|---|
claude mcp add | Tells Claude Code to remember a new MCP server. |
fastqa | The name you give it. You will see this name in lists and in front of the tool names. |
-- | A separator. Everything after it is the command Claude Code runs to start the server. |
npx -y fastqa-mcp@latest | The command from step 2. |
With options. Options go between the name and the --:
claude mcp add fastqa --scope project --env FASTQA_HEADED=true --env FASTQA_TIMEOUT_MS=8000 -- npx -y fastqa-mcp@latest
| Option | What it does |
|---|---|
--scope local | The default when you leave --scope out. Only for you, only in this project folder. Saved in your personal ~/.claude.json. |
--scope project | Saved in a file called .mcp.json in the project folder. Commit that file and your teammates get the same setup. Claude Code asks each person to approve it the first time. |
--scope user | Only for you, in every project on this computer. |
--env NAME=value | Passes one FastQA setting. Repeat it for each setting. -e is the short form. The settings are listed under All settings. |
In the example above, FASTQA_HEADED=true shows the browser window so you can watch, and FASTQA_TIMEOUT_MS=8000 lets each step wait up to 8 seconds.
As a file. --scope project writes .mcp.json for you. You can also create or edit it by hand. This example sets every everyday option to its default value, plus one password placeholder, so you can see them all and change the ones you want:
{
"mcpServers": {
"fastqa": {
"type": "stdio",
"command": "npx",
"args": ["-y", "fastqa-mcp@latest"],
"env": {
"FASTQA_HEADED": "false",
"FASTQA_QUALITY": "observe",
"FASTQA_TIMEOUT_MS": "5000",
"FASTQA_VIEWPORT": "1280x800",
"FASTQA_COOKIES": "keep",
"FASTQA_MAX_LINES": "250",
"FASTQA_DIR": ".fastqa",
"FASTQA_VAR_password": "${FASTQA_VAR_password}"
}
}
}
}
| Line | What it does |
|---|---|
"mcpServers" | The list of MCP servers for this project. |
"fastqa" | The name of this server. You choose it. |
"type": "stdio" | The server is a program on your computer that Claude Code starts and talks to directly. Claude Code writes this line itself; it also works without it. |
"command" and "args" | The command from step 2, split up: the program first, then each of its parts as a separate item. |
"env" | The FastQA settings. You only need the lines you want to change; delete the rest. Every value is written in quotes, also numbers and true or false. |
"${FASTQA_VAR_password}" | Means "take the value from the variable with this name in the terminal that started Claude Code". The real password is never written in the file. Set the variable before you start Claude Code (see Credentials and safe execution), or delete this line if you do not use a password placeholder. |
Check that it works.
claude mcp list # every server and whether it is connected
claude mcp get fastqa # the details of this one
claude mcp remove fastqa # undo the setup
Inside Claude Code, type /mcp to see the same list. A server that comes from .mcp.json shows "Pending approval" until you approve it in a Claude Code session.
The first start downloads the package, which can take a moment. If Claude Code reports that the server did not start in time, start Claude Code once with a longer limit: MCP_TIMEOUT=60000 claude gives it 60 seconds (in PowerShell: $env:MCP_TIMEOUT=60000; claude).
OpenCode
OpenCode reads its setup from a file named opencode.json. Put it in your project folder to use FastQA in that project, or in ~/.config/opencode/opencode.json to use it everywhere. If the file already exists, add the mcp part to it; do not replace the whole file.
This example sets every everyday option to its default value, plus one password placeholder:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"fastqa": {
"type": "local",
"command": ["npx", "-y", "fastqa-mcp@latest"],
"environment": {
"FASTQA_HEADED": "false",
"FASTQA_QUALITY": "observe",
"FASTQA_TIMEOUT_MS": "5000",
"FASTQA_VIEWPORT": "1280x800",
"FASTQA_COOKIES": "keep",
"FASTQA_MAX_LINES": "250",
"FASTQA_DIR": ".fastqa",
"FASTQA_VAR_password": "{env:FASTQA_VAR_password}"
},
"disabled": false,
"timeout": { "startup": 60000 }
}
}
}
}
| Line | What it does |
|---|---|
"$schema" | Lets your editor check the file and suggest keys as you type. Optional. |
"mcp" → "servers" | The list of MCP servers. |
"fastqa" | The name of this server. You choose it. OpenCode puts it in front of every tool name: fastqa_open, fastqa_act and so on. |
"type": "local" | The server is a program on your computer, not an address on the internet. |
"command" | The command from step 2: the program first, then each of its parts as a separate item. |
"environment" | The FastQA settings. You only need the lines you want to change; delete the rest. Every value is written in quotes. |
"{env:FASTQA_VAR_password}" | Means "take the value from the variable with this name in the terminal that started OpenCode". The real password is never written in the file. Delete this line if you do not use a password placeholder. |
"disabled" | true keeps the entry but does not start the server. Handy for switching FastQA off for a while. |
"timeout" → "startup" | How long OpenCode waits for the server to start, in milliseconds. 60000 is one minute, which leaves room for the first download. |
The smallest version that works is just type and command:
{
"$schema": "https://opencode.ai/config.json",
"mcp": { "servers": { "fastqa": { "type": "local", "command": ["npx", "-y", "fastqa-mcp@latest"] } } }
}
Older OpenCode versions put the server directly under "mcp", without "servers", and switch it on and off with "enabled". If your version reports a configuration error with the example above, use this layout:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"fastqa": {
"type": "local",
"command": ["npx", "-y", "fastqa-mcp@latest"],
"enabled": true,
"environment": { "FASTQA_HEADED": "false" }
}
}
}
Both layouts were tested with OpenCode 1.19.
Check that it works. Restart OpenCode after changing the file, then run:
opencode mcp list # shows "fastqa connected" when everything is fine
OpenCode can also write the entry for you: opencode mcp add fastqa --env FASTQA_HEADED=false -- npx -y fastqa-mcp@latest. It prints which file it changed. Check that it is the one you meant: depending on the version and the folder you run it in, that is the project file or your global one.
Other MCP clients
Any client that can start a local MCP server works. Most of them use the same mcpServers block as Claude Code:
{
"mcpServers": {
"fastqa": {
"command": "npx",
"args": ["-y", "fastqa-mcp@latest"],
"env": { "FASTQA_HEADED": "false" }
}
}
}
| Client | Where the block goes | What is different |
|---|---|---|
| Claude Desktop | claude_desktop_config.json. Open it from Settings → Developer → Edit Config. | Nothing. Quit Claude Desktop completely and open it again afterwards. |
| Cursor | .cursor/mcp.json in the project, or ~/.cursor/mcp.json for all projects. | Nothing. |
| VS Code (Copilot) | .vscode/mcp.json in the project. | The top-level key is "servers" instead of "mcpServers", and the entry needs the extra line "type": "stdio". |
These files belong to the clients and their format changes from time to time. If something here does not match what you see, the client's own documentation is right.
All settings
Settings are passed as environment variables: the --env option or the env block in Claude Code, the environment block in OpenCode. All of them are optional.
| Setting | Default | What it does |
|---|---|---|
FASTQA_HEADED | false | true opens a real browser window so you can watch what happens. false runs the browser invisibly, which is faster and what CI needs. |
FASTQA_QUALITY | observe | What FastQA does with problems it notices by itself, such as failed requests and script errors. observe reports them and never fails a step because of them. strict also fails a run when a problem is serious (high by default). discovery works like observe and also keeps a map of the pages and API calls it saw. debug works like observe and may store response bodies if the config file allows it. off hides the QA: line completely. |
FASTQA_TIMEOUT_MS | 5000 | How long a step waits for its button, field or text before it fails, in milliseconds. 5000 is 5 seconds. Raise it for slow sites. |
FASTQA_VIEWPORT | 1280x800 | The size of the browser window, as width x height in pixels. |
FASTQA_COOKIES | keep | What FastQA does with a cookie banner each time it opens a page. accept clicks the button that accepts, reject clicks the button that refuses, keep leaves the banner alone. The agent can still choose differently for a single page. See Cookie banners. |
FASTQA_MAX_LINES | 250 | The most lines of page description FastQA sends back at once. A lower number saves tokens on very large pages; a higher one shows more of the page. |
FASTQA_DIR | .fastqa | The folder where FastQA keeps saved flows, reports, screenshots and its config file. A relative path starts at the folder the client starts FastQA in, which is usually your project folder. |
FASTQA_VAR_<name> | not set | The value for a {{name}} placeholder. With FASTQA_VAR_password set, the agent types {{password}} and FastQA fills in the real value, so the password never appears in the conversation. You can define as many as you need, for example FASTQA_VAR_email. Names that look secret (such as password, token, secret, pin, api_key) are also hidden in everything FastQA returns, as long as the value has at least 6 characters. |
FASTQA_IGNORE_HTTPS_ERRORS | see the right column | true opens sites whose HTTPS certificate is invalid or self-signed, which is common on test servers. false refuses them. If you set nothing, they are opened while there is no .fastqa/config.json and refused once that file exists. |
FASTQA_CAPTURE | not set | Set it to off to make sure FastQA never stores response bodies, whatever the config file says. |
FASTQA_STRUCTURED | false | true also returns each result as machine-readable data. Leave it off unless you know your client needs it: some clients then pass only that data to the model and drop the readable text. |
FASTQA_CHROME | not set | The full path of the browser program to use, when you want one specific Chrome or Chromium. On Windows, write every \ twice inside a JSON file. |
FASTQA_CDP_URL | not set | Connects to a Chrome you started yourself instead of opening a new one, for example to test in a window where you are already logged in. Start Chrome with --remote-debugging-port=9222 and set this to http://127.0.0.1:9222. FastQA does not close that browser when it is done. |
For FASTQA_HEADED, the values 1 and yes also count as true. Rules for what counts as a problem, expected errors and limits live in .fastqa/config.json; see the reference.
If it does not start
- The client does not list FastQA, or says it failed. Run
npx -y fastqa-mcp@latest --versionin a terminal. If that prints a version, the package is fine and the problem is in the client's file: check the file name, the folder and the commas and brackets. - "Could not launch a browser". Run
npx playwright install chromium, or setFASTQA_CHROMEto the path of a browser you have. - Windows. Some clients cannot start
npxdirectly on Windows. If the server does not start, usecmdas the command and put/c,npx,-y,fastqa-mcp@latestin the arguments, for exampleclaude mcp add fastqa -- cmd /c npx -y fastqa-mcp@latest. - You changed a setting and nothing happened. Restart the client. It reads the settings only when it starts the server.
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 using the password placeholder
{{password}}. Add the Blue T-shirt to the cart, place a test order, check the success message and that POST /api/orders returned 201. Check for unexpected browser or server errors. If it passes, save the flow as checkout.
Replace the URL, data and expected results with those of a test environment you are allowed to test. Avoid real purchases and shared production data.
The agent turns this into tool calls. One act call can carry the whole sequence:
{
"steps": [
{ "do": "fill", "target": "Email", "value": "qa.user@example.com" },
{ "do": "fill", "target": "Password", "value": "{{password}}" },
{ "do": "click", "target": "Log in" },
{ "do": "expect_url", "value": "/dashboard" },
{ "do": "expect_text", "value": "Welcome back" },
{ "do": "expect_no_errors" }
]
}
This is tool input, not a shell command. The agent writes it for you.
How it works
flowchart LR
A[AI agent: intent and reasoning] -->|Batched actions and checks| M[FastQA MCP]
M --> B[Playwright browser]
B --> W[Application under test]
B -->|DOM, network, browser errors| M
M -->|Compact state and QA evidence| A
M --> F[Saved flows]
F --> C[CLI / CI replay without AI]
The agent owns the reasoning. FastQA owns the execution. Keeping those apart lets the same engine serve different models and clients.
Eight tools, not dozens
| Tool | Responsibility |
|---|---|
open | Open a page, begin recording, optionally emulate a device or answer the cookie banner |
act | Run up to 50 steps with built-in checks and compact results |
snapshot | Inspect interactive elements or the fuller visible page state |
screenshot | Capture visual evidence when it is useful |
audit | Run an axe-core accessibility scan |
evidence | Retrieve recorded browser errors and failed requests; drill into findings, network and timeline |
flow | Start, save, list, inspect, run or export recorded journeys |
close | Close the browser |
See the reference for parameters, assertions and limits.
Speed by design
Instead of asking a model to decide every obvious click, FastQA runs a sequence of steps locally. Semantic targets avoid extra snapshots, incremental snapshots avoid repeated context, and checks run inside the same batch.
The repository's benchmark runs the same login, cart and currency journey on the bundled demo shop:
| Metric | @playwright/mcp 0.0.86 | FastQA 1.0 |
|---|---|---|
| Tool calls / model turns | 10 | 2 |
| Returned tokens (approx.) | 1,270 | 360 |
| Tool schema tokens (approx.) | 5,300 | 1,920 |
| Browser-side time, one run | 3.1 s | 2.5 s |
| Estimated end-to-end at 3 s per model turn | ~33 s | ~8.5 s |
| Replay of the saved flow | needs the model again | 1.4 s, no model |
These are results for one small fixture on one machine, not universal guarantees. The end-to-end row is an estimate that assumes 3 seconds per model turn; no live model was timed. Reproduce with npm run bench. Real results depend on the site, client, model, hardware and network.
The observation layer added in 1.0 was measured against 0.3.2 on the same fixture with 30 warm runs (npm run perf): the same 2 tool calls, median and p95 browser-side time within 1%, clean responses 3% to 11% larger (one extra line), and tool schemas of about 1,840 tokens instead of 1,420. Method and numbers are in the reference.
Fewer calls, because results say what happened
Every extra call costs the agent a model turn. So each result also carries the facts the agent would otherwise call again for, one short ↳ line each, only when there is something to say:
✓ click "Log in" (31ms)
↳ POST /api/login 200 240ms · → /account
✓ click "Save profile" (12ms)
↳ POST /api/profile 200 35ms · status "Profile saved" came and went
✓ fill "Mobile" "12345678901" (9ms)
↳ field holds "1234567890" (maxlength 10)
✗ click "Log in" — No visible element matches "Log in" (…)
↳ closest: button "Login" e12
Field lines in the snapshot show the rules the browser enforces (maxlength:10 pattern:\d{10}) and, after a submit attempt, its validation message. When a page opens, one line says how many forms and fields it has, or that a bot check is shown instead of the site. Nothing here adds a wait: it is read during the short settle FastQA already does after each action. See Facts for the agent.
What FastQA can test
| Capability | Example |
|---|---|
| UI state | Visible text, page URL and title, field values, control state, element count |
| Network checks | A matching HTTP request returned the expected status |
| Hidden errors | No unexpected page exceptions, console errors or failed network calls |
| Accessibility | Automated WCAG-oriented axe checks (not a complete accessibility audit) |
| Mobile view | A supported emulated device |
| Cookie banners | Accept or reject the banner while the page opens, so the test starts on the real page |
| File uploads | Upload made test files of any type and exact size, or your own files from .fastqa/files |
| Silent failures | A call that failed while the page told the person nothing; one click that submitted twice; a button that does nothing |
| Form rules | Each field's maxlength, pattern, min/max and the browser's validation message, so boundaries are tested without guessing |
| Complex UI | Frames, nested frames and open shadow roots |
| Data-driven runs | Replay a flow with CSV input |
| Reporting | Failure screenshots, HTML and JUnit XML |
Cookie banners
Most sites open with a cookie banner that covers the page. FastQA can answer it, so the test starts on the page itself.
- For one page. The agent adds
cookieswhen it opens the page:open { "url": "https://example.com", "cookies": "reject" }. The value is"accept","reject"or"keep"(leave the banner alone). You can ask for it in normal words: "open example.com and reject the cookies". - For every page. Set
FASTQA_COOKIEStoacceptorrejectin the client settings (see All settings). The agent can still passcookiesfor a single page. - In the middle of a test.
{ "do": "cookies", "value": "accept" }is a step inact, likeclickorfill.
What you get:
- FastQA waits for the banner while the page is still loading things, at most 2.5 seconds. A page that has gone quiet is not waited on, so a page without a banner costs about 0.8 seconds extra. Then it clicks the button, waits for the banner to go away and returns the page without it. The result has a line such as
✓ cookies "reject" — clicked "Reject all". - A page without a banner is not an error. The line says
no cookie banner foundand the test goes on. rejectonly clicks a button that really refuses. If the banner offers nothing but "Accept" and "Settings", or "Reject and subscribe", FastQA leaves it alone and lists the buttons it saw, so the agent can decide what to do next.- The answer is recorded. A saved flow answers the banner again when it is replayed, and an exported Playwright spec contains the same step.
FastQA finds the button by the ids of common consent tools (OneTrust, Cookiebot, Didomi, Usercentrics, Google's consent message and others). For any other banner it reads the words on the buttons, in English, Bulgarian, German, French, Spanish, Italian, Dutch, Portuguese and Polish. Words only count inside a block that looks like a cookie banner, so an ordinary "Accept" button elsewhere on the page is not touched. Banners inside iframes and open shadow DOM are covered.
No detection covers every site. If a banner is missed, click its button with a normal click step. Without cookies and without FASTQA_COOKIES, FastQA does not touch banners at all.
File uploads
Many forms ask for a file: a profile picture, an ID scan, a CSV to import. The upload step chooses files for a file input, as a person does in the file picker. You can ask for it in normal words: "upload a 6 MB photo and check that the form refuses it".
{ "do": "upload", "target": "Select picture", "value": "photo.png" }
- Test files without preparing any. A name is enough:
"photo.png"gives a small valid PNG. Add a size to test limits:"big.jpg:6MB", or"edge.png:5242881"for one byte over 5 MB."empty.pdf:0B"is an empty file. Made files stay valid files of their type at any size (PNG, JPEG, GIF, WebP, PDF, TXT, CSV, JSON, SVG, XML, HTML), so a size test fails on the size and not on a broken file. Other extensions, such as"virus.exe", get filler bytes, for checking that the site refuses them. - Your own files. Put them in
.fastqa/files/and write"files/contract.pdf". Nothing else on your disk can be uploaded: other paths are refused, so a page under test cannot talk the agent into uploading your keys or your.env. - Several files, or none.
"a.png|b.pdf"chooses two files.""clears the selection. - Any upload widget. The target can be the input's label, a styled "Upload" button or a drop zone that opens the file picker. When the page has a single file input, the target can be left out. Hidden inputs work too; the snapshot lists them as
file … [hidden].
The result names each file with its exact size, such as ✓ upload "Select picture" "big.jpg:6MB" — big.jpg (6291456 bytes = 6 MB, made). When a file is not in the input's accept list, the line says so: the site's own check is then what is being tested. The upload is recorded, so a saved flow makes the same files again on replay and an exported Playwright spec has the same step. File contents never appear in results, evidence or saved flows. See the reference for every option.
Continuous QA
While steps run, FastQA watches the browser and applies deterministic rules. Results end with a QA: line. On a clean batch that is one short line. When something was noticed, it lists candidate findings with the action they belong to and the ids of the evidence.
flowchart TD
A[Any MCP agent] <-->|Intent and compact results| M[The same eight tools]
C[CLI replay] --> E[One shared step executor]
M --> E
E --> B[Playwright browser]
B --> O[Observation: network, console, exceptions]
E --> R[Correlation: session, batch, action, request]
O --> R
R --> D[Deterministic rules and policy]
D --> F[Findings and evidence, kept locally]
R --> G[Optional discovery graph]
F --> M
F --> H[HTML, JUnit, JSON bundle, bug draft]
What it does:
- Finds without being asked. Failed first-party calls, transport failures, uncaught exceptions and console errors become candidate findings. Third-party traffic is not flagged.
- Ties findings to actions, honestly. A request belongs to the action that started it, even if the response arrives during a later step or after the batch returned. The link is labelled
direct,inferred,ambiguousorunattributed. - Respects negative tests. Assert the expected error (
expect_request "POST /api/orders" "422") or declare it in a scoped policy, and it is not reported as a finding. - Keeps clean runs cheap. Details stay local. The agent drills in with
evidence {finding:"F-001", details:true},{view:"network"}or{view:"timeline"}only when it needs to. - Four modes over one pipeline.
observe(default) never changes a result.strictfails a run on findings at a configured severity.discoverymaps the routes and endpoints it saw.debugallows scoped payload capture. - Optional deeper checks, all off until configured: HTTP 200 responses that say
success: false, OpenAPI contract mismatches, response-time limits and baselines, and UI state expectations after a response. - Evidence you can hand over. A sanitized session bundle and a candidate bug draft in Markdown, with reproduction steps as executed and the limits stated.
- Privacy first. Metadata only by default. Query values, credentials and recognised secrets are removed from every output. Payload capture is opt-in, allowlisted and bounded.
What it does not do: it does not prove correctness, it does not test what the agent did not exercise, and a finding is a lead to verify, not a confirmed defect. Backend-only traffic and business intent that never reach the browser are not visible to it. See the reference for rules, modes, configuration and limits.
From AI exploration to deterministic CI
flowchart LR
A[Explore with an AI agent] --> B[Execute and verify]
B --> C[Save flow]
C --> D[Replay without LLM]
D --> E[HTML / JUnit]
C --> F[Export Playwright spec]
After your agent saves a flow, run it without a model:
npx fastqa-mcp run checkout
npx fastqa-mcp run '*'
npx fastqa-mcp run login --data=users
The wildcard example uses POSIX quoting; on Windows use the quoting of your shell. The exit code is 0 when every flow passed and 1 when one failed, so it works as a pipeline stage. Use the JUnit XML in Jenkins or any other CI system.
--mode=strict also fails the run on QA findings at or above the configured severity, and --bundle leaves a sanitized session bundle for investigation. Exported Playwright specs contain executable network, error and accessibility assertions.
Where your files go
.fastqa/
flows/ Saved JSON flows
data/ Local CSV datasets
reports/ HTML and JUnit results
artifacts/ Failure screenshots
tests/ Exported Playwright specs
sessions/ Session bundles (opt-in)
Open reports/latest.html for the latest replay report. Protect this directory and do not commit sensitive test data.
Credentials and safe execution
Do not put real passwords in prompts or committed MCP configurations. Use {{password}} placeholders and provide FASTQA_VAR_password from a local or CI secret store before starting the client:
export FASTQA_VAR_password='the-real-password' # Mac / Linux
setx FASTQA_VAR_password "the-real-password" # Windows (then open a new terminal)
FastQA fills the value in at the last moment and masks password fields in its snapshots. This is not a guarantee that arbitrary page content, screenshots or artifacts contain nothing sensitive.
Run only against applications you are allowed to test. Use isolated test accounts, review generated flows and protect artifacts. Do not let an agent repeat purchases or other irreversible operations unattended.
Current limitations
FastQA targets Chromium-based browsers. Closed shadow roots are not reachable, CSS expect_count covers the main frame only, and one page is active at a time. Semantic targets pick the first visible match, so use a ref or a scoped selector for ambiguous controls, or strict locators, which refuse to guess. The accessibility checks do not replace a manual assessment. Prefer explicit state assertions over sleeps. Details are in the reference.
Develop and contribute
git clone https://github.com/VnKk8/FastQA-MCP.git
cd FastQA-MCP
npm ci
npx playwright install chromium
npm test
npm run bench
To use the source build as your MCP server, point your client at node /absolute/path/to/FastQA-MCP/dist/index.js after npm run build. For example:
claude mcp add fastqa -- node /absolute/path/to/FastQA-MCP/dist/index.js
CI runs the tests on Node 20, 22 and 24 and checks that the committed dist/ matches the source. Releases go through the repository's release workflow; do not publish by hand.
Useful links: technical reference · changelog · npm · issues.
Contributions are welcome, especially reproducible bug reports, small fixture-based tests, browser edge cases, privacy improvements and performance measurements. Keep FastQA fast, portable, evidence-driven and independent of any specific model.
MIT. See LICENSE.
fastqa-mcpnpm install fastqa-mcp