Back to Browse

Web Quality MCP Server

Developer ToolsLow Risk8.1MCP RegistryLocal
Free

Server data from the Official MCP Registry

Local responsive, RTL/LTR, and accessibility UI quality checks.

About

Local responsive, RTL/LTR, and accessibility UI quality checks.

Security Report

8.1
Low Risk8.1Low Risk

The server is a local-only UI QA tool that accepts only literal loopback HTTP(S) URLs, blocks non-GET/HEAD and cross-origin requests and redirects, and has no hardcoded secrets, shell execution, or data exfiltration paths. The only notable items are low-severity: the Chromium executable path is configurable through an environment variable, and the browser launch and loopback network access are inherent to the stated purpose. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

8 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

process_spawn

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

What You'll Need

Set these up before or after installing:

Optional path to a compatible locally installed Chromium executable.Optional

Environment variable: WQM_CHROMIUM_EXECUTABLE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "ahmedsaeed-web-quality-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ahmedsaeed-web-quality-mcp@0.1.0"
      ],
      "env": {
        "WQM_CHROMIUM_EXECUTABLE": "your-wqm-chromium-executable-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

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

CI on main GitHub stars MIT license Node.js 20+ Model Context Protocol stdio

Engineering-style report from a real local fixture audit

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

CheckCoverage
Responsive designFour default widths: mobile, tablet, laptop and desktop
DirectionLTR and RTL, tested with isolated browser contexts
LayoutHorizontal overflow and likely text clipping
AccessibilityAutomated axe-core rule results
OutputStructured JSON with per-case and aggregate results

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.

Package installation

Once this version is published to npm by the repository maintainer, register the pinned local stdio server directly with Codex:

codex mcp add web-quality -- npx --yes ahmedsaeed-web-quality-mcp@0.1.0

Or install the exact release and use the installed command:

npm install -g ahmedsaeed-web-quality-mcp@0.1.0
codex mcp add web-quality -- web-quality-mcp

The package metadata declares the MCP Registry identity io.github.ahmedsaeed1-eng/web-quality-mcp. The official registry entry is a separate publication step after npm release; local stdio use does not require it.

Install its matching Chromium browser before running an audit:

npx --yes playwright@1.65.1 install chromium

The npm package name is intentionally distinct from an unrelated package named web-quality-mcp. The installed command remains web-quality-mcp, and the tool's loopback-only behavior is unchanged.

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 build

Playwright 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.js

Alternatively, 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. A completed page scan can still have an incomplete axe check; inspect the per-case accessibilityError and aggregate accessibilityIncomplete. Capped results are made explicit through layoutTruncated, accessibilityOmitted, layoutFindingsTruncated (cases) and accessibilityRulesOmitted (rules). Selector lists are also bounded.

Actual fixture report

{
  "schemaVersion": 1,
  "summary": {
    "tested": 8,
    "failed": 0,
    "accessibilityIncomplete": 0,
    "layoutFindingsTruncated": 0,
    "accessibilityRulesOmitted": 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 run typecheck
npm run format:check
npm test

Tests use disposable localhost HTML fixtures and invoke the real MCP tool over stdio with the official SDK client. They cover bad and clean layouts, the default eight viewport/direction cases, a missing image alternative, incomplete accessibility checks, report truncation, and blocked cross-origin/mutating requests. CI runs explicit TypeScript and whitespace quality gates before tests on Node 20 and 22. 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.

Reviews

No reviews yet

Be the first to review this server!