@nikala-ui/mcp
v0.9.11
Published
Model Context Protocol (MCP) server for Nikala UI components, hooks, and guidelines
Readme
@nikala-ui/mcp
Model Context Protocol (MCP) Server for Nikala UI components, reactive primitives, and engineering guidelines.
@nikala-ui/mcp connects AI assistants (Cursor, Antigravity, Claude Desktop, Windsurf, GitHub Copilot) directly to the Nikala UI registry. It allows AI models to fetch real-time TSX component source code, reactive SolidJS hooks, and architectural rules without leaving the editor.
Features
- Dynamic Registry Access: Real-time access to all 27 UI components and 40 reactive primitives (
createAudio,createClipboard,createWebSocket, etc.). - Zero Hardcoding: Dynamically resolves metadata, code manifests, and dependencies directly from official Nikala UI registry manifests.
- Dual Transport Support:
- Stdio Transport: Local CLI binary for IDE integration (
npx @nikala-ui/mcp). - SSE Transport: Remote HTTP/SSE server endpoint hosted on
nikala.dev/api/mcp/sse.
- Stdio Transport: Local CLI binary for IDE integration (
- Engineering Rule Resources: Exposes SolidJS fine-grained reactivity rules (
splitProps,children()memoization) and Tailwind CSS v4 design token constraints directly to AI models.
Configuration & Usage
1. Stdio Transport (Cursor / Antigravity / Claude Desktop)
Add @nikala-ui/mcp to your MCP configuration file (e.g. mcp.json or Claude Desktop config):
{
"mcpServers": {
"nikala-ui": {
"command": "npx",
"args": ["-y", "@nikala-ui/mcp"]
}
}
}2. Remote SSE Transport (HTTP)
If your AI assistant supports SSE / Remote MCP endpoints:
- SSE Endpoint URL:
https://nikala.dev/api/mcp/sse - Messages Endpoint URL:
https://nikala.dev/api/mcp/messages
Available MCP Tools
| Tool Name | Description | Arguments |
| :--- | :--- | :--- |
| list_components | List all available Nikala UI components from the official registry | None |
| list_hooks | List all 40 available Nikala UI reactive primitives / hooks | None |
| get_component_code | Fetch full source code TSX manifest for a component | { "name": "button" } |
| get_hook_code | Fetch full source code TS primitive manifest for a hook | { "name": "create-clipboard" } |
| install_component | Directly writes component TSX source files to project workspace (src/components/ui/) | { "name": "button", "workspace_dir"?: "/path/to/project" } |
| install_hook | Directly writes primitive TS file to project workspace (src/hooks/) | { "name": "create-audio", "workspace_dir"?: "/path/to/project" } |
| validate_project | Inspects workspace setup health (nikala.config.json, cn.ts, directory structure) | { "workspace_dir"?: "/path/to/project" } |
| inspect_workspace | Scans workspace to report which Nikala components and hooks are installed | { "workspace_dir"?: "/path/to/project" } |
| search_docs | Search Nikala UI components, hooks, and guidelines (supports multi-word fuzzy search) | { "query": "dialog modal" } |
Pre-built AI Prompts
create_form_page: Instructions for generating a complete SolidJS form with Input, Button, Card, andcreateForm.setup_theme_provider: Instructions for setting up ThemeProvider, ThemeToggle, and Anti-FOUC<ThemeScript />.create_audio_player: Instructions for building a custom media player UI usingProgress,Button,Badge, andcreateAudio.
Available MCP Resources
nikala://rules/solidjs: SolidJS Reactivity Guidelines (splitProps, fine-grained signals,children()memoization).nikala://rules/theming: Tailwind CSS v4 Design Tokens, Anti-FOUC<ThemeScript />, and maximumrounded-lgborder radius rule.
License
MIT © Magradze — Honoring Niko Pirosmani (Nikala).
