MCP
Point the official shadcn MCP at Senren. Your agent can browse and install components without you babysitting the CLI.
1. Add the registry
Same as Quick Start. Wire @senren-ui in components.json:
{
"registries": {
"@senren-ui": "https://senren.renzoreyn.dev/r/{name}.json"
}
}2. Enable shadcn MCP
From your project root in Cursor:
Or drop this into .cursor/mcp.json:
{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}Restart Cursor. Settings → MCP. Enable shadcn (green dot). It reads registries from your components.json.
3. Ask
- “List components from @senren-ui”
- “Install @senren-ui/senren10”
- “Add the Magnetic Button from Senren”
Same files as npx shadcn add @senren-ui/…. Just less typing.
Other clients
Claude Code: npx shadcn@latest mcp init --client claude. VS Code: --client vscode. Full writeup in the shadcn MCP docs.