shadcn/ui for your OpenClaw agent
Save the server on your Gateway once and the agent you message on Telegram, Slack or WhatsApp can find components and install them in your repo. It needs Pro, and one token covers every channel.
- Kind
- Terminal agent
- Goes in
Terminal- Connects
- Over HTTP
- Team config
- No
Save it on your Gateway
One command saves the server on your Gateway, for every channel your agent answers on. Signed in with Pro, the command beside these steps already holds your token.
Copy your openclaw command
Signed in with Pro, the
--urlin that command already ends in your token. No token yet? Create one on your account.Stop the Gateway, then run it
CLI changes to saved servers need the Gateway stopped:
openclaw gateway stop, paste the command, thenopenclaw gateway start.openclaw mcp addconnects before it saves, so a bad URL fails here, not in a chat.Or add it in Settings → MCP
With the Gateway running, open the Control UI (
openclaw dashboard), choose Add server, name itshadcnio, pick Streamable HTTP and paste the URL.Message your agent
From any channel the agent answers on, start with the server's name (
use shadcnio…) the first few times, so it reaches for the tools before its memory.
How it reads, with YOUR_TOKEN where your token goes:
$ openclaw mcp add shadcnio --url "https://www.shadcn.io/api/mcp?token=YOUR_TOKEN" --transport streamable-http
Saved under mcp.servers.shadcnio in ~/.openclaw/openclaw.json, with the token in its URL. If that token ever leaks, regenerate it and copy the command again.
| Where | How | The Gateway |
|---|---|---|
| Terminal | openclaw mcp add, the command beside these steps | Stopped while it saves |
| Control UI | Settings → MCP → Add server, Streamable HTTP | Running |
| Chat composer | + → Connectors → Add MCP server… (administrators only) | Running |
| Config file | mcp.servers.shadcnio in ~/.openclaw/openclaw.json | Running: applied without a restart |
See it answer
Settings → MCP in the Control UI lists each saved server with its transport and an enable switch; only a probe proves it answers.
- With the Gateway stopped,
openclaw mcp doctor shadcnio --probechecks the saved entry, connects and lists the server's 22 tools. - Start it again and run
openclaw dashboard:shadcniosits under Settings → MCP, enabled, on Streamable HTTP. - In a Control UI chat, + → Connectors → Tool access shows its tools for that session.
- Send the prompt below from any channel: OpenClaw calls
whoamiand replies with your account and the calls left this minute.
What it looks like from a chat app
Three messages sent from a phone, start to finish: the calls OpenClaw makes, and what lands on the Gateway's machine. Turn the MCP off to see the same message answered from memory.
- shadcn.io MCP connected · 22 tools
Agent step: Read ~/code/roastery/package.jsonReturns: Next.js, @base-ui/react, pnpmMCP call: plan_page({ brief: "landing page for a coffee subscription", sections: ["hero", "features", "pricing", "faq", "footer"] })Returns: A pick per section, pricing-gift-subscription for the plansMCP call: get_block({ names: ["hero-centered-trusted-logos", "features-bento-grid", "pricing-gift-subscription", "faq-accordion", "footer-columns"], include: ["install"] })Returns: One shadcn add command for all fiveAgent step: Ran pnpm dlx shadcn addReturns: The five blocks and the components they use
In your project
Landing page
- Five sections from one plan
- One install for all of them
1 prompt → 2 MCP calls
Messages to start with
Paste one into WhatsApp, Telegram, Slack or the Control UI chat. Starting with the server's name steers OpenClaw to its tools.
How OpenClaw handles the server
The parts of OpenClaw that decide what the agent sees: its cap on server guidance, workspace files, tool policy and approvals.
One line in AGENTS.md
The agent reads
AGENTS.mdat the start of every session, and its## Toolssection is where tool conventions go. Edit it in Settings → Agents → Files.## Tools - UI: use the shadcnio MCP. Search before writing a component, and run the install it returns.
Guidance stops at 2,000 characters
OpenClaw passes its own agent only the first 2,000 characters of a server's instructions. The shadcnio part on blocks, brand designs and icons falls past that, so ask for them by name:
search_blocks,plan_page,get_design,search_icons.Prompts and resources, as tools
Chat apps have no slash menu, so OpenClaw adds
prompts_list,prompts_get,resources_listandresources_readfor the server. Ask for the shadcniopageprompt, or Stripe's DESIGN.md resource, in plain words.Let sandboxed sessions see it
Sandboxed sessions drop MCP tools unless the sandbox tool list allows them, and the
minimalprofile hides them everywhere. Allow the server's glob:{ "tools": { "sandbox": { "tools": { "alsoAllow": ["shadcnio__*"] } } } }
Move the token to a header
Drop
?token=from the URL and send anAuthorizationheader that readsSHADCNIO_TOKEN, set in~/.openclaw/.env.openclaw mcp doctorwarns about a literal secret in a header, not about a reference.{ "mcp": { "servers": { "shadcnio": { "headers": { "Authorization": "Bearer ${SHADCNIO_TOKEN}" } } } } }
Codex runs, approved once
On a Codex runtime with a guarded or read-only posture, MCP calls can ask each time. All 22 tools only read, so approve the server once, with the Gateway stopped; the installs it runs still follow your exec approvals.
$ openclaw mcp configure shadcnio --approval approve
When the agent can't reach it
What OpenClaw reports, and the fix. Every client's failures are in the troubleshooting guide.
openclaw mcp addrefuses and asks you to stop the Gateway.- Saved-server changes from the CLI need OpenClaw's state to themselves. Run
openclaw gateway stop, the command again, thenopenclaw gateway start; or add it under Settings → MCP while it runs. - The probe or the Gateway log says
authentication refused (401). - The token in the URL is missing, or was regenerated since you saved it. Copy the command from this page again, run
openclaw mcp unset shadcnio, and add it anew. - Calls to shadcnio come back with 403.
- shadcn.io knows the token, yet the plan behind it has lapsed. Renew Pro on that account and the server saved on your Gateway answers again, with no openclaw command to rerun.
- An entry written by hand, or saved as SSE, never connects.
- Check its transport. With none set, OpenClaw uses SSE, and the shadcn.io server speaks Streamable HTTP: keep
--transport streamable-http, or settransport: "streamable-http"in the entry. - The probe lists the tools, but a sandboxed session sees none.
- Sandboxed sessions filter MCP tools unless
tools.sandbox.toolsallowsbundle-mcporshadcnio__*, and theminimalprofile hides them everywhere.openclaw doctorpoints out the sandbox case. - The agent writes the UI from memory instead.
- Name the server (
use shadcnio…), and the tool for blocks, designs and icons: they fall past the guidance OpenClaw passes on. A line under## ToolsinAGENTS.mdmakes it stick.
Get the MCP for OpenClaw 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.
- 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 OpenClaw: setup, limits, and the rest.
Commands that change saved servers need OpenClaw's state to themselves, so they refuse while a local Gateway owns it. Run openclaw gateway stop, add the server, then openclaw gateway start. To skip the restart, add it from Settings, MCP in the Control UI instead.
Streamable HTTP. With no transport set, OpenClaw falls back to SSE, which the shadcn.io server doesn't speak, so keep --transport streamable-http on the command or set transport to streamable-http in a hand-written entry.
Yes. With the Gateway running, open the Control UI with openclaw dashboard, choose Add server in Settings, MCP, name it shadcnio, pick Streamable HTTP and paste the URL. Administrators can also use the chat composer's Connectors menu, or edit mcp.servers.shadcnio in the config file.
Yes. The server is saved on the Gateway, so every channel that reaches your agent gets the same tools.
No. The server brings the tools and the registry; the instructions are separate. One line in the Tools section of AGENTS.md is enough for most UI messages.
Yes. The agent reads the project's package.json and asks for that framework. A React install is one shadcn command it runs in the shell; for Vue, Svelte and Solid, get_install_plan returns every file with its path and the packages, and the agent writes them with its file tools.
Any model that calls tools can use the server. The server is remote, so the Gateway still needs to reach shadcn.io even when the model runs on your machine. With a smaller model, naming the server and the tool in your message helps.
Anyone whose messages reach an agent with these tools can make it call them, on your token and within its 600 calls a minute. Every tool only reads the registry, so the cost is spent calls rather than changes, but keep such an agent to people you trust.
Sandboxed sessions drop MCP tools unless the sandbox tool list allows them, and the minimal profile hides them everywhere. Add shadcnio__* to tools.sandbox.tools.alsoAllow in the config. openclaw doctor points out the sandbox case.
It can, on a guarded or read-only posture. All of the server's tools only read, so approve it once with openclaw mcp configure shadcnio --approval approve, with the Gateway stopped. Installs the agent runs still follow your exec approvals.
Under mcp.servers.shadcnio in ~/.openclaw/openclaw.json. The token sits in the URL as you pasted it. To keep it out of that file, send it as an Authorization header that reads SHADCNIO_TOKEN, set in ~/.openclaw/.env.
Only the tool calls: names and inputs such as a component, a framework or a search phrase. Your chats, channels and repo stay with OpenClaw and the Gateway's machine, and every shadcnio tool only reads from the registry.
A 401 means the token in the URL is missing or was regenerated: copy the command again, run openclaw mcp unset shadcnio and add it anew. A 403 means the token is known but the Pro plan has lapsed. A 429 means the Gateway sent over 600 calls in one minute on this token, so hold off until Retry-After passes.
Name the server in your message, and the tool for blocks, designs and icons, because OpenClaw passes its own agent only the first 2,000 characters of a server's guidance. A line under Tools in AGENTS.md makes it stick.
Using another agent too?
The same URL works in every MCP client: use it beside OpenClaw, in your editor, your terminal or your chat app.
4.9 out of 5 from 150+ developers
Give your OpenClaw agent the registry
Message your agent for a component, a block or an icon from any channel, with 6,231 blocks to pick from: in every Pro plan.
Get Pro