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.jsonfile, the@/*path alias and acnhelper inlib/utils.ts. If you do not have them, runnpx shadcn@latest initfirst. - The
@modelcontextprotocol/ext-appspackage, 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.jsonThe 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 item | Goes to |
|---|---|
| host-tokens | Your global CSS file (variables in :root and .dark, mapping in @theme inline) |
| host | lib/host.ts |
| host-button, icons | components/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