Caprice LogoCaprice UI

MCP Server

How to use the Model Context Protocol with Caprice UI.

Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools.

The shadcn MCP Server allows AI assistants to interact with items from registries. You can browse available components, search for specific ones, and install them directly into your project using natural language.

Quick start

First, make sure the Caprice UI registry is present in your components.json file:

components.json
{
  "registries": {
    "@caprice": "https://caprice-ui.com/r/{name}.json"
  }
}

Then select your MCP client and follow the instructions to configure the shadcn MCP server. If you'd like to do it manually, see the official shadcn MCP documentation.

Run the following command in your project:

npx shadcn@latest mcp init --client claude

Restart Claude Code and try the following prompts:

  • Show me all available components in the shadcn registry
  • Add the button, dialog and card components to my project
  • Create a contact form using components from the shadcn registry

Note: You can use /mcp command in Claude Code to debug the MCP server.

Usage

You can now ask your IDE to use any Caprice UI component. Here are some prompt examples:

  • Add Button component from the Caprice UI registry.
  • Show me all available components in the Caprice UI registry.

Learn more

To learn more about using the shadcn MCP server, including manual setup for different clients, please visit the official shadcn MCP documentation.