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: - Real-time access to latest shadcn-vue component specifications - Generated code 100% compliant with current version requirements - Based on the LLM.txt file provided by context7 as context, more accurate code generation is achieved - No more repeatedly checking documentation or worrying about version compatibility - Seamless multi-IDE workflow integration
Node.js version 22 or above.
To install shadcn-vue-mcp for all clients automatically via Smithery:

Note: Take vscode as an example: When you select Auto, run the Smithery CLI command in the terminal:
npx -y @smithery/cli@latest install @HelloGGX/shadcn-vue-mcp --client vscode --profile parental-gayal-aplQPT --key xxxxx
You may get an error: Failed to install @HelloGGX/shadcn-vue-mcp
Error: spawnSync code-insiders.cmd EINVAL
Solution: Downgrade the Node version to 18.20.1 and rerun
Manually configure AI application (e.g. Claude Desktop).你可以选择JSON选项,并选择对应的操作系统进行复制:
for Mac/Linux:
{
"mcpServers": {
"shadcn-vue-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@HelloGGX/shadcn-vue-mcp",
"--key",
"your api key",
"--profile",
"parental-gayal-aplQPT"
]
}
}
}
You can also install shadcn-vue-mcp via URL. Step 1. copy the following URL and paste it into the URL field of the Smithery AI application:

Step 2. Open vscode, open copilot and select Agent model
Step 3: Select Add Server

Step 4: choose HTTP

Step 5: paste the URL
Step 6: config like this:
{
"mcp": {
"servers": {
"shadcn-vue-mcp": {
"url": "https://server.smithery.ai/@HelloGGX/shadcn-vue-mcp/mcp?profile=parental-gayal-aplQPT&api_key=xxxxxxx"
},
}
}
}
Config file locations:
~/.cursor/mcp.json~/.Trae/mcp.json~/.cline/mcp_config.json~/.claude/mcp_config.jsonQuery component documentation
Stringshadcn-vue component name. Example: "button component usage documentation"
Read full documentation of a component
Use this tool when mentions /doc.
Stringshadcn-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
StringDescription of component requirements. Example: "/ui create a flight display component"
Enhance and optimize specified component code Refine code, Use this tool when mentions /refine
StringAbsolute path to the file that needs refinement.
StringExtract 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.
$ claude mcp add shadcn-vue-mcp \
-- python -m otcore.mcp_server <graph>