Skip to main content
Glama
UI System Selector MCP

UI System Selector MCP

by MossaJehad

UI System Selector MCP

License: MIT MCP TypeScript

Empower AI coding agents to discover, compare, select, and strictly adhere to world-class design systems and component libraries β€” instead of constantly defaulting to shadcn/ui, MUI, or Bootstrap.


πŸ“Œ The Problem

When developers ask AI coding agents (Claude, Cursor, Copilot, ChatGPT, Gemini, etc.) to build web interfaces, the agents almost universally default to the same few mainstream choices:

  • shadcn/ui

  • Material UI (MUI)

  • Tailwind UI / Raw Tailwind divs

  • Bootstrap

Meanwhile, the software industry has produced dozens of extraordinary, company-backed, battle-tested design systems engineered for specific application domains:

  • GitHub Primer β€” Optimized for developer tools, code review, diffs, and GitHub workflows.

  • AWS Cloudscape β€” Purpose-built for complex cloud management, DevOps consoles, and high-density resource tables.

  • IBM Carbon β€” Engineered for enterprise data analytics, multi-framework apps, and accessibility.

  • Shopify Polaris β€” The gold standard for merchant administration, e-commerce back-offices, and billing.

  • Adobe React Spectrum β€” Built for creative canvas tools and AAA accessibility compliance.

  • Elastic UI (EUI) β€” Specialized in log search, observability, Kibana-like dashboards, and telemetry.

  • Twilio Paste β€” Built with radical focus on accessible customer communication portals.

  • Grommet β€” Accessible, responsive enterprise interfaces with strong layout primitives.

  • Mantine, HeroUI, Ark UI, Park UI, Ariakit, Kobalte, Web Awesome, and many more.

UI System Selector MCP exposes this rich universe of design systems to AI coding agents via the Model Context Protocol (MCP).

Once a user or agent selects a design system (e.g. "Use GitHub Primer for this project"), the MCP server locks in that selection and instructs the AI coding agent to strictly follow that system's components, tokens, icons, and layout conventions β€” and NEVER silently substitute shadcn/ui or MUI.


Related MCP server: io.tseha/tseha

πŸš€ Key Features

  • πŸ›οΈ 40+ Curated Design Systems: Company design systems (GitHub, AWS, IBM, Shopify, Adobe, Elastic, Twilio, Pinterest, Uber, Microsoft, Atlassian, Red Hat, Salesforce, GitLab, ING, plus Nordhealth as a clearly marked restricted-use reference), modern component systems (Mantine, HeroUI, Radix Themes, Chakra UI, Ark UI, Park UI, Ariakit, React Aria Components, Kobalte, Base UI, Blueprint, Semi Design, Arco Design, Ant Design), web components (Web Awesome, Spectrum WC, FAST), and retro aesthetic systems (98.css, XP.css, NES.css, PaperCSS, DaisyUI).

  • πŸ”’ Explicit Selection Enforcement: Locks the chosen UI system for the active session or project (.ui-system.json). The AI receives explicit directives prohibiting unauthorized component library substitutions.

  • πŸ”Ž Deterministic Natural-Style Search & Ranking: Multi-factor keyword and tag ranking without external LLM latency or cost.

  • πŸ’Ž Hidden Gem Discovery: Recommendation engine with novelty weighting (--hidden-gems) designed to highlight lesser-known production systems rather than echoing mainstream defaults.

  • βš–οΈ Side-by-Side Comparison: Compare 2 to 8 systems across framework support, styling approach, accessibility tier, component density, and use cases.

  • πŸ“¦ Installation & Component Guidance: Instant access to correct package names, peer dependencies, canonical component imports, and official documentation URLs.

  • πŸ€– AI Skill Package: Includes skills/ui-system-selector/SKILL.md for compatible coding agents.

  • πŸ’» Human CLI: Fast, colorful CLI tool (ui-systems) sharing the same core registry and logic.


🎬 Example Workflow

1. Discovery

Developer: "Show me UI systems that work well for a developer telemetry dashboard. Give me something unusual or lesser known."

Coding Agent: Calls recommend_ui_systems({ projectType: "developer-tool", preferences: ["dense", "dark-mode", "less-common"], noveltyPreference: "prefer-hidden-gems" })

Result:

  1. Elastic UI (EUI) (Elastic) β€” Specialized for log search, data grids, and telemetry.

  2. GitHub Primer (GitHub) β€” High-density developer product design system.

  3. Red Hat PatternFly (Red Hat) β€” OpenShift/Kubernetes administration and topology graphs.

  4. Twilio Paste (Twilio) β€” Accessible, high-trust customer communication workflows.

2. Explicit Selection

Developer: "Let's use Primer for this project."

Coding Agent: Calls select_ui_system({ id: "primer", framework: "react", persist: true })

MCP Server Returns Directive:

================================================================================
CRITICAL AI AGENT DIRECTIVE: UI SYSTEM LOCKED TO "GITHUB PRIMER"
================================================================================
The current project has EXPLICITLY selected "GitHub Primer" (@primer/react).
MANDATORY RULES:
β€’ Implement all user interfaces using official Primer components and primitives.
β€’ DO NOT introduce or suggest alternative UI libraries (shadcn/ui, MUI, Chakra).
β€’ Use @primer/octicons-react for iconography.
β€’ Use ThemeProvider and Box/Stack primitives for layout.
β€’ Ensure WCAG AA compliance with Primer's focus management.
================================================================================

3. Implementation

Developer: "Create the repository settings page with an API key revocation modal."

Coding Agent: Calls get_selected_ui_system() and get_component_guidance({ id: "primer", component: "dialog" }). The agent generates UI using @primer/react (PageLayout, Heading, ActionList, Dialog, Button, Flash) rather than generating shadcn Tailwind code.


πŸ—οΈ Architecture

UI-System-Selector-MCP/
β”œβ”€β”€ bin/
β”‚   β”œβ”€β”€ mcp-server.js              # Executable entry point for MCP stdio server
β”‚   └── ui-systems.js              # Executable entry point for human CLI
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts                   # Public library exports
β”‚   β”œβ”€β”€ cli/                       # Commander CLI implementation
β”‚   β”œβ”€β”€ server/                    # MCP Server (tools, resources, prompts)
β”‚   β”œβ”€β”€ registry/                  # UI Systems registry & search/recommendation engines
β”‚   β”‚   └── systems/               # Modular per-system definitions (40+ systems)
β”‚   β”œβ”€β”€ schemas/                   # Zod validation schemas and TypeScript types
β”‚   β”œβ”€β”€ config/                    # Selection store and persistence (.ui-system.json)
β”‚   └── utils/                     # Formatting, comparison matrix, and stderr logger
β”œβ”€β”€ skills/
β”‚   └── ui-system-selector/        # AI Agent skill documentation
β”‚       └── SKILL.md
β”œβ”€β”€ schemas/
β”‚   └── ui-system-config.json      # JSON Schema for persisted project selection
└── tests/                         # Vitest unit & integration test suite

πŸ“¦ Installation & Setup

Prerequisites

  • Node.js >= 18.0.0

  • npm or pnpm / yarn

Build from Source

git clone https://github.com/MossaJehad/UI-System-Selector-MCP.git
cd UI-System-Selector-MCP
npm install
npm run build

βš™οΈ MCP Client Configuration

Add ui-system-selector-mcp to your favorite MCP client configuration file:

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "ui-system-selector": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/UI-System-Selector-MCP/bin/mcp-server.js"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project or global Cursor settings:

{
  "mcpServers": {
    "ui-system-selector": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/UI-System-Selector-MCP/bin/mcp-server.js"]
    }
  }
}

Antigravity / Gemini CLI

Add to ~/.gemini/antigravity-cli/mcp/ui-system-selector.json or project MCP settings:

{
  "command": "node",
  "args": ["/ABSOLUTE/PATH/TO/UI-System-Selector-MCP/bin/mcp-server.js"]
}

VS Code (Cline / Roo Code / Continue)

{
  "mcpServers": {
    "ui-system-selector": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/UI-System-Selector-MCP/bin/mcp-server.js"]
    }
  }
}

πŸ› οΈ MCP Tools Reference

Tool Name

Description

Key Arguments

list_ui_systems

Filter & list UI design systems in the catalog

framework, category, organization, tags, stylingApproach, darkMode, noveltyLevel, limit

search_ui_systems

Multi-factor structured & keyword search

query, framework, category, noveltyPreference, limit

get_ui_system

Get complete detailed metadata, docs, and AI guidelines for a system ID

id (e.g. "primer", "carbon", "cloudscape")

compare_ui_systems

Compare 2 to 8 systems in a normalized matrix

systems: ["primer", "carbon", "cloudscape"]

select_ui_system

Explicitly select & lock the UI system for the project/session

id, framework, persist, projectPath, strictMode, acknowledgeUsageRestrictions

get_selected_ui_system

Get currently active UI system & mandatory AI rules

projectPath

clear_selected_ui_system

Clear the active selection

removePersisted, projectPath

get_installation

Get package names, install commands, & peer dependencies

id, framework

get_component_guidance

Get canonical component names, import code, & docs

id, component (e.g. "button", "dialog", "table")

recommend_ui_systems

Discover top system recommendations with novelty filters

projectType, framework, preferences, noveltyPreference, limit


πŸ“‘ MCP Resources Reference

  • ui-systems://catalog β€” Full JSON array of all registered UI systems.

  • ui-systems://selected β€” Currently active selection state and agent rules.

  • ui-systems://categories β€” All supported categories with system counts.

  • ui-systems://tags β€” All supported tags with system counts.

  • ui-systems://systems/{id} β€” Full metadata for a specific UI system ID.


πŸ’¬ MCP Prompts Reference

  • build-with-selected-ui-system β€” Injects the active design system's tokens, components, accessibility rules, and anti-substitution directives into the agent prompt.

  • evaluate-ui-system-fit β€” Prompts an AI to analyze project requirements against top candidate design systems.


πŸ’» Human CLI Usage

A command-line tool ui-systems is included for developer convenience:

# List all systems
node bin/ui-systems.js list

# Filter systems
node bin/ui-systems.js list --framework react --category developer-tool

# Search systems
node bin/ui-systems.js search "developer tools"
node bin/ui-systems.js search "unusual retro look" --hidden-gems

# Show details & component guidance
node bin/ui-systems.js show primer
node bin/ui-systems.js show primer --component dialog

# Compare systems side-by-side
node bin/ui-systems.js compare primer carbon cloudscape

# Explicitly lock a UI system for your project
node bin/ui-systems.js select primer --persist

# Check active selection
node bin/ui-systems.js selected

# Get smart recommendations
node bin/ui-systems.js recommend "cloud-console" --hidden-gems

# Clear selection
node bin/ui-systems.js clear --remove-persisted

πŸ“‚ Project Preference Persistence

When persist: true is passed to select_ui_system or --persist is used with the CLI, a lightweight configuration file .ui-system.json is saved in the project root:

{
  "$schema": "https://raw.githubusercontent.com/MossaJehad/UI-System-Selector-MCP/main/schemas/ui-system-config.json",
  "selectedSystem": "primer",
  "framework": "react",
  "selectedAt": "2026-09-02T14:00:00.000Z",
  "strictMode": true
}

This file can be committed to your repository so all team members and AI coding assistants automatically adhere to the same design system. The referenced JSON Schema is included in this repository and in the published npm package, so editors can validate committed configuration files.


βž• Adding a New UI System to the Registry

Adding a new design system is simple and completely modular:

  1. Create a new file in src/registry/systems/<system-id>.ts:

import { UISystem } from '../../schemas/uiSystem.js';

export const mySystem: UISystem = {
  id: 'my-system',
  name: 'My Design System',
  organization: 'Acme Corp',
  description: 'Enterprise design system for high-performance SaaS.',
  category: 'enterprise',
  frameworks: ['react'],
  stylingApproach: 'design-tokens-css',
  packageNames: ['@acme/ui'],
  docsUrl: 'https://design.acme.com',
  repositoryUrl: 'https://github.com/acme/ui',
  license: 'MIT',
  accessibility: {
    wcagLevel: 'AA',
    keyboardNav: true,
    screenReaderTested: true,
    ariaCompliant: true
  },
  darkMode: true,
  rtlSupport: false,
  designTokens: { available: true },
  icons: { available: true },
  maturity: 'production',
  opinionatedLevel: 'highly-opinionated',
  density: 'compact/dense',
  aesthetic: 'Precision engineering aesthetic.',
  noveltyLevel: 'hidden-gem',
  bestFor: ['Enterprise dashboards'],
  avoidFor: ['Casual gaming apps'],
  strengths: ['Great data tables'],
  weaknesses: ['React only'],
  tags: ['enterprise', 'dense', 'dark-mode'],
  aiInstructions: {
    principles: ['Wrap root in <AcmeProvider>.'],
    forbiddenSubstitutions: ['shadcn/ui', '@mui/material'],
    themingGuide: 'Use Acme theme tokens.',
    iconUsage: 'Use @acme/icons.',
    layoutConventions: 'Use Acme Grid and Flex.'
  }
};
  1. Export your system in src/registry/systems/index.ts and add it to ALL_UI_SYSTEMS.

  2. Run npm test to verify that your new system passes strict Zod schema validation!


πŸ§ͺ Testing & Quality

Run the comprehensive Vitest test suite:

# Run unit tests
npm test

# Run typecheck
npm run typecheck

# Run linter
npm run lint

# Run tests with V8 coverage
npm run test:coverage

# Verify the production build
npm run build

# Inspect exactly what would be published to npm
npm pack --dry-run

πŸ—ΊοΈ Roadmap

  • Automatic detection of UI libraries in existing repositories (package.json inspector tool)

  • Live remote community registry updates

  • Figma token sync references

  • Component documentation live search integration

  • Interactive MCP App webview UI for visual browsing


πŸ“„ License

MIT Β© Mousa Hasouneh

Available Tools

10 tools
clear_selected_ui_systemA

Clear the currently active UI system selection and optionally remove the .ui-system.json configuration file.

Inputs: projectPath, removePersisted.

compare_ui_systemsA

Compare 2 to 8 UI systems side-by-side across styling, accessibility, density, opinionated level, strengths, weaknesses, and target domains.

Inputs: systems (required).

get_component_guidanceA

Get guidance on canonical component names, import statements, props conventions, accessibility notes, and official documentation links for a specific UI element (e.g. Button, Dialog, Modal, Table, SearchBar, Lozenge).

Inputs: id (required), component (required).

get_installationA

Get official package names, installation commands, peer dependencies, and setup instructions for a UI system.

Inputs: id (required), framework.

get_selected_ui_systemA

Get the currently selected UI system for the active session/project, along with the mandatory implementation rules and constraints for the AI agent.

Inputs: projectPath.

get_ui_systemA

Get complete detailed metadata, design philosophy, accessibility details, component guidance, and AI rules for a specific UI system ID.

Inputs: id (required).

list_ui_systemsB

List available UI design systems and component libraries with optional metadata filters (framework, category, organization, tags, styling, accessibility, novelty).

Inputs: tags, limit, category, darkMode, +6 more.

recommend_ui_systemsA

Recommend 3-7 suitable UI design systems based on project type, framework, and developer preferences, with discovery options to highlight hidden gems rather than defaulting to mainstream choices.

Inputs: projectType (required), limit, framework, preferences, +1 more.

search_ui_systemsB

Search UI systems using natural language queries, keywords, tags, or concepts (e.g. "developer tool dashboard", "GitHub like design systems", "unusual retro look", "accessible React components", "systems that don't look like shadcn").

Inputs: query (required), limit, category, framework, +1 more.

select_ui_systemA

Select the UI design system to be used by the AI coding agent for this project/session. Strict mode locks the selection and prohibits unrequested library substitutions.

Inputs: id (required), persist, framework, strictMode, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool addresses a distinct interaction typeβ€”retrieval by ID, filtered listing, natural language search, comparison, component guidance, selection state, installation, and recommendation. The only mild overlap is between list, search, and recommend, all returning UI systems, but their query modes differ enough to minimize misselection.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern (get_, list_, search_, compare_, select_, clear_, recommend_). Compound names like get_selected_ui_system remain predictable and readable.

    Tool Count5/5

    10 tools is squarely in the well-scoped range for a UI system selector. Each tool covers a necessary step in discovering, evaluating, selecting, and installing a design system without bloat or redundancy.

    Completeness5/5

    The server covers the full workflow: discovery (list, search, recommend), deep inspection (get, compare, component guidance, installation), and session state management (select, get selected, clear). There are no obvious dead ends or missing operations for the stated purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      13 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A 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.
      48
      586
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to search, inspect, and retrieve real UI components from existing component libraries, with ranked results, score explanations, licence and provenance details, and safe installation plans. It also surfaces similar components and higher-level UI patterns so agents can reuse existing interface code instead of generating it from scratch.
      MIT