Installation

MCP Blocks UI is a shadcn registry. Each component is copied into your repo, so you own the code and there is no runtime package to keep up to date.

1.Prerequisites

  • A React 18+ project (Vite, Next.js or anything that builds a single-file MCP App view).
  • Tailwind CSS v4. The tokens are mapped with @theme inline, which v3 does not support.
  • A components.json file, the @/* path alias and a cn helper in lib/utils.ts. If you do not have them, run npx shadcn@latest init first.
  • The @modelcontextprotocol/ext-apps package, if you want to talk to the host (see Using with an MCP server).

2.Add a component

$npx shadcn@latest add https://mcpblocks.dev/r/inline-card.json

The CLI also installs what the component depends on: host-tokens (CSS variables and Tailwind utilities), host (helpers), host-button and icons where needed. Swap inline-card for any name on the components pages.

Using pnpm, bun or yarn? Replace npx with pnpm dlx, bunx --bun or yarn dlx.

3.What lands in your repo

Registry itemGoes to
host-tokensYour global CSS file (variables in :root and .dark, mapping in @theme inline)
hostlib/host.ts
host-button, iconscomponents/ui/
carousel, inline-card, …components/

Folders follow the aliases in your components.json, so paths may differ in your project.

4.Use it

import { InlineCard } from "@/components/inline-card"

export function App() {
  return (
    <InlineCard
      title="Acme renewal"
      fields={[{ label: "Owner", value: "Sam" }]}
      actions={[{ label: "Open record" }]}
    />
  )
}

Components only use host-* utilities such as bg-host-bg and text-host-fg. Inside Claude the host injects the real values; elsewhere the fallbacks apply.

5.Install everything at once (optional)

npx shadcn@latest add \
  https://mcpblocks.dev/r/list-view.json \
  https://mcpblocks.dev/r/confirm-action.json \
  https://mcpblocks.dev/r/media-player.json \
  https://mcpblocks.dev/r/line-chart.json \
  https://mcpblocks.dev/r/document-card.json \
  https://mcpblocks.dev/r/carousel.json \
  https://mcpblocks.dev/r/inline-card.json \
  https://mcpblocks.dev/r/status-update.json \
  https://mcpblocks.dev/r/skeleton.json