openui-engine-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenUI Engine
Design intelligence, a visual editor and real-browser QA for AI coding agents — exposed as an MCP server.
Apache-2.0 · TypeScript · MCP (stdio + Streamable HTTP) · Playwright · by Amit Elgabsi
Cheap coding models are fine at code and poor at design decisions. OpenUI Engine moves those decisions out of the model:
it hands the agent a curated, compatibility-checked component registry, a WCAG-verified design system (DESIGN.md + tokens), a browser editor where a human can comment and tweak, and a Chromium QA gate that proves the page actually looks right — then lets the agent iterate until it does.

What's in the box
Package | What it does |
Art directions (6), token generator + WCAG linting, DESIGN.md / DTCG / CSS exporters, component registry with structured compatibility metadata, composition checker, reference/pattern search, section renderers and page builder | |
Playwright audit: overflow, axe-core, console/network errors, broken assets & anchors, interaction tests, reduced-motion, invisible-content detection, design-token compliance, pixel-scan whitespace analysis, heuristic quality scoring | |
Browser editor: select, comment, live-tweak typography/spacing/colour/radius/shadow/layout, switch component variants, natural-language requests → agent. Token-authenticated sessions | |
The MCP server ( |
MCP tools (13)
Tool | Purpose |
| Short ranked list (fit score + reason + install command) for a slot/style — never the whole registry |
| Metadata, compatibility, licence status; |
| Composition patterns (principles, pitfalls, implementing components) + audited inspiration-source status |
| Chooses an art direction from the brief; writes |
| Surface-first section sequence with reasons |
| Create/update a project and render |
| Change tokens by path and re-render |
| The QA gate (desktop/tablet/mobile) with fix-oriented, id-addressed issues |
| Real screenshots returned as images so a multimodal model can look |
| Evidence-backed scores (measured vs heuristic labelled) |
| Starts the editor, returns a private tokenised URL |
| Comments, requests and pending tweaks as CSS patches; long-poll supported |
| Persist approved tweaks to |
Related MCP server: design-architect-mcp
Quick start
git clone https://github.com/amitamit10/openui-engine && cd openui-engine
pnpm install && pnpm build # Node ≥ 20; set OPENUI_CHROMIUM=/path/to/chrome if Playwright's cache is not present
node packages/mcp-server/dist/call.js list # real MCP round-trip over stdio
node packages/mcp-server/dist/call.js generate_design_system '{"name":"Acme","description":"dark AI platform","outDir":"acme"}'
node packages/mcp-server/dist/call.js compose_page '{"projectDir":"acme","brief":{"name":"Acme","description":"…"}}'
node packages/mcp-server/dist/call.js validate_design '{"target":"acme"}'Register it with your agent → docs/MCP_SETUP.md (Claude Code, Codex, Cursor, generic stdio and remote HTTP).
The loop

Generate → Render → Screenshot → Inspect → Correct → Verify — a successful build is not treated as a visually correct site. The gate has already paid for itself during development: it found invisible content after scroll (smooth-scroll vs IntersectionObserver), three contrast failures in non-default styles, and a WCAG failure for pure-red brand colours that the unit test suite then locked down.
Design intelligence, not keyword search
Art directions (
aurora-dark,clarity-light,editorial-paper,terminal-dev,warm-human,neo-brutal) define type ratio, palette, radii, shadows, motion budget, hero composition, CTA hierarchy, image treatment and section transitions — plus signatures and don'ts.Compatibility: each component declares styles it is native to, motion energy, density, runtimes (Radix vs Base UI, GSAP vs Motion), framework and licence status.
checkCompositionflags framework mixes, duplicate slots, animation-runtime mixes, energy spread and style misfits.Tokens are enforced, not decorative: the verifier computes colour/font/size/spacing/radius compliance of the rendered DOM against
tokens.json.DESIGN.md follows Google's alpha spec and is checked with the official linter in CI.
Visual editor
create_review_session → open the URL → click any element → change type, spacing, colour, radius, shadow, layout → comment → "Ask agent". Everything reaches the agent through get_visual_feedback; Apply persists tweaks as stable [data-openui-id="…"] rules in openui.overrides.json, regenerates the site, and the diff is reviewable in git. Any localhost dev server can be reviewed too (tweaks are then returned as CSS patches).
Security: loopback only by default, 192-bit per-session secret exchanged for an HttpOnly/SameSite=Strict cookie, Host allow-list (DNS-rebinding), Origin + JSON-only mutations (CSRF), CSP, 64 KB body cap, rate limit, SSRF guard on proxy targets, property/value allow-list for persisted CSS, 8 h expiry, secrets never written to disk. See SECURITY.md.
Sources & licences
Component and inspiration sources were audited with real HTTP probes — including the ones that turned out to be blocked, paid or moved — in docs/SOURCES.md. Third-party component source is never vendored; it's fetched from each project's own registry on demand. The author's private skill collection audit is in docs/SKILLS_AUDIT.md. Component inventory: docs/COMPONENTS.md.
Benchmark (read before quoting it)
A controlled experiment was run with a substitute model (claude-haiku-5-5; GPT-6 Luna is unavailable here). Headline findings, in order of importance:
The "engine available" agent made zero MCP calls, so it was effectively a second baseline; a third arm with required engine use was added.
In a blind design review the engine-built page ranked last; measured token discipline (12 vs ~30 colours, 9 vs 14–17 font sizes) and zero sub-12 px text were better. Accessibility/overflow/function were indistinguishable.
No Vercel deployment was possible (no credentials in the session); no live URLs are claimed.
n = 1 per arm. This is not evidence that the engine improves a cheap model's design — see
benchmark/REPORT.mdfor confounds, the three flaws it exposed (all fixed) and the open gap (generic composition). Interactive side-by-side:benchmark/site.
Status & honest limitations
Output target today is static HTML/CSS/JS with original sections (zero runtime deps). React/shadcn/Fluid components are discoverable and installable but not composed into generated pages yet.
analyze_visual_qualitymeasures engineering quality; it cannot judge taste, brand fit or imagery. Always look atcapture_preview.Third-party licences are marked unverified where the upstream repositories were not reachable from the audit sandbox.
The editor persists to OpenUI projects; arbitrary codebases get CSS patches, not source rewrites.
Development
pnpm build && pnpm typecheck && pnpm lint && pnpm test # unit + browser e2e (needs Chromium)
pnpm docs && node scripts/build-site.mjs # regenerate inventories and the docs site (itself built with the engine)Attribution
Created by Amit Elgabsi (@amitamit10). Attribution lives in this README, NOTICE and the docs site footer. Generated client sites contain no backlinks or hidden credits. Diagrams made with stack-diagram (MIT).
This server cannot be deployed
Maintenance
Related MCP Connectors
Screenshot, diff, audit and sitemap-capture any web page — 5 MCP tools for AI agents.
Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.
Deploy AI-generated HTML/CSS/JS to instant public HTTPS URLs from any MCP-compatible agent.
AI agent website builder. Create and publish link-in-bio sites via MCP or REST API.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server implementing a 7-stage agentic frontend workflow—from design audit to PR review—including AI-driven component generation, browser validation, E2E testing, and CI self-healing.48 npm-
- AlicenseNot gradedqualityCmaintenanceMCP server that exposes a design system and UX rulebook as tools, enabling AI to generate UI consistent with your design tokens, components, layout rules, accessibility guidelines, and templates. It also provides a review tool to score UI proposals against the design system.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to build and edit real HTML/CSS designs on a live canvas through 35 MCP tools, letting them inspect screenshots, computed styles and layout, then export production-ready React or Tailwind code. Humans can refine the same layers visually in a macOS editor.6,734 npmMIT
- AlicenseAqualityBmaintenanceA design harness for AI coding agents. Better Design gives an agent design systems, UI and UX principles, icons and UI review: it finds or creates a design system that fits the product and installs its components, explains how sign-up, forms and onboarding should work, and reviews finished screens for readability, accessibility and unclear copy.48538MIT