shadcn MCP Server

shadcn MCP Server

Enables AI assistants to discover, install, and generate code examples for shadcn/ui components, providing installation commands and usage examples for 37+ React UI components.

Category
Visit Server

README

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 start

Option 3: Use with Any MCP Client

Install globally:

npm install -g shadcn-mcp-server

Then configure your MCP client to connect to shadcn-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 components
  • get_component_info - Get component details
  • generate_component_usage - Generate code examples
  • get_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 dev

Development

  • npm run build - Build TypeScript
  • npm run dev - Run in development mode
  • npm 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?"

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured