shadcn/ui in Zencoder's agent
Add a custom MCP from Agent Tools and Zencoder's Coding Agent can find components, blocks and icons and install them, in VS Code or JetBrains. It needs shadcn.io Pro, separate from Zencoder's own Pro.
- Kind
- Extension
- Goes in
Agent tools → Add custom MCP- Connects
- Through mcp-remote
- Team config
- No
- Its docs
- None
Add it from Agent Tools
One custom MCP, pasted once in each IDE you use. Signed in with Pro, the config beside these steps already carries your MCP URL.
Copy the config
It's the flat shape Zencoder's form expects:
npxstartsmcp-remote, which forwards each call to your MCP URL, token included. No token yet? Create one on your account.Open Agent Tools
In the Zencoder panel, click the ⋮ menu at the top right and pick Agent Tools. The menu is the same in VS Code and in JetBrains IDEs.
Add a custom MCP named shadcnio
Click Add Custom MCP, type
shadcnioin the name field, paste the config, and press Install at the top of the form.Answer the first permission prompt
Pick the Coding Agent (
Cmd+.orCtrl+.) and ask for a component. Zencoder asks before it runs an MCP tool: Always allow suits these, since all 22 only read.
How it reads, with YOUR_TOKEN where your token goes:
{ "args": [ "-y", "mcp-remote", "https://www.shadcn.io/api/mcp?token=YOUR_TOKEN" ], "command": "npx" }
Node.js must be installed: Zencoder runs npx to start mcp-remote the first time. Your token sits in the URL, so regenerate it if the config is ever shared by mistake.
| Where | What goes there | Then |
|---|---|---|
| ⋮ → Agent Tools → Add Custom MCP | The config as shown, with shadcnio in the name field | Click Install |
| VS Code: ⋮ → Settings → Edit in settings.json | The config under "zencoder.mcpServers", keyed "shadcnio" | Save the file |
| JetBrains: Settings → Tools → Zencoder → MCP Servers | The config wrapped in { "shadcnio": … } | Click Apply, then reopen the project |
Make sure it's listed
Agent Tools lists what you've added under its Custom tab, and Zencoder asks before an agent first runs one of its tools.
- Open ⋮ → Agent Tools and switch to the Custom tab.
- Find
shadcnioin the list; click it to see its name and config, or to Uninstall it. - Start a new chat (
Cmd+LorCtrl+L) with the Coding Agent and send the prompt below. - Allow the
whoamicall: the reply names your account and how many calls you have left this minute.
Three tasks in the Zencoder chat
A Jira ticket, a mockup and the file open in your editor: the prompt, the calls the Coding Agent makes, and what lands. Turn the MCP off to compare.
- shadcn.io MCP connected · 22 tools
Agent step: Read @Jira WEB-412Returns: Cmd+K, search projects, recent pages firstMCP call: search_blocks({ query: "command menu to switch projects", category: "command-menu" })Returns: command-menu-project, command-menu-recent and moreMCP call: get_block({ name: "command-menu-project", include: ["install"] })Returns: The block's npx shadcn add, with your token attachedAgent step: Ran npx shadcn add (allowed in the chat)Returns: The block and the components it uses
In your project
Command menu
- Arrow keys, Enter and Escape handled
- Your projects in place of the sample list
1 prompt → 2 MCP calls
Prompts for the Zencoder chat
Paste one into a chat with the Coding Agent. Opening with use shadcnio points it at the server instead of its training data.
What helps in Zencoder
Permissions, agents, instructions and logs: the parts of Zencoder that decide how well the MCP works.
Trust its tools once
Zencoder asks before an agent runs an MCP tool: Allow once, Always allow or Deny. Every shadcnio tool only reads the registry, so Always allow is safe, and trusted tools can be managed later in Zencoder's settings.
Switch it on for custom agents
The Coding Agent gets every MCP you install. A custom Zen agent starts without them: open it from ⋮ → Agents and switch on the shadcnio tools in its Tools section.
One line in AGENTS.md
Zencoder reads
AGENTS.mdfor project conventions; it replaced the old custom rules. One line there, and you can stop naming the server in each prompt.UI work: search the shadcnio MCP before writing a component, section or icon, and install with the command it returns.
JetBrains can skip mcp-remote
JetBrains IDEs speak streamable HTTP, so under Settings → Tools → Zencoder → MCP Servers a
urlentry connects without Node.js. Use the URL from the config'sargs. VS Code keeps thenpxconfig while Zencoder rolls HTTP out there.{ "shadcnio": { "url": "YOUR_MCP_URL" } }
Start from a ticket or a mockup
Mention
@Jirafor a ticket's acceptance criteria, or drop a screenshot into the chat. Zencoder reads either one, then shadcnio finds the blocks and components that build it.Every call in the logs panel
Zencoder's logs panel records each MCP call with its inputs, output and duration. When a result looks thin, check which
includesections the agent asked for, and ask again for the ones it skipped.
When shadcnio won't start
What Zencoder shows, and the fix. Issues common to every client are in the troubleshooting guide.
- Install fails, or the form rejects the pasted config.
- Paste it flat,
commandandargsonly, withshadcnioin the name field. A config wrapped inmcpServersfrom another editor won't fit the form; in VS Code's settings.json, the entry goes underzencoder.mcpServersinstead. shadcniois installed, but its tools never show up.npxhas to be on your PATH: install Node.js, then restart the IDE. The Zencoder output panel in VS Code, or the Log tool window in JetBrains, shows whatmcp-remoteprinted when it stopped.- On Windows, the server won't start at all.
- Start
npxthroughcmd: setcommandtocmdand beginargswith/candnpx, then-y,mcp-remoteand your URL. MCP clients has the full entry. - Tool calls come back with 401.
- The token in the URL is missing or was regenerated. Copy the config again from your dashboard, open
shadcnioin Agent Tools and paste the new config over the old one. - Tool calls come back with 403.
- Your token is valid, but the shadcn.io account has no active Pro plan. Renew it and the same config works again; Zencoder's own plan has no part in it.
- The agent answers from memory and never asks to run a shadcnio tool.
- Check the chat uses the Coding Agent, or a custom agent with the shadcnio tools switched on, then open the prompt with
use shadcnio. A line inAGENTS.mdmakes that the default.
Get the MCP for Zencoder 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 Zencoder: setup, limits, and the rest.
Zencoder's VS Code plugin connects to MCP servers over stdio, with HTTP still rolling out there, so the config starts mcp-remote with npx: a small bridge that runs on your machine and forwards each call to your MCP URL. That's why Node.js has to be installed. JetBrains IDEs support streamable HTTP, so there a url entry works without it.
Installed from Agent Tools, it shows up under the Custom tab. Added by hand, it lives in VS Code's settings.json under zencoder.mcpServers, or in JetBrains under Settings, Tools, Zencoder, MCP Servers, where the config is wrapped in an object keyed shadcnio.
Yes. JetBrains IDEs speak streamable HTTP, so under Settings, Tools, Zencoder, MCP Servers a url entry holding your MCP URL connects with no Node.js. VS Code keeps the npx config while Zencoder rolls HTTP out there.
Custom agents start with only the tools you give them. Open the agent from the Agents menu and turn on the shadcnio tools in its Tools section. The built-in Coding Agent picks up every installed MCP on its own.
Yes, for this server. All 22 tools only read the shadcn.io registry, and none of them touches your files. What changes your project is the agent's own work afterwards, like running npx shadcn add, and that goes through Zencoder's usual command confirmation unless Auto-approve mode is on.
Yes. The agent reads your package.json, and the tools answer for Vue, Svelte or Solid. In place of one shadcn command, the server returns every file with its path and the packages to add, and Zencoder's file editor writes them.
Yes. Mention @Jira for a ticket's acceptance criteria, or drop a screenshot into the chat. Zencoder reads either one, then shadcnio finds the blocks and components that build it, and the logs panel shows each call with its inputs and output.
No. Zencoder's plan pays for Zencoder; the shadcnio MCP needs a shadcn.io Pro plan on the account behind your token. The two are billed separately, and neither includes the other.
The calls themselves go to shadcn.io and count against its limit of 600 a minute per token, not against Zencoder. What a tool returns joins the model's context, so asking for install and usage rather than full source keeps a request lighter.
Not as one shared file: the config carries a personal token, so each teammate adds shadcnio from Agent Tools with their own URL. With a shadcn.io Team or Organization plan every seat is Pro, so each one has a token of its own. AGENTS.md, which you can commit, is where shared instructions for using it belong.
The token sits in plain text inside the URL, like any key in an editor setting. Keep it in your user settings rather than a workspace file you commit, and if it leaks, regenerate it on your account page: after that the old token no longer works here.
The server gets each call's tool name and arguments, nothing more. Your source stays in the IDE, and every tool just reads the registry. Whatever the agent changes afterwards is its own work, behind Zencoder's confirmations.
Paste it flat, command and args only, with shadcnio in the name field. A config wrapped in mcpServers from another editor won't fit the form; in VS Code's settings.json, the entry goes under zencoder.mcpServers instead.
npx has to be on your PATH: install Node.js, then restart the IDE. On Windows, start npx through cmd, with command set to cmd and args beginning with /c. The Zencoder output panel in VS Code, or the Log tool window in JetBrains, shows what mcp-remote printed.
A 401 points to a missing or regenerated token: paste a fresh config over the old one in Agent Tools. A 403 means shadcn.io finds no active Pro on the account, and Zencoder's own plan has no part in it. A 429 means the token went beyond 600 calls in a minute and the Retry-After header says when to resume.
Using another agent too?
The same URL works in every MCP client: use it beside Zencoder, in your editor, your terminal or your chat app.
4.9 out of 5 from 150+ developers
Your IDE agent, with the whole registry
Zencoder's Coding Agent gets 6,231 blocks, 294k icons and the full component catalog in VS Code and JetBrains, with shadcn.io Pro.
Get Pro