Shadcn-vue MCP Server is a powerful AI-driven tool that helps developers instantly create beautiful, modern UI components through natural language descriptions. It integrates the shadcn-vue component library and tailwindcss, seamlessly connects with mainstream IDEs, and provides a streamlined UI development workflow.
Developers face multiple challenges when building UI components:
shadcn-vue MCP provides an intelligent UI component development experience:
Example usage:
/ui create a navigation bar component
/refine optimize the navbar's responsiveness and accessibility
advantages:
Node.js version 22 or above.
Go to https://openrouter.ai/models to register an account, obtain OPENROUTER_API_KEY, and view available model lists
Choose installation method
To install bazi-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli@latest install @HelloGGX/shadcn-vue-mcp --client vscode
Supported clients: cursor, windsurf, cline, claude, vscode, vscode-insiders
Manually configure AI application (e.g. Claude Desktop).
{
"mcpServers": {
"shadcn-vue": {
"command": "npx",
"args": ["-y", "@agent/shadcn-vue"],
"env": {
"OPENROUTER_MODEL_ID": "Your selected OpenRouter model id",
"OPENROUTER_API_KEY": "Your OpenRouter API key"
}
}
}
}
Config file locations:
~/.cursor/mcp.json
~/.Trae/mcp.json
~/.cline/mcp_config.json
~/.claude/mcp_config.json
Query component documentation
String
shadcn-vue component name. Example: "button component usage documentation"
Read full documentation of a component
Use this tool when mentions /doc.
String
shadcn-vue component name. Example: "button component full documentation"
Create UI components
Create Web UI with shadcn/ui components and tailwindcss, Use this tool when mentions /ui
String
Description of component requirements. Example: "/ui create a flight display component"
Enhance and optimize specified component code Refine code, Use this tool when mentions /refine
String
Code to be optimized. Example: "/refine optimize this code to have mobile responsive layout"
String
Absolute path to the file that needs refinement.
String
Extract specific UI elements and aspects needing improvement based on user messages, code, and conversation history.
User: /ui create a flight display component
AI: Generated code as follows:
We welcome all contributions! Help us improve @agent/shadcn-vue. Source code is open-sourced on GitHub.
MIT License