Supports containerized execution of shadcn CLI commands by running the MCP server in a Docker container with project directory mounting, making it easy to automate shadcn/ui operations in isolated environments.
Enables remote execution of shadcn CLI operations against local or remote component registries, allowing users to initialize projects, add components (including block components), list and fetch registry items, and run all shadcn CLI workflows remotely.
shadcn registry manager - MCP Server
This project provides an MCP (Model Context Protocol) server for the shadcn/ui component registry and CLI. It enables remote, programmatic, or containerized execution of shadcn CLI commands (such as init
, add
, etc.) that you would normally run locally, making it easy to automate, integrate, or run in cloud/dev environments. The MCP server can connect to both local and remote shadcn registries, providing a secure, extensible, and technical interface for automating project management tasks via AI or CLI agents.
What It Does
This MCP server exposes shadcn CLI operations as MCP tools, so you (or an AI agent) can:
- Initialize a project
- Add components from the shadcn registry including block components
- List and fetch registry items
- Run all shadcn CLI workflows remotely
- Supports both the official shadcn registry - https://ui.shadcn.com/r and custom/self-hosted registries follow this guide: https://ui.shadcn.com/docs/blocks
Usage
Docker
Run the MCP server in a container, mounting your project directory:
Add the following to your mcp.json
file:
Docker mounting explanation:
- <your-project-path> - Is the path to your project directory. Example:
/Library/Projects/shadcn-registry-manager/www
- /workspace - is the path to the workspace directory inside the container.
(Don't change it, if you do, you must pass the same path as
cwd
param on every tool call)
Docker ENV Variables:
- REGISTRY_URL
- option 1:
https://ui.shadcn.com/r
- The URL of the shadcn registry - option 2:
http://localhost:3000>/r
- The URL of your own registry server (follow this guide: https://ui.shadcn.com/docs/blocks)
- option 1:
- STYLE - is the style of the shadcn registry -
new-york
npx
You can also run the MCP server using npx, which is convenient for local development or CI/CD pipelines.
Add the following to your mcp.json
file:
Claude
You can also use the MCP server with Claude. Here are the configuration options:
Claude CLI Command:
Claude .mcp.json Configuration:
npx ENV Variables:
- WORKSPACE_DIR - The path to your project directory (mounted as the workspace)
- REGISTRY_URL
- option 1:
https://ui.shadcn.com/r
- The URL of the shadcn registry - option 2:
http://localhost:3000/r
- The URL of your own registry server (follow this guide: https://ui.shadcn.com/docs/blocks)
- option 1:
- STYLE - is the style of the shadcn registry -
new-york
Example MCP Tools
get_init_instructions
: Get project initialization instructionsexecute_init
: Run full project initializationget_items
: List available registry itemsget_item
: Fetch a specific registry itemadd_item
: Add a registry item to your projectexecute_add
: Add multiple components to your projectget_blocks
: Get current blocks from the registry
Example Usage
Source
made with ❤️ by Reuven Naor
MIT License. See LICENSE for details.
This server cannot be installed
MCP server for Shadcn UI, enabling automated, remote, or containerized project management via local or remote registries
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.Last updated -15TypeScriptMIT License
- AsecurityFlicenseAqualityAn MCP server that helps teams create, manage, and access structured project documentation through six core document types, leveraging AI to generate comprehensive project knowledge management.Last updated -54598TypeScript
- AsecurityAlicenseAqualityA unified control center for managing MCP servers, providing tooling for environment variable management, profile-based configurations, and local package installation automation.Last updated -240TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Control Protocol server that allows users to discover, install, and manage Shadcn UI components and blocks through natural language interactions in compatible AI tools.Last updated -68509TypeScriptMIT License