shadcn/ui MCP Server
Official shadcn CLI-integrated server for browsing, searching, and installing UI components from shadcn registries via natural language.
Client Compatibility
What It Does
Gives Claude direct access to the shadcn/ui component registry. Browse available components, search across registries (official, third-party, private, namespaced), and install components into your project — all through natural language. Instead of manually browsing ui.shadcn.com, copying install commands, and configuring components, you tell Claude what you need and the MCP server handles the registry lookup and installation.
This is the official server, built into the shadcn CLI itself. It’s not a community wrapper around the docs — it’s the CLI’s MCP mode.
What It Does Well
- Natural language component installation removes friction. “Add a date picker with range selection” finds the right component, checks your registry configuration, and installs it. No browsing docs, no copy-pasting CLI commands, no figuring out which variant you need. For rapid prototyping, this collapses multiple steps into one conversation turn.
- Multi-registry support covers the expanding ecosystem. The server doesn’t just access the official shadcn/ui registry. It supports third-party registries, private company registries, and namespaced registries. As the shadcn ecosystem grows beyond the core component set, this becomes increasingly valuable.
- Zero configuration for existing shadcn projects. If your project already has shadcn/ui initialized, the MCP server works immediately. No API keys, no tokens, no environment variables. Just
npx -y shadcn@latest mcpand it reads your project’s existing configuration. Setup difficulty doesn’t get lower than this.
What It Doesn’t Do Well
- Project-scoped — useless without an existing project. This server operates on your project’s shadcn configuration. If you’re just exploring components or comparing options before starting a project, it won’t help. You need an initialized project for the server to target. For general component research, the community servers that expose docs and source code are more useful.
- Community servers fill a different need that the official server doesn’t. The official server installs components. The community servers (Jpisnice/shadcn-ui-mcp-server, heilgar/shadcn-ui-mcp-server) give Claude access to component documentation and source code for reference. These are complementary, not competing — but the distinction isn’t obvious, and new users often install the wrong one.
- No affiliate or revenue path. shadcn/ui is fully open source with no paid tiers. For ToolShelf, this listing exists for category coverage and traffic, not revenue. Mentioned for transparency.
Setup Notes
Add to your project’s .mcp.json, .cursor/mcp.json, or .vscode/mcp.json. That’s it. The server reads your project’s existing shadcn configuration to know which registry, framework, and styling setup to use.
Community servers that provide component docs and source access are separate tools. If you want Claude to reference component code without installing (for learning or comparison), look at Jpisnice/shadcn-ui-mcp-server, which supports React, Svelte, Vue, and React Native. Note: community servers that hit GitHub API have rate limits — 60 requests/hour without a GitHub token, 5,000/hour with one.
Config
Project-level (.mcp.json or .cursor/mcp.json):
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["-y", "shadcn@latest", "mcp"]
}
}
}
Tested With
- Claude Desktop on Windows 11
- Cursor
{
"mcpServers": {
"shadcn-ui-mcp": {
"command": "npx",
"args": [
"-y",
"shadcn@latest",
"mcp"
]
}
}
} Prerequisites
- Node.js 18+
- Existing project with shadcn/ui initialized
View on GitHub · npx -y shadcn@latest mcp
Reviewed by J-Dub · February 22, 2026