Use the shadcn MCP server to browse, search, and install components from registries.
components.json. This gives any MCP client access to the published components.
{
"registries": {
"@nexus-elements": "https://elements.nexus.availproject.org/r/{name}.json"
}
}pnpm dlx shadcn@latest mcp init --client cursor
@namespace/component syntax and per-registry authcomponents.json and surfaces every registry entry.@nexus-elements namespace for the Avail-specific UI kit.{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}{
"mcpServers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}/mcp, and confirm the server shows as Connected.
{
"servers": {
"shadcn": {
"command": "npx",
"args": ["shadcn@latest", "mcp"]
}
}
}[mcp_servers.shadcn]
command = "npx"
args = ["shadcn@latest", "mcp"]components.json.
{
"registries": {
"@nexus-elements": "https://elements.nexus.availproject.org/r/{name}.json",
"@acme": "https://registry.acme.com/{name}.json",
"@internal": {
"url": "https://internal.company.com/{name}.json",
"headers": {
"Authorization": "Bearer ${REGISTRY_TOKEN}"
}
}
}
}.cursor/mcp.json, .mcp.json, etc.).npx shadcn@latest mcp runs without errors.components.json.pnpm dev/IDE if needed).@namespace/component).components.json exists at the repo root.components/ and lib/ directories.npx clear-npx-cache.View → Output → MCP: project-* in Cursor).On This Page
Nexus Registry SetupQuick StartWhat is MCP?How It WorksSupported RegistriesConfigurationCursorClaude CodeVS CodeCodexConfiguring RegistriesExample PromptsBrowse & SearchInstall ItemsWork with NamespacesTroubleshootingMCP Not RespondingRegistry Access IssuesInstallation FailuresNo Tools or Prompts ListedLearn More