Web Quality MCP
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., "@Web Quality MCP Audit http://localhost:3000 for responsive overflow and accessibility in LTR and RTL."
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.
Web Quality MCP
Engineering quality gate for frontend releases — responsive layouts, bidirectional UI, and automated accessibility testing from one local MCP tool.
Setup · Codex · Tool reference · Tests · Report an issue
The report above visualizes a real disposable fixture audit: 8 completed viewport/direction cases, 12 layout findings and 8 accessibility violations from deliberately introduced defects. It is an illustration of JSON output, not a hosted dashboard or the result of auditing a production application. Findings repeat across cases.
At a glance
Check | Coverage |
Responsive design | Four default widths: mobile, tablet, laptop and desktop |
Direction | LTR and RTL, tested with isolated browser contexts |
Layout | Horizontal overflow and likely text clipping |
Accessibility | Automated axe-core rule results |
Output | Structured JSON with per-case and aggregate results |
Related MCP server: ui-assert
What it checks
Responsive viewport matrix: 360, 768, 1024, and 1440 CSS pixels by default.
LTR and RTL directions, in fresh browser contexts for each combination.
Document and element horizontal overflow.
Likely clipped text in fixed-size or hidden-overflow containers.
axe-core automated accessibility findings with rule ID, impact, affected nodes, selectors, and upstream guidance.
Machine-readable JSON and a summary across all attempted viewports.
No crawling, form submission, remote site automation, or security testing.
Installation
Requires Node.js 20+ and a Chromium browser. The Linux build and integration tests were verified for version 0.1.0. Windows setup instructions are provided; Windows test results are not yet verified.
Clone and build:
git clone https://github.com/ahmedsaeed1-eng/web-quality-mcp.git
cd web-quality-mcp
npm ci
npx playwright install chromium
npm run buildPlaywright may require additional OS libraries on Linux. Install those using the official Playwright installation instructions on a machine you maintain.
Connect to Codex
Register the locally built executable with the Codex MCP configuration:
codex mcp add web-quality -- node /absolute/path/to/web-quality-mcp/dist/server.jsAlternatively, add the following to your Codex user configuration:
[mcp_servers.web-quality]
command = "node"
args = ["/absolute/path/to/web-quality-mcp/dist/server.js"]On Windows use the absolute path to your checked-out project's
dist/server.js file with forward slashes or escaped backslashes in TOML.
Restart/reload your MCP client as necessary and start your frontend dev server.
Example prompt:
Run the web-quality local UI audit against http://localhost:3000/ at four viewport widths in RTL and LTR. Explain failures and propose corrections.
Tool reference
audit_local_ui accepts the following arguments:
{
"url": "http://localhost:3000/",
"widths": [360, 768, 1024, 1440],
"directions": ["ltr", "rtl"],
"height": 900
}Only url is required. Custom widths must be integers between 240 and 1920
(up to four); height must be 320–1440. Directions can include one or both
of ltr and rtl. A successful invocation returns a structured JSON report
with schemaVersion, cases, summary, and explanatory notes.
Each case provides its viewport, direction, status, blocked request count,
layout findings, and accessibility violations. Incomplete cases and
accessibility failures are explicitly marked. Rule and selector lists are
capped to help keep agent context manageable.
Actual fixture report
{
"schemaVersion": 1,
"summary": {
"tested": 8,
"failed": 0,
"layoutFindings": 12,
"accessibilityViolations": 8
}
}Intended scope and limitations
Use this with your own development server and disposable test data.
Only literal HTTP(S) loopback addresses localhost, 127.0.0.1, and [::1]
are accepted; URLs with credentials are rejected. The fresh headless browser
allows only same-origin GET/HEAD page requests and blocks redirects,
cross-origin requests, WebSockets, and mutating methods. Network-dependent
fonts, scripts, authentication, and separate-origin APIs may not render as
expected. This is intentionally a narrow UI QA workflow, not a security sandbox.
Forcing the document direction is useful for layout checks, but is not a translation or internationalization completeness test. Element overflow and clipping checks are heuristics and may flag intentional scrolling or truncation. Automated accessibility results are not a full WCAG certification; manual keyboard, assistive-technology, and visual review remain essential.
The tool does not return page text or full DOM HTML. Selectors can contain page-specific identifiers, so review reports before sharing them. No report files are automatically written and no logs or telemetry are sent by the tool. The browser and local page run in your environment.
Development and tests
npm ci
npx playwright install chromium
npm testTests use disposable localhost HTML fixtures and invoke the real MCP tool over
stdio with the official SDK client. They cover bad and clean layouts, both
directions, multiple viewports, a missing image alternative, and blocked
cross-origin/mutating requests. Set WQM_CHROMIUM_EXECUTABLE if you explicitly
need to use a locally installed compatible Chromium executable.
License and credit
Original project code is MIT licensed. This project uses Playwright, axe-core, MCP SDK, and Zod under their respective licenses; see THIRD_PARTY.md. Upstream projects are independent of this repository and do not endorse it.
Available Tools
1 toolaudit_local_uiAudit local web UIARead-onlyIdempotent
Check a developer-owned local page for responsive overflow, clipping, and automated accessibility issues across LTR and RTL. Does not crawl, click, or submit forms.
Inputs: url (required), height, widths, directions.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection or overlap with a sibling tool. Its purpose—auditing a developer-owned local page for overflow, clipping, and accessibility issues—is stated clearly and bounds what it does not do.
The single name audit_local_ui follows a readable verb_noun_resource snake_case convention. With only one tool there is no pattern to verify against, so consistency is satisfied only trivially rather than demonstrated.
One tool is very thin for a server whose stated scope is broad 'Web Quality'. A single constrained audit cannot reasonably represent the full surface implied by the server name and offers no alternate entry points.
Coverage is limited to local page overflow, clipping, and automated a11y checks in LTR/RTL, with no remote URL auditing, crawling, interaction, performance, SEO, or reporting operations. For a quality-audit domain this leaves significant gaps that would force an agent to abandon the server for most tasks.
Maintenance
Related MCP Connectors
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Crawl a website in a real browser and test WCAG 2.2 A/AA: issues by rule, fixes, site score.
1Audit public webpages and supplied markup for HTML, CSS, SEO, JSON-LD, and link issues.
Scan URLs or HTML for WCAG 2.2 violations. 75-rule manifest, weighted score, shareable reports.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables cross-browser mobile-first responsive layout auditing and browser automation, including overflow detection, tap target checks, viewport/media query introspection, and screenshot matrices via MCP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents and CI to verify rendered web UIs against design token usage, layout constraints, and accessibility rules, returning concise pass/fail verdicts with actionable findings.12 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to audit rendered web pages for design and UI defects by measuring geometry, styles, contrast and motion in a local browser and judging them against evidence-tiered rules. Findings come back as short, fixable items expressed in the project's own design tokens, while only sanitized numeric measurements leave the machine.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to run local audits of DOM geometry, CSS cascade, and layout collisions across viewports, returning compact deterministic JSON plus geometry snapshot and baseline-diff tools.316 npmMIT