Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

MCP

MCP server

The shadcn MCP server gives your agent the registry: search, docs, and install. It covers React, Vue, Svelte, and Solid, plus 294k icons.

The shadcn.io MCP server gives your AI agent the registry, live. It searches the components, reads their docs and demos, installs them for your project's framework and primitives, and adds icons from 222 libraries. Your agent stops guessing props and writing components from memory.

MCP, the Model Context Protocol (opens in a new tab), is how AI editors connect to tools like this one. You add one URL to your editor once; from then on, your agent calls the server's tools whenever a prompt needs a component or an icon.

How it works

  1. 01You askIn your editor, in plain words: “add a date picker to the booking form”.
  2. 02Your agent looks it upIt reads your package.json for your framework and primitives, then searches the registry and reads what it needs.
  3. 03The server answersFrom the registry itself: the same components, docs and demos as this site, for your stack.
  4. 04Your agent installs itA shadcn add command for React, every file for Vue, Svelte and Solid. Then it adapts a demo.

The tools only read from shadcn.io. They never see your files: your agent reads your project and writes to it on your machine, and most editors ask you before running a command.

Start here

Add it to your editor

You need Pro and your MCP URL, from your dashboard. Then pick your editor: each guide has its config, with your URL already in it when you're signed in.

MCP clients groups them by kind: editors, terminal agents, extensions and apps. Any other client that speaks MCP over HTTP works with the same URL; for one that only runs local servers, the same page has the mcp-remote bridge.

What it covers

FrameworkBuilt onInstalls with
ReactBase UI (the default), Ark UI, Radix UI or React Ariathe shadcn CLI
VueArk UIfile by file
SvelteArk UIfile by file
SolidArk UIfile by file

Plus 294k icons from 222 libraries, as a component for any of those frameworks (or Angular, Preact, plain SVG). Frameworks and bases explains how your agent picks the target and installs for it.

What your agent can do

18 read-only tools, each with its own page: what it's for, its inputs, example prompts and a real response. Each answers with just what was asked: one call can bring a component's install, usage and a demo.

Your agent picks them itself. Prompting shows what to ask, and the calls each prompt leads to.

FAQ

What is the shadcn MCP server?

One URL your editor adds once. After that, your agent can search this registry, read a component's docs, and install it. MCP (opens in a new tab) is the protocol editors use to call tools like these.

How do I add it to my editor?

You need Pro and the URL on your dashboard. Quickstart pastes it into Claude Code, Cursor, or VS Code. Every other client has its own config.

Does it work with Vue, Svelte, and Solid?

Yes. React has four sets of primitives. Vue, Svelte, and Solid use Ark UI. Frameworks and bases is how your agent picks from package.json.

Does the server read my project files?

No. The tools only read shadcn.io. Your agent reads your project and writes to it on your machine, and most editors ask before running a command.

Do I need Pro?

Yes. The MCP is part of every Pro plan. Without it the server answers 403. Your URL works again within a few minutes of Pro starting.

What can my agent do with it?

Search, read, and install components, icons, design files, and templates. The 18 tools each have a page with a real response.