The shadcn MCP server works out of the box with any shadcn-compatible registry. You do not need to do anything special to enable MCP support for your registry.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shadcn-ui/ui/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
The MCP server works by requesting your registry index. Make sure you have a registry item file at the root of your registry namedregistry.
For example, if your registry is hosted at https://acme.com/r/[name].json, you should have a file at https://acme.com/r/registry.json or https://acme.com/r/registry if you’re using a JSON file extension.
This file must be a valid JSON file that conforms to the registry schema.
Configuring MCP
Ask your registry consumers to configure your registry in theircomponents.json file and install the shadcn MCP server:
Best Practices
Here are some best practices for MCP-compatible registries:- Clear Descriptions: Add concise, informative descriptions that help AI assistants understand what a registry item is for and how to use it.
- Proper Dependencies: List all
dependenciesaccurately so MCP can install them automatically. - Registry Dependencies: Use
registryDependenciesto indicate relationships between items. - Consistent Naming: Use kebab-case for component names and maintain consistency across your registry.