Connect shadcn/ui to Claude Code
Copy-in React components built on Radix and Tailwind. Its MCP server browses, searches and installs items from the default and any namespaced community registry.
MCP serverOfficialChecked 2026-11-16
Before you start
- Claude Code installed (see its MCP documentation (opens in a new tab)).
- shadcn/ui is available on macOS, Windows and Linux.
Step 1: Add shadcn/ui to Claude Code
Add it from the terminal
Run this in your project folder. It saves the server for you, in this project only.
Terminal claude mcp add shadcn -- npx -y shadcn@latest mcpOr share it with your team
Add this to
.mcp.jsonat the project root and commit it. Teammates approve it the first time Claude Code starts..mcp.json { "mcpServers": { "shadcn": { "type": "stdio", "command": "npx", "args": [ "-y", "shadcn@latest", "mcp" ] } } }Step 2: Check it's connected
Terminal claude mcp listStart a session and run
/mcpto see the server, its status and its tools.Step 3: Try a first request
Ask Claude Code something that only works with shadcn/ui connected:
Say to Claude Code Search the shadcn registry for a date picker and give me the command to add it to this project.
If it doesn't work
- Servers in a project
.mcp.jsonstay inactive until you approve them the first time Claude Code starts in that folder. claude mcp addsaves to the local scope by default: only you, only this project. Add--scope userto use it in every project.- If a server shows as failed, run
claude --debugto see its startup output.





