Pi, with every shadcn component one call away
One pi mcp add gives Pi 22 tools that search the registry, read a component's real props and install it in your repo's framework, Svelte and Vue included. The MCP comes with every Pro plan.
- Kind
- Terminal agent
- Goes in
Terminal- Connects
- Over HTTP
- Team config
- Yes
- Its docs
- Pi MCP (opens in a new tab)
One command in your shell
Pi has MCP built in since 0.99.0, managed from your shell or from /mcp. Signed in with Pro, the command beside these steps already holds your URL.
Copy the pi mcp add command
With Pro, it carries your MCP URL, token included. No token yet? Create one on your account; the URL itself is on your MCP page.
Run it in a terminal
It writes
shadcnioto~/.pi/agent/mcp.jsonand doesn't connect yet. If your Pi has nomcpcommand, runpi updatefirst: MCP arrived in 0.99.0.Check it with pi mcp list
It connects to every enabled server and prints its state and tools. You want
shadcnio: connected, 22 tools (direct, global).Start pi in your project
A new session connects it on start; one that was already open needs
/reload. Begin your first prompts withuse shadcnioso the model picks the registry.
How it reads, with YOUR_TOKEN where your token goes:
$ pi mcp add shadcnio --url "https://www.shadcn.io/api/mcp?token=YOUR_TOKEN" --exposure direct
Saved in ~/.pi/agent/mcp.json, outside every repo. Add -l to write the project's .pi/mcp.json instead, which Pi reads only in a folder you trust. The URL holds your token: regenerate it if it leaks.
| Exposure | What the model gets | Pick it when |
|---|---|---|
direct (in the command) | All 22 tools declared like read or bash; the first prompt waits up to 10 seconds for them to connect | You reach for the registry in most sessions |
deferred | Nothing declared until tool_search loads the matches for the next call | You run many servers and want a short tool list |
codemode (Pi's default) | Tools called from JavaScript scripts that find them with searchTools() | You want the model to batch calls and trim results in a script |
One command for the whole team
Nothing in this command is secret: Pi saves the endpoint with an Authorization: Bearer ${SHADCNIO_TOKEN} header, and each person exports their own token. Everyone can run it as is, or one person adds -l at the repo's root to write .pi/mcp.json and commits it; Pi loads it for each teammate once they trust the folder. With a Team or Organization plan, each teammate exports a Pro token of their own.
pi mcp add shadcnio --url "https://www.shadcn.io/api/mcp" --bearer-token-env-var SHADCNIO_TOKEN --exposure directEach teammate sets SHADCNIO_TOKEN to their own token (from their MCP URL), so no token is committed.
See it in /mcp
/mcp lists each server with its state, tool count, exposure and the file it came from, the ones that need attention first. pi mcp list prints the same from a shell.
- From a shell,
pi mcp listshould printshadcnio: connected, 22 tools (direct, global)and the tool names. - In a session, type
/mcpand selectshadcnioto see its tools and their exposure, or to reconnect it. - Ask the prompt below: the call shows as
shadcnio/whoami(Ctrl+Oexpands it), andwhoamianswers with your account and the calls left this minute.
Three jobs Pi does with it
A React debug panel, a SvelteKit filter drawer and a docs changelog: the prompt, Pi's tool calls and what lands. Turn the MCP off to compare.
- shadcn.io MCP connected ยท 22 tools
Agent step: read package.jsonReturns: Vite, React 19, @base-ui/react, bun.lockMCP call: search_components({ query: "json viewer" })Returns: json-tree-view, then tree-viewMCP call: get_component({ name: "json-tree-view", include: ["install", "usage"], packageManager: "bun" })Returns: bunx shadcn add โฆ/r/json-tree-view.json, and its data propAgent step: bash: bunx shadcn add โฆ/r/json-tree-view.jsonReturns: components/ui/json-tree-view.tsx, no prompt on the way
In your project
JSON Tree View
- Opens two levels deep, folds the rest
- Installed with bun, as the lockfile says
1 prompt โ 2 MCP calls
Prompts to paste into Pi
Type one into Pi's editor as is. The use shadcnio prefix steers the model to the registry; once AGENTS.md says so, you can drop it.
What's different in Pi
Pi stays minimal: no approval prompts, no plan mode, a tool list you shape yourself. These make the MCP fit that.
Nothing asks before a call
Pi runs tool calls without asking, so
shadcnio/get_blockand thenpx shadcn addafter it simply happen: read the diff afterwards. If you use a permission extension, every shadcnio tool declaresreadOnlyHint, so it can pass them and still stop atbash.One line in AGENTS.md
Pi loads
AGENTS.md(orCLAUDE.md) from the project and its parent folders, plus~/.pi/agent/AGENTS.mdfor every project. Say there to use the server for UI, and theuse shadcnioprefix becomes optional.For any UI work, call the shadcnio MCP first: search, read the component, then run the install command it returns.
A /ui command of your own
Pi lists a server's tools and resources, not its prompts. A prompt template brings the shortcut back: save this as
~/.pi/agent/prompts/ui.md, run/reload, then type/ui a date range filter.--- description: Build UI with the shadcn MCP argument-hint: "<what to build>" --- Use the shadcnio MCP to build $@. Search before writing any UI, install with the command it returns, and keep to this project's framework.
Long answers lose their middle
Pi trims a text result over 20 KB around the middle and saves the full text to a temp file it names. A component's
sourceor every docs section can reach that: ask forinstallandusage, or name thesectionsyou need.Read a DESIGN.md as a resource
Since the server offers resources, Pi adds
list_mcp_resourcesandread_mcp_resource. Ask forshadcnio://design/raycastand the brand's DESIGN.md arrives whole, ready to save at the root.In scripts, keep only its tools
pi -pruns one prompt and exits, andpi mcp listexits with 1 when a server isn't connected. A--toolsentry starting withmcp__limits MCP tools to the ones it matches.$ pi mcp list > /dev/null || exit 1 pi -p "use shadcnio to add a skeleton while the feed loads" \ --tools read,bash,edit,write,'mcp__shadcnio__*'
When shadcnio won't connect
What pi mcp list or /mcp shows, and what fixes it. Anything else is in the full troubleshooting guide.
pi mcp listshowsshadcnio: needs sign-in, or Pi says at startup that it requires sign-in.- The server answered 401: the token in the URL is old or missing. Pi treats an HTTP server with no
Authorizationheader as an OAuth server and reads that as a sign-in request, which won't help here. Copy the command again and run it:pi mcp addreplaces the entry with the same name. - shadcnio fails with
MCP HTTP request failed with status 403. - Pi got through, but shadcn.io found no live Pro plan on the token's account. Renew it, then select
shadcnioin/mcpand reconnect:mcp.jsonstays as it is. - Pi reports it failed to resolve the
Authorizationheader fromSHADCNIO_TOKEN. - The variable isn't set in the shell Pi started from. Export it in your shell profile, open a new terminal and start Pi again.
- A session that was open before you ran
pi mcp addhas no shadcnio tools. - Sessions read
mcp.jsonwhen they start. Run/reload, then/mcpto watchshadcnioconnect. /mcplooks nothing like Pi's docs, andshadcnioisn't in it.- An installed extension registers
/mcp(pi-mcp-adapter, for one) and replaces Pi's own MCP support, so sessions skipmcp.json. Remove the extension, or add shadcnio in that extension's own config. - Your Pi doesn't know
pi mcp add. - MCP arrived in Pi 0.99.0. Run
pi update, or update through the package manager that installed Pi (Nix, for one), then run the command again.
Get the MCP for Pi with Pro
The MCP comes with every Pro plan, with every block and premium template, for you or your whole team. Monthly, yearly or lifetime.
4.9/5 out of 5 ยท 150+ reviewsfrom 150+ founders and developers.
Billing
Billed once a year in USD. Cancel anytime.
- How many people can use the license.
- Client work, SaaS products and anything you charge for.
- Page sections in 56 categories, from heroes and pricing tables to dashboards and settings, on every framework and UI library, in your theme.
- Complete Next.js sites for startups, SaaS, agencies and portfolios, every page designed, ready to ship.
- Your AI agent searches, previews and installs any component, block, icon or DESIGN.md from a prompt: 22 tools in Claude Code, Cursor, VS Code and 35 more clients.
- Buttons with motion and states of their own, from an arrow that slides in to a burst of confetti.
- Typewriters, scrambles, counters and more, for headlines, labels and numbers.
- Animated backgrounds for heroes, sections and cards, from a soft aurora to a flock that flees the cursor. Most are pure CSS.
- WebGPU shaders, from a slow aurora to a black hole, each drawing only while it's on screen.
- One design and one theme on all four: the components, blocks and effects are built for each framework.
- React on Base UI, Radix UI, React Aria or Ark UI: install the version for the library your project already uses. Vue, Svelte and Solid run on Ark UI.
- From a button to a date picker, a color picker or a guided tour: accessible, typed in TypeScript, each with live demos.
- Real-world patterns built from the components, in 53 galleries: forms, tables, menus, dialogs and more.
- Area, bar, line, pie, radar and radial charts on TanStack Charts, on every framework. React also gets the Recharts originals.
- Debounce, local storage, media queries and more: each hook is one typed file you own.
- From 222 libraries, Lucide, Heroicons, Tabler and Material Symbols among them, as SVG or a React component in one command.
- Stripe, Linear, Apple and 497 more: a brand's colors, typography and components in one file your AI agent builds from.
- Restyle every component and block at once: 8 styles, 8 grays, 18 colors and 5 radii, shared as a shadcn preset code.
- Priority requests are answered first.
Individual
For personal projects & open source
$32instead of $49/mo
$389 billed yearly
- Seats: 1 seat
- Commercial use: Personal & open source only
- Blocks: All 6,181 blocks
- Templates: All 14 templates
- MCP server: 38 AI clients
- Animated buttons: All 35 buttons
- Text effects: All 97 effects
- Backgrounds: All 100 backgrounds
- Shaders: All 100 shaders
- Frameworks: React, Vue, Svelte, Solid
- UI libraries: Base UI, Radix, Aria, Ark
- Components: All 174 components
- Examples: All 1,103 examples
- Charts: All 70 charts
- React hooks: All 35 hooks
- Icons: 294k+ icons
- DESIGN.md files: All 500 brands
- Theme builder: 8 styles ร 18 colors
- Support: Standard
Team
Most popularFor freelancers, agencies & startups
$66instead of $99/mo
$789 billed yearly ยท โ $13/dev/mo
- Seats: Up to 5 seats
- Commercial use: Included
- Blocks: All 6,181 blocks
- Templates: All 14 templates
- MCP server: 38 AI clients
- Animated buttons: All 35 buttons
- Text effects: All 97 effects
- Backgrounds: All 100 backgrounds
- Shaders: All 100 shaders
- Frameworks: React, Vue, Svelte, Solid
- UI libraries: Base UI, Radix, Aria, Ark
- Components: All 174 components
- Examples: All 1,103 examples
- Charts: All 70 charts
- React hooks: All 35 hooks
- Icons: 294k+ icons
- DESIGN.md files: All 500 brands
- Theme builder: 8 styles ร 18 colors
- Support: Priority
Organization
For companies with larger teams
$132instead of $199/mo
$1,589 billed yearly
- Seats: Unlimited seats
- Commercial use: Included
- Blocks: All 6,181 blocks
- Templates: All 14 templates
- MCP server: 38 AI clients
- Animated buttons: All 35 buttons
- Text effects: All 97 effects
- Backgrounds: All 100 backgrounds
- Shaders: All 100 shaders
- Frameworks: React, Vue, Svelte, Solid
- UI libraries: Base UI, Radix, Aria, Ark
- Components: All 174 components
- Examples: All 1,103 examples
- Charts: All 70 charts
- React hooks: All 35 hooks
- Icons: 294k+ icons
- DESIGN.md files: All 500 brands
- Theme builder: 8 styles ร 18 colors
- Support: Priority
Billed once a year in USD. Cancel anytime.
Individual
For personal projects & open source
$32instead of $49/mo
$389 billed yearly
- How many people can use the license.Seats: 1 seat
- Client work, SaaS products and anything you charge for.Commercial use: Personal & open source only
- Page sections in 56 categories, from heroes and pricing tables to dashboards and settings, on every framework and UI library, in your theme.Blocks: All 6,181 blocks
- Complete Next.js sites for startups, SaaS, agencies and portfolios, every page designed, ready to ship.Templates: All 14 templates
- Your AI agent searches, previews and installs any component, block, icon or DESIGN.md from a prompt: 22 tools in Claude Code, Cursor, VS Code and 35 more clients.MCP server: 38 AI clients
- Buttons with motion and states of their own, from an arrow that slides in to a burst of confetti.Animated buttons: All 35 buttons
- Typewriters, scrambles, counters and more, for headlines, labels and numbers.Text effects: All 97 effects
- Animated backgrounds for heroes, sections and cards, from a soft aurora to a flock that flees the cursor. Most are pure CSS.Backgrounds: All 100 backgrounds
- WebGPU shaders, from a slow aurora to a black hole, each drawing only while it's on screen.Shaders: All 100 shaders
- One design and one theme on all four: the components, blocks and effects are built for each framework.Frameworks: React, Vue, Svelte, Solid
- React on Base UI, Radix UI, React Aria or Ark UI: install the version for the library your project already uses. Vue, Svelte and Solid run on Ark UI.UI libraries: Base UI, Radix, Aria, Ark
- From a button to a date picker, a color picker or a guided tour: accessible, typed in TypeScript, each with live demos.Components: All 174 components
- Real-world patterns built from the components, in 53 galleries: forms, tables, menus, dialogs and more.Examples: All 1,103 examples
- Area, bar, line, pie, radar and radial charts on TanStack Charts, on every framework. React also gets the Recharts originals.Charts: All 70 charts
- Debounce, local storage, media queries and more: each hook is one typed file you own.React hooks: All 35 hooks
- From 222 libraries, Lucide, Heroicons, Tabler and Material Symbols among them, as SVG or a React component in one command.Icons: 294k+ icons
- Stripe, Linear, Apple and 497 more: a brand's colors, typography and components in one file your AI agent builds from.DESIGN.md files: All 500 brands
- Restyle every component and block at once: 8 styles, 8 grays, 18 colors and 5 radii, shared as a shadcn preset code.Theme builder: 8 styles ร 18 colors
- Priority requests are answered first.Support: Standard
Team
Most popularFor freelancers, agencies & startups
$66instead of $99/mo
$789 billed yearly ยท โ $13/dev/mo
Everything in Individual, plus
- How many people can use the license.Seats: Up to 5 seats
- Client work, SaaS products and anything you charge for.Commercial use: Included
- Priority requests are answered first.Support: Priority
Organization
For companies with larger teams
$132instead of $199/mo
$1,589 billed yearly
Everything in Team, plus
- How many people can use the license.Seats: Unlimited seats
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Frequently asked questions
The shadcn MCP in Pi: setup, limits, and the rest.
Using another agent too?
The same URL works in every MCP client: use it beside Pi, in your editor, your terminal or your chat app.
4.9 out of 5 from 150+ developers
Put the registry in Pi's toolbox
Components, 6,181 blocks and 294k icons as tools Pi calls from your terminal, with any Pro plan.
- Cancel anytime
- Keep what you've shipped