design-system-mcp
Reads a React design system and serves it to coding agents: lists components with their props, valid variant values, parts and imports, exposes design tokens with resolved values and usages, and provides a check_ui linter the agent can run on its own UI output to catch hardcoded colors, off-scale spacing/radius, invented components and native elements that should use a design-system component.
Works out of the box in shadcn/ui-style projects (components/ui/*.tsx, app/globals.css) with no configuration, extracting shadcn/ui components, cva variants and their classes, and flagging native elements that should use the corresponding shadcn/ui component.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@design-system-mcprun check_ui on app/settings/danger-zone.tsx and fix all errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
onsystem
Keeps coding agents on your design system: it knows your real components, props, variants and tokens, catches the moment an agent invents one and has it fix it, and the same check gates your PRs. Local, zero config, works alongside @shadcn/lint.
Built for design-system and platform teams with a React design-system package; a shadcn/ui app is the zero-config demo. Formerly @dgesteves/design-system-mcp (what changed).
Website and docs: design-system-mcp-demo.vercel.app, with a playground that checks your own code.
https://github.com/user-attachments/assets/8ca1c640-94c2-4003-b59e-2b0d819c492d
On the website, an agent drafts a settings card, check_ui finds 11 problems with a fix each, and the agent applies them. Then a real Claude Code session with the plugin: Claude looks the components up before writing, and check_ui passes. Last, the benchmark.
The problem
Coding agents write UI from their training data, not from your design system. Ask for a settings card and you get bg-[#ef4444], p-[13px], a native <button>, variant="danger" on a Button that only has destructive, and <Card.Header> where the system exports CardHeader. On the demo draft above, tsc reports 3 of the 11 problems, and review catches the rest when someone has the time. Describing the design system to the agent helps; what holds is checking what it actually wrote, at the edit and at the pull request.
Related MCP server: UI Design MCP Server
What it checks
onsystem reads your components, cva and tv variants, parts and tokens from source with the TypeScript compiler, and checks .tsx and .jsx against them. Every finding has a rule id, a location and the fix.
Rule | Default | Catches |
| error | Components and parts that don't exist ( |
| error | Props a component doesn't take ( |
| error | Values outside a variant ( |
| error | Native elements the design system has a component for ( |
| error | Hex, rgb, hsl, oklch and Tailwind palette colors ( |
| error | Icon-only buttons without an accessible name |
| warn | Arbitrary padding, margin and gap ( |
| warn | Arbitrary radius ( |
How often it is wrong. The corpus job runs check on 10 public repositories pinned by commit (Documenso, Dub, Cal.com, midday and others, the four monorepos also from their root: 21 runs, 4,731 findings) and compares the findings with hand labels. In a random sample of 126 findings, 5 are false positives (4.0%) and 55 are debatable; weighted by each run's and rule's share of all findings, about 1.0% are false positives. Shipped code rarely invents components, props or variants, so those three rules have 1 finding in the corpus and none in the sample; their precision comes from the test suite. The rules reference shows each rule on an example and how to suppress a finding.
Quickstart
Run it from the app's folder or from the monorepo root, with Node.js 20.19 or later. npx onsystem inspect shows what it found, and --explain why; at a monorepo root, every app and design-system package, each file checked by its own project's design system. npx onsystem init writes the config from it and offers a baseline.
Claude Code. The plugin brings the hook, the MCP server and a skill:
/plugin marketplace add dgesteves/onsystem
/plugin install onsystem@dgestevesAfter each Write or Edit of a .tsx or .jsx file, the hook runs onsystem check on it. Errors go back to Claude as a blocking error with the fix, so Claude corrects the file before it moves on; warnings go as a note. It stays quiet in projects without a design system. What it runs and touches.
Cursor or VS Code.
, or commit the config. The agent gets the tools and runs
check_ui on what it writes.
Other agents. npx skills add dgesteves/onsystem adds the skill to any agent with Agent Skills, and there are plugins for Codex, GitHub Copilot CLI, VS Code and Cursor.
Any MCP client. Run npx -y onsystem as a stdio server. There are configs for Claude Desktop, Codex CLI, GitHub Copilot CLI, Windsurf, JetBrains IDEs, Zed, Gemini CLI and Grok Build.
CI. Install it as a dev dependency, accept the findings the codebase already has once, and fail pull requests only on new ones:
npm install --save-dev onsystem
npx onsystem check . --update-baseline # writes onsystem.baseline.json: commit it- run: npx onsystem check . --format github --require-design-systemFindings show up as annotations on the pull request, and --require-design-system fails the job when the design system is no longer found. CI and baselines has the whole workflow. The GitHub Action, uses: dgesteves/onsystem@v0, annotates only the lines a pull request changed: make it a required check on agent pull requests.
ESLint. The same rules for ESLint 9 and 10: add onsystem.configs.recommended from onsystem/eslint to eslint.config.mjs (ESLint plugin, with @shadcn/lint).
Works with @shadcn/lint
@shadcn/lint checks the Tailwind classes written against a component and the theme (restyling, raw colors, arbitrary and unknown classes) as ESLint or Oxlint rules on Tailwind v4. onsystem checks that the components, props and variant values exist, flags native elements and unnamed icon buttons on Tailwind v3 or v4, and in Claude Code catches an invented one right after the edit, so run both.
Does it help?
Claude Code built the same ten components for vercel/ai-chatbot, once as it ships and once with the plugin, and check scored what it wrote:
Model | Clean without | Clean with the plugin | Design-system errors | Cost |
Claude Haiku 4.5 | 6 / 10 | 10 / 10 | 13 → 0 | −11% |
Claude Opus 5 | 8 / 10 | 10 / 10 | 5 → 0 | +7% |
It is small: one repository, Claude models only, 40 runs (one per task, model and condition), scored by the tool itself, and run before the rename. With the plugin, the agent looked components and tokens up before writing, and the hook never had to block. Read it as a direction, not a rate; the method, per-run results and every generated file are in the repository.
Docs
On the website, and as Markdown in docs/:
Quickstart, Claude Code plugin, CI and baselines and Set up your agent, with the config for each client
Contributing, security and the changelog are in the repository.
License
MIT © Diogo Esteves
This server cannot be deployed
Maintenance
Related MCP Connectors
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Serves your design system and coding standards to coding agents, so they stop guessing.
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
- BeamlineOAuthio.beamline
React UI system for coding agents: 190 components and screens your agent installs in your app.
1
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the Lando Labs Design System, enabling AI agents to introspect and generate code for React components, hooks, icons, design tokens, and theme presets via 15 tools.1510 npm1Apache 2.0
- AlicenseAqualityBmaintenanceProvides comprehensive UI design assistance tools for LLMs, generating color palettes, typography, spacing systems, shadows, design tokens, and more via the MCP protocol.28MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to query a workspace's design system before writing UI and validate generated code against the same system afterward, using configurable token and component sources.10 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query a design system's components, tokens, icons, patterns, and usage or accessibility guidelines through standardized MCP tools, with pluggable adapters for different data sources.MIT