shadcn MCP Server
Enables discovery, installation, and code generation for shadcn/ui components, including listing available components, retrieving component details and dependencies, generating installation commands, and creating usage examples with proper imports.
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., "@shadcn MCP Servershow me how to use the button component"
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.
shadcn MCP Server
A Model Context Protocol server for shadcn/ui components. Helps AI assistants discover, install, and generate code for shadcn/ui components.
Installation
Option 1: Use with Claude Desktop (Recommended)
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn-mcp-server"]
}
}
}Option 2: Clone and Run Locally
git clone https://github.com/krutikkkkkkkkk/shadcn-mcp-server.git
cd shadcn-mcp-server
npm install
npm run build
npm startOption 3: Use with Any MCP Client
Install globally:
npm install -g shadcn-mcp-serverThen configure your MCP client to connect to shadcn-mcp-server.
Related MCP server: shadcn-ui MCP Server
Features
List and search shadcn/ui components
Get component details and dependencies
Generate installation commands
Create usage examples with proper imports
Available Tools
list_shadcn_components- Browse available componentsget_component_info- Get component detailsgenerate_component_usage- Generate code examplesget_installation_steps- Get installation instructions
Usage
Once installed, you can ask your AI assistant:
"What shadcn components are available for forms?"
"Show me how to use the button component"
"How do I install the card and dialog components?"
"Generate a complete form example with shadcn components"
The server will provide accurate information, installation commands, and code examples.
Example Conversation
You: "I need a modal dialog for my React app"
AI: Let me help you with the shadcn dialog component.
[Uses get_component_info and generate_component_usage tools]
AI: Here's how to install and use the Dialog component:
Installation:
npm install shadcn@latest add dialog
Usage:
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
<Dialog>
<DialogTrigger asChild>
<Button>Open Dialog</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Dialog Title</DialogTitle>
</DialogHeader>
<p>Your dialog content here</p>
</DialogContent>
</Dialog>Supported Components (37 total)
Layout & Navigation: Accordion, Breadcrumb, Card, Carousel, Collapsible, Navigation Menu, Pagination, Separator, Sheet, Tabs
Forms & Input: Button, Checkbox, Form, Input, Label, Radio Group, Select, Slider, Switch, Textarea, Toggle, Toggle Group
Feedback & Overlays: Alert, Alert Dialog, Dialog, HoverCard, Popover, Progress, Toast, Tooltip
Data Display: Avatar, Badge, Calendar, Command, Skeleton, Table
Interaction: Context Menu, Dropdown Menu, Menubar, Scroll Area
For Developers
npm install
npm run devDevelopment
npm run build- Build TypeScriptnpm run dev- Run in development modenpm start- Run built server
Usage
Connect with any MCP client and ask:
"What shadcn components are available?"
"Show me how to use the button component"
"How do I install the card and dialog components?"
This server cannot be deployed
Maintenance
Related MCP Connectors
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Browse and install Crucible's animated React components into shadcn-style projects.
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Search and pull 500+ production-ready React + Tailwind sections and elements
Related MCP Servers
- AlicenseAqualityDmaintenanceHelps AI assistants access shadcn/ui component documentation and examples through a TypeScript-based MCP server that provides reference information for component details, usage examples, and search capabilities.4876 npm60MIT
- AlicenseAqualityDmaintenanceProvides reference information for shadcn/ui components through a Model Context Protocol server that helps AI assistants access component documentation and examples.4876 npmMIT
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.418 npm4-
- AlicenseAqualityDmaintenanceEnables AI assistants to access and manage shadcn/ui v4 components, including source code, demos, blocks, and CLI integration.1245 npmMIT