Skip to main content
Glama
UI Quality Evaluator MCP Server

UI Quality Evaluator MCP Server

by nazaa-arch

Agent-Ready Design System & UI Quality Evaluator

TypeScript/Next.js & Python UI quality evaluator and MCP server enforcing design tokens, WCAG contrast ratios, and anti-AI-slop accessibility audits.

Evaluator kualitas UI & server MCP (TypeScript/Next.js + Python) untuk memastikan penggunaan design tokens, rasio kontras WCAG 2.1, aksesibilitas HTML/TSX, dan pencegahan teks klise AI-slop.

Features / Fitur Utama

  • WCAG 2.1 Contrast Calculator (ui_evaluator/contrast.py):

    • Menghitung relative luminance dan rasio kontras warna hex untuk kepatuhan AA Normal (>= 4.5), AA Large (>= 3.0), dan AAA (>= 7.0).

  • Static TSX/HTML UI Auditor (ui_evaluator/auditor.py):

    • Mendeteksi hardcoded hex color yang melewati design tokens (var(--...)).

    • Mendeteksi tag <img> tanpa atribut alt dan icon-only <button> tanpa aria-label.

    • Mendeteksi lompatan hierarki heading (h1 langsung ke h3/h4).

    • Mendeteksi frasa klise AI-slop generik ("Unlock the power of", "Revolutionize your workflow", "Delve into", dll.).

  • Stdio JSON-RPC 2.0 MCP Server (ui_evaluator/mcp_server.py):

    • Mengekspos tool check_contrast dan audit_ui_code.

  • Next.js 15 Dashboard & API Route (src/):

    • Dashboard kualitas UI dan endpoint POST /api/evaluate.

Related MCP server: UI Keeper

Installation & Usage / Instalasi & Penggunaan

git clone https://github.com/nazaa-arch/agent-ui-quality-evaluator.git
cd agent-ui-quality-evaluator

# Cek rasio kontras WCAG 2.1
python -m ui_evaluator.cli contrast --fg "#0f172a" --bg "#ffffff"

# Audit file TSX/HTML
python -m ui_evaluator.cli audit src/app/page.tsx

# Jalankan MCP stdio server
python -m ui_evaluator.cli serve

Running Tests / Menjalankan Tes

python -m unittest discover -s tests -v

License

MIT License — Copyright (c) 2026 Muhammad Naza Firmansyah

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables automated WCAG 2.2 AA accessibility audits of Figma designs and webpages. Generates detailed markdown reports with severity-grouped violations, specific criterion references, and concrete fix recommendations.
      -
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to inspect a project's design tokens and component catalog, audit React/Tailwind files against seven static UI quality rules, score overall UI health, and apply auto-fixes that are re-audited and reverted on regression. It works both locally over filesystem access and remotely on raw TSX/JSX or CSS snippets passed directly as strings.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      9 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to deterministically audit markup and stylesheets for WCAG contrast failures, accessibility errors and design-token sprawl, and to compute contrast ratios and inventory hardcoded colors, sizes, radii and spacing before shipping UI code. Works across any web stack with Claude Code, Claude Desktop, Codex and Antigravity, and can also run as a CI check that exits non-zero on errors.
      244 npm
      MIT