Skip to content

shadcn.io is an independent project built on shadcn/ui

MCP

MCP tools

The 22 tools on the shadcn MCP, one page each. What the tool is for, its inputs, a prompt that calls it, and a real response.

22 read-only tools. Every component tool takes a framework (react, vue, svelte, solid) and, for React, a base (base, ark, radix, aria): your agent reads both from your package.json. Each tool has a page with its inputs, example prompts and a real response.

How an agent uses them

  1. 01 · Findsearch_componentssearch_demoslist_componentsFrom what the user asks for, a pattern, or by browsing.
  2. 02 · Addget_componentincludeWhat it is, and in the same call its install, usage and a demo.
  3. 03 · Detailsget_component_apiget_demoget_component_docsget_guideOnly what's needed next: one part's props, another demo, the docs, a guide.
  4. 04 · Installget_install_commandReactget_install_planVue · Svelte · SolidOne command, or every file and package.
Iconssearch_iconsget_iconlist_icon_librariesAny icon, from every library at once, as code for your framework.
Set upget_project_setupOnce per project: the preset, the theme, the aliases.
SessionwhoamiWho's connected, and the calls left this minute.

The cheap calls come first: a search, then get_component (no code) to check the fit. The docs, a demo or the source only for the one it picks, then the install.

Discover

Find any component, utility or hook for your framework and primitives: the catalog by category, ranked search that knows a modal is a dialog, and search across every demo for a pattern.

Inspect

A component and what you need of it, in one call: its install, usage and a demo. Then only what's next: one part's props, another demo, the docs or the source.

Blocks

Whole sections and app screens (a pricing page, a kanban board, a chat window) on all seven targets: search by what they do, browse the categories, get one with its install, or plan a page as a stack of blocks.

Install

A project's setup, once, then one add command with your token for any framework (several components at once): the shadcn CLI for React and Solid, shadcn-vue, shadcn-svelte. Or every file and package, without a CLI.

Icons

Search 294k icons across 222 libraries by meaning, then add them: the import from the set's package, or a component for your framework.

Design

A real brand's design system as a DESIGN.md (colors, type, spacing and components from 500 brands) for your agent to match a look, and templates to start a project from.

Account

Who your agent is connected as, your plan, and how many calls are left this minute.

Call one by hand

Every tool is a JSON-RPC tools/call to your MCP URL. Your client sends it for you; to try one without a client, post it yourself. The server answers in server-sent events, the result on the data: line.

Terminal
Sign in to get your config
Sign in with a Pro account, and this holds your MCP URL, ready to paste.

FAQ

How many tools does the shadcn MCP have?

22, all read-only. Each page below has the inputs, a prompt, and a real response.

Which tool should my agent call first?

search_components when you describe the job. get_component when you already know the name.

Do the tools work for Vue, Svelte, and Solid?

Yes. Pass framework, and for React a base. Your agent reads both from package.json. Frameworks and bases lists every target.

Can I call a tool without an editor?

Yes. Post tools/call to your MCP URL. The whoami call above is the envelope every tool uses.