shadcn/ui Registry Manager MCP server

Integrates with the shadcn/ui component registry to initialize projects, add components, and manage configurations remotely through CLI operations like init and add, supporting both official and custom registries for automating React/Next.js project setup and component library management.
Back to servers
Setup instructions
Provider
Reuven Naor
Release date
Jul 25, 2025
Stats
1 star

The shadcn registry manager MCP server provides an interface for working with the shadcn/ui component registry remotely. It allows you to automate shadcn CLI operations like initializing projects and adding components through a Model Context Protocol server, which is especially useful for AI agents, containerized environments, or remote workflows.

Installation Options

Docker Installation

To use the MCP server with Docker, add the following configuration to your mcp.json file:

"shadcn-registry-manager": {
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "--mount",
    "type=bind,src=<your-project-path>,dst=/workspace",
    "-e", 
    "REGISTRY_URL=https://ui.shadcn.com/r",
    "-e", 
    "STYLE=new-york",
    "reuvenaor/shadcn-registry-manager"
  ]
}

When using Docker, you need to:

  • Replace <your-project-path> with your actual project directory path
  • Keep /workspace as the destination path inside the container
  • Set environment variables for configuration

NPX Installation

As an alternative, you can run the MCP server using npx:

"shadcn-registry-manager": {
  "command": "npx",
  "args": [
    "@reuvenorg/shadcn-registry-manager"
  ],
  "env": {
    "REGISTRY_URL": "https://ui.shadcn.com/r",
    "WORKSPACE_DIR": "/your/project/path",
    "STYLE": "new-york"
  }
}

Claude Integration

To use with Claude, you can add the MCP server using the Claude CLI:

claude mcp add --scope project shadcn-registry-manager npx @reuvenorg/shadcn-registry-manager -e REGISTRY_URL=https://ui.shadcn.com/r -e WORKSPACE_DIR=/your/project/path -e STYLE=new-york

Or configure it in your .mcp.json file:

{
  "shadcn-registry-manager": {
    "type": "stdio",
    "command": "npx",
    "args": [
      "@reuvenorg/shadcn-registry-manager"
    ],
    "env": {
      "REGISTRY_URL": "https://ui.shadcn.com/r",
      "WORKSPACE_DIR": "/your/project/path",
      "STYLE": "new-york"
    }
  }
}

Configuration Options

Environment Variables

For Docker:

  • REGISTRY_URL: URL of the shadcn registry (official: https://ui.shadcn.com/r or self-hosted: http://localhost:3000/r)
  • STYLE: Style of the shadcn registry (e.g., new-york)

For NPX:

  • WORKSPACE_DIR: Path to your project directory
  • REGISTRY_URL: URL of the shadcn registry
  • STYLE: Style of the shadcn registry

Using the MCP Server

The MCP server exposes several tools for working with the shadcn registry:

Available Tools

  • get_init_instructions: Get project initialization instructions
  • execute_init: Run full project initialization
  • get_items: List available registry items
  • get_item: Fetch a specific registry item
  • add_item: Add a registry item to your project
  • execute_add: Add multiple components to your project
  • get_blocks: Get current blocks from the registry

Example Commands

To get blocks from the registry:

use the tool `get_blocks` to get the blocks from the registry

To add a specific component:

use the tool `add_item` - dashboard-01 to your project

Registry Support

The MCP server supports both:

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "shadcn-registry-manager" '{"command":"npx","args":["@reuvenorg/shadcn-registry-manager"],"env":{"REGISTRY_URL":"https://ui.shadcn.com/r","WORKSPACE_DIR":"/path/to/your/project","STYLE":"new-york"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "shadcn-registry-manager": {
            "command": "npx",
            "args": [
                "@reuvenorg/shadcn-registry-manager"
            ],
            "env": {
                "REGISTRY_URL": "https://ui.shadcn.com/r",
                "WORKSPACE_DIR": "/path/to/your/project",
                "STYLE": "new-york"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "shadcn-registry-manager": {
            "command": "npx",
            "args": [
                "@reuvenorg/shadcn-registry-manager"
            ],
            "env": {
                "REGISTRY_URL": "https://ui.shadcn.com/r",
                "WORKSPACE_DIR": "/path/to/your/project",
                "STYLE": "new-york"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later