API & MCP

Let your coding agent search every shadcn registry by itself.

MCP
Tools: search_components, get_component, list_registries
Claude Code
claude mcp add --transport http shadcn-explorer https://shadcn-explorer.example.com/mcp
Claude Code (higher limits)
claude mcp add --transport http shadcn-explorer https://shadcn-explorer.example.com/mcp --header "x-api-key: sce_..."
.mcp.json / .cursor/mcp.json
{  "mcpServers": {    "shadcn-explorer": {      "type": "http",      "url": "https://shadcn-explorer.example.com/mcp",      "headers": {        "x-api-key": "sce_..."      }    }  }}
REST API
curl
curl -H "x-api-key: sce_..." "https://shadcn-explorer.example.com/api/v1/search?q=glowing%20button&mode=hybrid&kind=ui"curl -H "x-api-key: sce_..." "https://shadcn-explorer.example.com/api/v1/components/<registry>/<name>"curl -H "x-api-key: sce_..." -F image=@design.png "https://shadcn-explorer.example.com/api/v1/search/image"