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.
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., "@CRUX MCP ServerFetch the shadcn button component code and dependencies"
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.
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: UIShelf MCP Server
β‘ 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.
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.
- noslopUIOAuthcom.noslopui
Hand-crafted UI components and design systems for agents, so builds don't look like AI slop.
1 Search, read and install agent-ready React components, screens and blocks for AI products.
4118Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides coding agents live access to shadcn-style component registries, enabling them to search, compare, and fetch real component source code for UI composition.564 npm5MIT
- 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.15 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to retrieve React, Svelte, Vue, and React Native component source code, demos, blocks, and metadata for building UIs in AI-powered development workflows.105,131 npmMIT