Skip to content

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.

  1. Copy the config

    It's the flat shape Zencoder's form expects: npx starts mcp-remote, which forwards each call to your MCP URL, token included. No token yet? Create one on your account.

  2. 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.

  3. Add a custom MCP named shadcnio

    Click Add Custom MCP, type shadcnio in the name field, paste the config, and press Install at the top of the form.

  4. Answer the first permission prompt

    Pick the Coding Agent (Cmd+. or Ctrl+.) and ask for a component. Zencoder asks before it runs an MCP tool: Always allow suits these, since all 22 only read.

Agent tools → Add custom MCP
Sign in to get your config
Sign in with a Pro account, and this holds your MCP URL, ready to paste.

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 the config can go
WhereWhat goes thereThen
⋮ → Agent Tools → Add Custom MCPThe config as shown, with shadcnio in the name fieldClick Install
VS Code: ⋮ → Settings → Edit in settings.jsonThe config under "zencoder.mcpServers", keyed "shadcnio"Save the file
JetBrains: Settings → Tools → Zencoder → MCP ServersThe 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.

  1. Open ⋮ → Agent Tools and switch to the Custom tab.
  2. Find shadcnio in the list; click it to see its name and config, or to Uninstall it.
  3. Start a new chat (Cmd+L or Ctrl+L) with the Coding Agent and send the prompt below.
  4. Allow the whoami call: the reply names your account and how many calls you have left this minute.
Prompt
use shadcnio to check which account I'm signed in with

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.

Your agent
  1. shadcn.io MCP connected · 22 tools
  2. You: Build what @Jira WEB-412 asks for: a Cmd+K menu to jump between projects.
  3. Agent step: Read @Jira WEB-412Returns: Cmd+K, search projects, recent pages first
  4. MCP call: search_blocks({ query: "command menu to switch projects", category: "command-menu" })Returns: command-menu-project, command-menu-recent and more
  5. MCP call: get_block({ name: "command-menu-project", include: ["install"] })Returns: The block's npx shadcn add, with your token attached
  6. Agent step: Ran npx shadcn add (allowed in the chat)Returns: The block and the components it uses
  7. Your agent: WEB-412 is done: Cmd+K opens the project menu, with recent pages listed first.

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.

01
use shadcnio to add a combobox to the country field in the file I have open
02
use shadcnio to build what @Jira WEB-318 describes, starting from a block if one fits
03
use shadcnio to rebuild the attached screenshot as a features section in our theme
04
use shadcnio to plan an admin dashboard page with stats, a recent orders table and a team list
05
use shadcnio to read the Accordion API and make the FAQ open one item at a time
06
use shadcnio to find a design system for a dark developer tool and apply its colors
07
use shadcnio to set up this Nuxt project for shadcn-vue components
08
use shadcnio to add an empty state to the projects list for when there are none yet

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.md for 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 url entry connects without Node.js. Use the URL from the config's args. VS Code keeps the npx config while Zencoder rolls HTTP out there.

    {
      "shadcnio": {
        "url": "YOUR_MCP_URL"
      }
    }
  • Start from a ticket or a mockup

    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.

  • 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 include sections 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, 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.
shadcnio is installed, but its tools never show up.
npx has 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 what mcp-remote printed when it stopped.
On Windows, the server won't start at all.
Start npx through cmd: set command to cmd and begin args with /c and npx, then -y, mcp-remote and 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 shadcnio in 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 in AGENTS.md makes 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.

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