CRUX MCP Server
Federates UI component registries, enabling AI agents to fetch exact component code, dependencies, and setup prerequisites directly into the workspace. Includes sandboxed previews, anti-slop layout auditing, and offline-to-cloud telemetry sync.
README
<p align="center"> <img src="./public/static/image/banner.png" width="1024" alt="banner"> </p>
[!IMPORTANT] 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.
[!WARNING] 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]
⚡ 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。