Validator logo

Validator

Checks CSS and markup for design-token drift across colors, radii, spacing, and typography.

Install Validator

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://swatchdog-connector-970396648818.us-central1.run.app/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The validator MCP server checks generated CSS or markup against curated design packs or custom design tokens. It reports off-token colors, radii, spacing, font sizes, and font families, with the closest matching token and value for each violation. Checks run on demand and do not modify, intercept, or store your code. Use it when an AI coding assistant needs a conformance check for a design system.

Use cases

  • Check generated CSS against a curated design pack
  • Validate custom tokens from a Tailwind configuration
  • Find off-token colors and spacing in agent-written markup
  • Review typography and radius drift before merging UI code

Key features

  • On-demand CSS and markup drift checks
  • Curated pack and custom-token modes
  • Nearest-token suggestions for detected violations
  • Support for color, radius, spacing, and type values
  • Transient processing without source or token storage

Tools1

What Validator lets your agent do. Expand a tool for its parameters.

Verified live~339 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/15 checks healthy over the last 111d

What it can do

From the 1 tool this server returned when we ran it.

Handles credentials ¡ 1Read-only tools ¡ 1

Observed 2026-10-16 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Tools exposed1Callable tools this server registers over MCP.

How Validator works

What validator MCP server does

The validator MCP server, provided by Swatchdog, checks CSS or markup for drift from a defined design system. It covers color, radius, spacing, font-size, and font-family values, then reports each violation with the detected value, the relevant design axis, its location, and a suggested token and value.

You can compare code with a curated Swatchdog pack or provide your own token object. Pack mode includes the Studio sandbox and the Workbench, Showcase, and Terminal families. BYO mode is intended for a project’s own design system, such as tokens extracted from CSS variables or a Tailwind configuration.

The validator MCP server is a checker rather than a code transformer. It does not intercept writes or apply fixes; an agent or developer decides whether to make the suggested changes.

How it works

The main check_drift endpoint accepts the code to inspect through content. An optional paletteId selects a pack, while tokens supplies a custom token set. The optional source value can identify the request as coming from a pack, CSS, or Tailwind workflow.

The connector-oriented check_design_drift endpoint accepts required code and reference_tokens parameters. Its response lists violations and suggested replacements. Both endpoints process requests on demand and transiently. The service does not store source code, files, or tokens; it records limited usage metadata such as the source tag, selected pack, and finding count.

Suggestions map values to nearby valid tokens. For example, an off-scale radius can be matched to a radius token, while a color can be compared with theme colors. Current color checks cover hex and standard color formats. HSL-channel representations and complex multi-file token resolution are not currently covered.

Setup and configuration

In Claude, connect through Settings → Connectors by searching for Swatchdog. No URL or key is required for that directory connection.

Other MCP clients can use the connector endpoint at https://swatchdog-connector-970396648818.us-central1.run.app/mcp. This route is BYO-only and can be configured without authentication, though unauthenticated use is rate capped.

The main endpoint is https://swatchdog-mcp-970396648818.us-central1.run.app/mcp. Configure it with bearer authentication, such as the free swt_sandbox_studio key for Studio pack checks. The connector can also be added manually to claude.ai as a custom connector with authentication left empty.

Tools and capabilities

  • check_design_drift: checks supplied code against the required reference_tokens object.
  • check_drift: checks content against a selected pack or custom tokens object.
  • Pack mode: uses a Swatchdog family selected with paletteId.
  • BYO mode: accepts project-specific tokens and is stateless.
  • Drift suggestions: identifies nearby replacements for colors, radii, spacing, font sizes, and font families.

The main endpoint supports a free Studio sandbox key. BYO requests are available on a keyless, shared connector lane with rate limits, or through a paid license with uncapped usage. Premium pack and bundle access requires a paid key. The listed pricing is one-time rather than subscription-based.

Limitations and notes

The validator MCP server reports drift but does not edit files or enforce checks before writes. A coding agent or developer must apply any recommended changes. Free main-endpoint requests for premium packs or BYO checks return a structured upgrade response instead of performing the requested check.

The material names Claude Code, Claude Desktop, Cursor, Google Antigravity, and claude.ai as supported connection contexts. The connector and main endpoint examples use HTTP MCP configuration rather than a locally installed process.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Validator

validator is an MCP server that connects AI coding assistants to Swatchdog’s design-token drift checks. Its main tools, check_drift and check_design_drift, inspect CSS or markup against curated packs or supplied reference tokens, then report off-token colors, radii, spacing, and typography with suggested replacements.

You configure an MCP client with one of Swatchdog’s hosted HTTP endpoints rather than installing a local package. Use the connector URL for keyless BYO checks, or the main URL with a bearer key for pack and BYO checks.

Yes, validator works with Cursor through its HTTP MCP configuration. Add either the connector endpoint or the main endpoint to Cursor’s MCP settings, using the main endpoint’s bearer authorization when required.

Pass your token object with the code being checked. The check_drift tool accepts custom tokens, while check_design_drift requires reference_tokens; the service processes these inputs transiently and does not store the code or tokens.

Validator checks colors, radii, spacing, font sizes, and font families in CSS or markup. Color coverage includes hex and standard color formats, but HSL-channel representations and complex multi-file token resolution are not currently supported.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewValidator AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/validator?style=directory)](https://allmcps.com/mcp/validator)
HTML Embed
<a href="https://allmcps.com/mcp/validator"><img src="https://allmcps.com/api/badge/validator?style=directory" alt="Validator on AllMCPs" /></a>