Join our Discord Community

Shadcn MCP for Claude Code

Learn how to install Shadcn MCP for Claude Code. Connect your AI frontend development workflow to shadcn/ui components using MCP servers for smarter coding assistance.

Issues installing the MCP in Claude Code?

Join our Discord community for help from other developers.


How to install Shadcn MCP for Claude Code

Look, if you're here, you probably already know that Claude Code is pretty solid for terminal-based development. But here's the thing—when you ask it about shadcn/ui components, it's been flying blind, working off whatever it remembered from training instead of actual, current component data.

That's where MCP (Model Context Protocol) comes in. Think of it as giving Claude Code a direct line to the shadcn/ui component registry and the entire shadcn.io community ecosystem. No more "this might be outdated" disclaimers.

Your first 5 minutes with Shadcn MCP

Install the MCP server

claude mcp add --transport http shadcn https://www.shadcn.io/api/mcp

Alternative: Claude Desktop Add this to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info.

{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://www.shadcn.io/api/mcp"]
    }
  }
}

This connects Claude Code to the entire shadcn/ui component registry. Takes about 10 seconds.


Explore available components

use shadcn to give me a list of all components available

Watch Claude Code pull up-to-date component information directly from the registry. No guessing, no outdated docs—just current component data.


Get component details

use shadcn and give me information about color picker component

Claude Code can now see actual component implementations, props, and usage patterns. Real information about how components actually work.


Implement in your project

use shadcn and implement the color picker component in my app

Get working code that follows shadcn/ui patterns. Claude Code understands your component system and suggests code that actually works.

That's it. Four simple steps and Claude Code now has access to the entire shadcn/ui component registry and the custom shadcn.io components and utilities.

What is Claude Code anyway?

If you're new to Claude Code, it's Anthropic's official CLI. Think of it as ChatGPT but built for developers who live in the terminal. It can read your files, edit code, run commands, and now—with MCP—tap into external knowledge like component libraries.

The killer feature? It understands your entire codebase context, not just individual files. Add MCP servers and suddenly it's not just context-aware, it's ecosystem-aware.

What this actually gets you

PromptWithout MCPWith MCP
"How do I customize the color picker component?"Generic color input tutorials or random npm librariesExact color picker from shadcn.io registry with proper form integration
"Show me button variants"Maybe mentions primary/secondary if you're luckyAll 6 actual variants with real examples
"I need a data table with sorting"Basic HTML table with manual sort functionsThe actual Data Table component with working sort/filter patterns