MCP
How to use the shadcn MCP with Redpanda UI Registry.
We strongly recommend configuring your AI Agent with the shadcn MCP server and the following guidelines. This gives your AI Agent full context about the registry — component discovery, documentation, code preview, and installation — all natively supported.
1. Add the shadcn MCP
The shadcn MCP server works out of the box with the @redpanda registry configured in your components.json. Make sure you have set up your project first.
Copy and paste the code into .cursor/mcp.json:
{
"mcpServers": {
"shadcn": {
"command": "bunx",
"args": ["shadcn@latest", "mcp"]
}
}
}The shadcn MCP server automatically discovers the @redpanda registry from your components.json and exposes all components to your AI agent — including documentation, code, and install commands.
2. Add the following guidelines to your AI Agent
We strongly recommend you add these code style guidelines to your agent, as it ensures proper UI best practices are followed every time you want to build a UI.
Create a .cursor/rules/ui.md file and paste the following code:
3. Add recommended MCPs
- Figma Remote MCP
- Playwright MCP (for exposing the rendered UI to the agent)
4. Restart your AI Agent
That's it! Your AI Agent is now configured to use the Redpanda UI Registry via the shadcn MCP and best practices.