WebQ
OfficialThis 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.
WebQ
Tools for querying and validating Web Components against Custom Elements Manifest (CEM) files.
Packages
Package | Description |
CLI tool and MCP server for querying and validating CEM files | |
ESLint plugin for validating custom element HTML usage | |
JSON schemas for CEM, custom attributes, patterns, styles, and more |
Related MCP server: Web Validator by DigestSEO
Quick Start
CLI
curl -fsSL https://raw.githubusercontent.com/blueprintui/webq/main/projects/cli/install.sh | bashOr install via NodeJS:
npm install -g @webq/cli# List all custom elements
webq element.list --path ./node_modules
# Get details for a specific element
webq element bp-button --path ./node_modules
# Validate HTML against CEM definitions
webq validate-html '<bp-button variant="primary">Click</bp-button>' --path ./node_modulesSee the CLI README for the full command reference, configuration, and MCP tool documentation.
ESLint Plugin
npm install @webq/eslint --save-dev// eslint.config.js
import htmlParser from '@html-eslint/parser';
import { recommended } from '@webq/eslint';
export default [
{
files: ['**/*.html'],
languageOptions: { parser: htmlParser },
...recommended({ cem: './path/to/custom-elements.json' })
}
];See the ESLint README for manual configuration and the full rule list.
MCP Server
WebQ can run as an MCP server, providing AI assistants with tools for querying element APIs and validating HTML.
Claude Code
webq setup-mcp
webq setup-skillCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"webq": {
"command": "webq",
"args": ["mcp", "--path", "./node_modules"]
}
}
}Validation Rules
Both @webq/cli and @webq/eslint share the same 18 validation rules:
Rule | Severity | Description |
| error | Custom elements must exist in the manifest |
| error | Attributes must be defined in the manifest |
| error | Values must match defined type unions |
| error | Event bindings must match defined events |
| error | Slot values must match defined slots |
| error | Commands must match defined commands |
| error |
|
| error | CSS custom properties must match definitions |
| error | Pattern root elements must have required children |
| error | Sibling trigger/target pairs must have matching bindings |
| warn | Warn on deprecated elements |
| warn | Warn on deprecated attributes |
| warn | Warn on deprecated events |
| warn | Warn on deprecated slots |
| warn | Warn on deprecated commands |
| warn | Warn when boolean attributes have explicit values |
| warn |
|
| warn | Custom attribute values must match definitions |
Schemas
JSON schemas for validating manifest files are available in projects/schemas/:
Schema | Description |
Per-component APIs (attributes, properties, events, slots, CSS) | |
Compositional rules (parent/child, sibling relationships) | |
Global HTML attributes (utility token-list attributes) | |
Global CSS custom properties and cascade layers | |
Design Token Community Group token format | |
VSCode custom data format for HTML | |
VSCode custom data format for CSS |
Development
bun install # Install all dependencies
bun run ci # Build + test all packages
bun run format # Check formatting (prettier)
bun run format:fix # Fix formattingLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Serves your design system and coding standards to coding agents, so they stop guessing.
Direct access to Cypress tests results and accessibility reports in your AI workflow.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides programmatic access to Material Web documentation and components for AI agents, enabling documentation search, template generation, and HTML validation.714 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI coding assistants to validate HTML/CSS markup using W3C APIs, perform technical SEO audits, check broken links, and validate JSON-LD schemas directly in local workspaces.391,330 npm10MIT
- AlicenseAqualityFmaintenanceEnables AI agents to navigate JS/TS/HTML/CSS code through TypeScript, HTML, and CSS language servers, answering hover, definition, references, symbol search, outline, and diagnostics queries. Adds a cross-file index of CSS custom properties and #id/.class selectors that single-file language servers cannot provide.10MIT
- AlicenseAqualityBmaintenanceEnables AI agents to navigate JS/TS, HTML, and CSS code — symbol info, outlines, callers, implementations, definitions, references, hover, and diagnostics — through bundled Node language servers. It also builds a cross-file index answering where CSS custom properties and #id/.class selectors are defined and used across stylesheets, markup, and scripts.1233 npmMIT