MCP
Use the shadcn MCP server to browse and install diarmuradi blocks from AI assistants.
The shadcn MCP Server lets AI assistants browse, search, and install registry items with natural language.
MCP Server
After configuring your registries in components.json, you can prompt your assistant with requests like:
- Find me a header from
@diarmuradi - Add a pricing block from
@diarmuradi - Install
header-7from@diarmuradi-pro - Build a landing page using
@diarmuradiblocks
Quick setup
Run the following in your project:
pnpm dlx shadcn@latest mcp init --client cursor
Replace cursor with your client: claude, vscode, codex, or opencode.
For full options, see the shadcn MCP documentation.
Guidelines
- Match your
components.jsonstyle to your UI base:base-*for Base UI (default),radix-*for Radix UI, oraria-*for React Aria - Keep
REGISTRY_TOKENout of source control - Copy install commands from the site. Don't guess registry item names
- Use
@diarmuradifor free samples and@diarmuradi-profor gated blocks - Run
npx shadcn@latest view @diarmuradi/{name}before adding unfamiliar items