shadcn-registry-manager is an MCP server designed to expose the operations of the shadcn/ui component registry and CLI as MCP tools, enabling developers or AI agents to programmatically execute shadcn CLI commands that would otherwise need to be run locally.
Purpose: This project is mainly used to automate tasks such as initialization of shadcn/ui projects, adding components, and querying registry items, and supports execution in remote, containerized, or CI/CD environments, making it easy to integrate into AI workflows or development processes.
Main capabilities: Through MCP tools, users can initialize projects, add components (including block components) from shadcn registries (including the official registry and custom/self-hosted registries), list and retrieve registry items, and run all shadcn CLI workflows. The specific tools include: get_init_instructions (get project initialization instructions), execute_init (run full project initialization), get_items (list available registry items), get_item (get a specific registry item), add_item (add a registry item to the project), execute_add (add multiple components to the project), get_blocks (get the current blocks from the registry).
Usage: The MCP server can be run via a container, with the project directory mounted, and the relevant parameters (such as project path, registry URL, style, etc.) configured in mcp.json. It can also be run using npx, which is convenient for local development or CI/CD pipelines. In addition, it supports integration with tools such as Claude, configuring environment variables such as WORKSPACE_DIR and REGISTRY_URL. The official registry URL is https://ui.shadcn.com/r,自定义注册表可参考 the official shadcn blocks guide.
Use cases: Suitable for development teams that need to automate the management of shadcn/ui components, users who want to integrate the shadcn CLI into AI agent workflows, and scenarios where shadcn commands are run in containerized or cloud environments.
Limitations: The project uses the MIT license. Specific feature details, pricing, platform compatibility, etc. are not yet provided; please refer to the official documentation.