CRUX MCP Server
Allows AI agents to find and install UI components from the DaisyUI registry, including fetching raw component code, dependencies, and setup prerequisites.
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.
Eliminating AI design slop through deterministic, multi-registry indexing and zero-friction layout streaming. CRUX MCP(Component Registry eXchange) is an open-source, Model Context Protocol (MCP). It acts as an open federation bridge that sits between your AI agent (Cursor, Windsurf, Claude Code) and a network of premium UI component registries (Shadcn, MagicUI, Aceternity, DaisyUI, KokonutUI). Instead of letting AI tools guess layout mathβwhich frequently outputs predictive gradients and uninspired flex containersβCRUX empowers LLMs to fetch 1:1 accurate component code snippets, package dependencies, and setup prerequisites directly into your workspace.
This Project Under-development and not recommend to be use as of now. State: Technical Documentation and System Designing
ποΈ Architecture
[ Developer Studio ] ββββββ(Cmd+Alt+V Hotkey)ββββββΊ [ VS Code Webview Canvas Window ]
β β²
βΌ (Standard Model Context Protocol Execution) β (Renders 1:1 Live Views)
[ Local CRUX MCP Server ] βββΊ Compiles Background Sandbox ββββββ€
β
ββββΊ [local] βββΊ Uses SQLite File + Local JS Memory Cache (0% Laptop Strain)
ββββΊ [cloud] βββΊ Injects Token Header βββΊ [Distributed Redis + Cloud K8s Router]Related MCP server: Atelier-MCP
β‘ Key Features
Find and Install Component: Instantly queries multi-registry endpoints. Downloads raw .tsx code files and executes missing shell package managers natively.
Sketch UI with AI: Diverts design tasks away from the production repository into an isolated background Vite compilation server (http://localhost:5173) running Hot Module Replacement (HMR). [2]
Anti-Slop Layout Review: Automatically audits your workspace components for inline color bypasses, arbitrary sizing hacks, and unresponsive mobile layout blocks.
Offline-to-Cloud Telemetry Sync: Injects tracker signatures into components to monitor project telemetry. Works offline via a clean SQLite configuration and syncs back to your enterprise cloud gateway seamlessly.
π» Tech Stack Matrix
Local MCP Runtime: @modelcontextprotocol/sdk (TypeScript)
Sandbox Execution Canvas: Vite + React 19
Styling Core: Tailwind CSS v3 + Framer Motion
Central API Routing: Apollo Server + GraphQL-Yoga
Database ORM: Prisma Client (Enforcing Multi-Tenant Data Isolation)
High-Scale Operations: PostgreSQL 16 + Redis Cluster + PgBouncer
π Quickstart Integration Guide
1. Register the Local MCP Server
Inject this block into your favorite AI text editor settings configuration parameters path (e.g., cursor.json, or Claude Desktop Settings):
"mcpServers": {
"crux-mcp-engine": {
"command": "npx",
"args": ["-y", "@crux/mcp-server"],
"env": {
"CRUX_MODE": "local"
}
}
}For cloud environments connecting to a hosted corporate library hub, switch the mode and supply your secure access token:
"env": {
"CRUX_MODE": "cloud",
"CRUX_ORG_API_KEY": "crux_sk_acme_company_secret_token_abc123"
}2. Activate the VS Code Split-Panel Interface
Download the extension from the VS Code Marketplace: Universal UI Canvas Companion.
Open a React codebase workspace file.
Strike Cmd+Alt+V (Mac) or Ctrl+Alt+V (Windows) to snap open the live, hot-reloading background preview viewport.
π₯ DevEx Onboarding & Contributing
CRUX is engineered for zero-friction contributor onboarding. It runs a single-command setup pipeline that configures environment assets, dependencies, and local editor configurations automatically without freezing limited developer hardware.
# 1. Clone the repository framework layout
git clone https://github.com/JustineDevs/CRUX
cd crux
# 2. Run the interactive onboarding script (Auto-configures .env and editor tools)
npm run dev:setup
# 3. Spin up hot-reloading loops across all workspace sub-packages
npm run dev:startπ§ͺ Terminal-Based Mock Testing Suite
Contributors can debug and test tools immediately from the CLI without launching an editor client or spending live LLM API token credits:
Test the Live Sandbox View Generation
npm run test:sketch
Compiles your target structural payload directly to the internal framework canvas address port (http://localhost:5173).
## Test the Diagnostic Layout Auditor
npm run test:review -- -f "src/components/MessyGrid.tsx"Parses the relative layout structure to verify regex anti-pattern rules. Returns a clean terminal report tagging color bypass tokens or arbitrary spacing bugs.
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
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Design systems your AI agent builds with and you reshape, plus standalone React components.
A visual brain for your agents: live, reusable UI fragments and skills to pull into code.
500+ typed UI atoms an agent composes into real rendered interfaces. Free, no API key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to search across 340+ React UI registries, inspect component code and quality scores, compare options, detect a project's stack, and generate or execute safe transactional install plans. It provides read and write safeguards with dry-run planning and rollback.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to inspect frontend projects, search a curated design and motion recipe catalog, prepare and preview structured design plans, apply changes with backups and rollback, capture previews, audit UI accessibility and performance, and monitor activity via a web dashboard.13 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables 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.38 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables coding agents to ground UI work in real product screens by finding concrete references, materials, and design-system details through a catalogue. It also provides bundled workflow resources, command prompts, and local diagnostics so agents can build and verify interfaces.-