Loading dashboard...
Loading dashboard...
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.
The MCP server works by requesting your registry index. Make sure you have a registry item file at the root of your registry named registry.
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.
Ask your registry consumers to configure your registry in their components.json file and install the shadcn MCP server:
Configure your registry in your components.json file:
{
"registries": {
"@acme": "https://acme.com/r/{name}.json"
}
}Run the following command in your project:
Restart Claude Code and try the following prompts:
Note: You can use /mcp command in Claude Code to debug the MCP server.
You can read more about the MCP server in the MCP documentation.
Here are some best practices for MCP-compatible registries:
dependencies accurately so MCP can install them automatically.registryDependencies to indicate relationships between items.