MCP server

shadcn MCP Server: Browse and Install Components

The shadcn MCP server lets an AI coding agent search, view and install components from shadcn/ui and other registries, including private ones, using plain-language prompts.

Run
npx shadcn@latest mcp init --client cursor
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the shadcn MCP server?

The shadcn MCP server is part of the shadcn CLI. You start it with npx shadcn@latest mcp over stdio, and your agent can then browse, search and view items from registries, and get the install command. Registries are set in components.json. The default shadcn/ui registry needs no configuration.

The shadcn MCP server lets AI assistants interact with items from component registries. You can browse what a registry offers, search for a component by name or purpose, view its source and install it into your project through natural-language prompts. For the skill side, see the shadcn skill.

It ships inside the shadcn CLI, so there is no separate package to track. The server runs locally over stdio when your agent launches npx shadcn@latest mcp.

What it changes in your workflow

  • Your agent finds a component in a registry before it writes custom UI, then gets the exact install command.
  • It can view full file contents and usage examples, so generated code matches the registry's own source.
  • It works with the default shadcn/ui registry, third-party registries, private company registries and namespaced ones such as @acme.
  • It handles registry operations only. For aliases, framework and Tailwind version, the repo's guide points you to the CLI info command.

Hosted or local

shadcn MCP server
Where it runsOn your machine, started by the CLI
Transportstdio
Account or keyNone for the default registry. Private registries use tokens set through environment variables
Config neededA components.json for custom registries and for the project-registry tool

Who it is for

Best for

  • Projects built on shadcn/ui that want an agent to add components from the right registry.
  • Teams with an internal registry who want agents to use it instead of reinventing components.
  • Developers who want a searchable catalog inside the agent instead of switching to the docs site.

Not for

  • Rules about how to compose components. That guidance lives in the shadcn skill, which the shadcn docs present as a companion.
  • Reading project configuration. There is no MCP tool for it, so use npx shadcn@latest info.
  • Reading design files. The server only handles registries, so for Figma frames see Figma MCP.

Use it with UiChemy

The server installs React components into your own front end. For WordPress, UiChemy covers the other side: Composer is a visual editor for Elementor or Gutenberg, and AI to WordPress imports an existing AI build as an editable page. Click Get Started on uichemy.com. For polishing the components it installs, see the shadcn improve skill.