Use the shadcn MCP server
Ballmac UI is a standard shadcn registry, so the official shadcn MCP server works once the registry is in your project.
On this page
Add the registry to your project
The shadcn CLI knows @ballmac from the official registry directory, but the MCP server only reads the registries listed in components.json, so add it there:
pnpm dlx shadcn@latest registry add @ballmac=https://ui.ballmac.com/r/{name}.jsonnpx shadcn@latest registry add @ballmac=https://ui.ballmac.com/r/{name}.jsonyarn dlx shadcn@latest registry add @ballmac=https://ui.ballmac.com/r/{name}.jsonbun x shadcn@latest registry add @ballmac=https://ui.ballmac.com/r/{name}.jsonConnect your client
pnpm dlx shadcn@latest mcp init --client claudenpx shadcn@latest mcp init --client claudeyarn dlx shadcn@latest mcp init --client claudebun x shadcn@latest mcp init --client claudeUse --client cursor, --client vscode, --client codex or --client opencode for the others.
For Windsurf and other clients, add the server to your client's MCP configuration:
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}What the agent sees
The shadcn MCP server exposes tools to list, search and view registry items, fetch examples, and get the add command. Each Ballmac item includes what an agent needs to pick it and wire it up. See Built for AI agents.