MCP

PreviousNext

Install components from this registry with your AI coding agent via the shadcn MCP server.

The shadcn MCP server lets AI coding agents browse and install registry items for you. Point it at this registry and you can ask for “the button and dialog components” and the agent runs the install.

Configure the registry

Add this registry to your project’s components.json under registries:

components.json
{
  "registries": {
    "@shadcn-remix": "https://www.shadcn-remix.com/r/{name}.json"
  }
}

Add the MCP server

Run the shadcn MCP init command, or add the server to .mcp.json manually:

$ pnpm dlx shadcn@latest mcp init --client claude
.mcp.json
{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}

Use it

Once configured, prompt your agent naturally:

Show me the components available in the @shadcn-remix registry.
Add the dialog and dropdown-menu components to my project.

The agent reads each item’s JSON, installs the npm dependencies, and writes the sources into app/ui/ — the same result as running the CLI yourself.

Docs for LLMs

Agents that read documentation directly can start from /llms.txt, an index of every page, or fetch all of it at once from /llms-full.txt. Append .md to any docs URL for its markdown, like /docs/installation.md.