shadcn/ui in Augment's Agent
Add the server and Augment's Agent can match what it knows about your codebase with the live registry, so it picks the right component and installs it. It's included with Pro.
- Kind
- Extension
- Goes in
settings.json- Connects
- Through mcp-remote
- Team config
- No
Add it to Augment in VS Code
The block beside these steps goes in VS Code's user settings.json; signed in with Pro, it already ends with your MCP URL. JetBrains and Auggie take the same URL, as the table shows.
Copy the settings block
Your MCP URL, token included, is the last argument passed to
mcp-remote. No token yet? Create one on your account.Open your user settings.json
In VS Code press
⇧⌘P(Ctrl+Shift+P) and run Preferences: Open User Settings (JSON). Use the user file, not.vscode/settings.json, which repos often commit.Merge it under augment.advanced
mcpServersis an array: if it already lists servers, add theshadcnioobject beside them instead of replacing the list. Save;npxneeds Node.js installed.Find shadcnio in Augment's Settings
From the menu at the top right of the Augment panel, open Settings. The MCP section should list
shadcniowith 22 tools; if it doesn't, run Developer: Reload Window.Ask in an Agent mode
Pick an Agent mode in the input box's dropdown and begin with
use shadcnio…the first few times, so the agent turns to the registry.
How it reads, with YOUR_TOKEN where your token goes:
{ "augment.advanced": { "mcpServers": [ { "name": "shadcnio", "args": [ "-y", "mcp-remote", "https://www.shadcn.io/api/mcp?token=YOUR_TOKEN" ], "command": "npx" } ] } }
Kept in your user settings.json, it travels with Settings Sync but stays out of every repo. Your token is a key: regenerate it if it ever leaks.
| Where | How to add shadcnio | Connects over |
|---|---|---|
VS Code, settings.json | Merge the block above into augment.advanced | stdio through mcp-remote (needs Node.js) |
| VS Code or JetBrains, Settings panel | MCP section, + Add remote MCP: HTTP, name shadcnio, your MCP URL | HTTP, direct |
| Auggie CLI | auggie mcp add shadcnio --transport http --url "YOUR_MCP_URL", saved to ~/.augment/settings.json | HTTP, direct |
See it in Augment's MCP list
Augment's Settings has an MCP section that lists each server with its tools: shadcnio there with 22 tools means it's connected.
- Open the menu at the top right of the Augment panel and choose Settings (in JetBrains, the gear icon).
- In the MCP section, find
shadcniowith its 22 tools. - For Auggie,
auggie mcp listprints each configured server with its status. - Switch to an Agent mode and send the prompt below. Augment pauses on
whoami: press play, and it replies with your email, your plan and the calls left this minute.
Three jobs for Augment's Agent
A codebase-wide sweep in VS Code, a Svelte change from Auggie and a Linear issue: the prompt, the calls Augment makes and what lands. Turn the MCP off to compare.
- shadcn.io MCP connected · 22 tools
Agent step: Searched the codebase with the Context EngineReturns: 31 inline SVGs in 12 files, lucide-react installedMCP call: search_icons({ library: "lucide", queries: ["chevron down", "delete", "edit", "open in new tab"] })Returns: chevron-down, trash-2, pencil, external-linkMCP call: get_icon({ library: "lucide", names: ["chevron-down", "trash-2", "pencil", "external-link"] })Returns: One import from lucide-react, nothing to addAgent step: Edited 12 files, checkpointing as it wentReturns: Every inline SVG replaced, sizes kept
In your project
Lucide icons
- Real Lucide names, checked before import
- Twelve files changed, each one revertible
1 prompt → 2 MCP calls
Prompts for Augment Agent
Send one in an Agent mode, or hand it to auggie. Opening with use shadcnio steers the agent to the registry rather than its training data.
What helps in Augment
Augment's approvals, rules, tool search and CLI, tuned for a server that only reads.
Press play, or switch to Agent Auto
In Agent, Augment stops before each MCP call and each terminal command until you press play, or
⌘⇧Enter(Allow Tool). Every shadcnio tool only reads, so Agent Auto, toggled with⌘., is a fair way to stop clicking; note it runsnpx shadcn addunasked too.A rule that attaches itself
Save a workspace rule in
.augment/rules/with the typeagent_requested. Augment attaches it when a task matches its description, so UI work gets the instruction and other prompts don't carry it.--- type: agent_requested description: Building or changing UI components, pages, forms or icons --- Look in the shadcnio MCP before writing any component, block or icon, and install with the command it gives.
Several servers? Turn on Tool Search
By default every MCP tool, shadcnio's 22 included, sits in the agent's context before you type. MCP Tool Search swaps them for
find-toolandexecute-tool, so only the tools a task needs get loaded. Flip it on in the MCP section of Settings, or insettings.json.{ "augment.mcp.enableToolSearch": true }
Skip Node with a remote server
+ Add remote MCP in the MCP section connects over HTTP: choose HTTP, name it
shadcnio, paste your MCP URL. Nonpxto launch, and remote servers follow your proxy (HTTP_PROXYin VS Code, the IDE's proxy settings in JetBrains).The same server in Auggie
Auggie keeps its servers in
~/.augment/settings.json. Add shadcnio there once, then/mcpin a session shows its status andauggie --printruns in your scripts can call it.$ auggie mcp add shadcnio --transport http --url "YOUR_MCP_URL"
Scope it to one app with AGENTS.md
Augment reads
AGENTS.mdandCLAUDE.mdfrom the folder of the file it's editing and from each parent up to the root. In a monorepo, a line inapps/web/AGENTS.mdsends UI work there to shadcnio and leaves your API packages alone.UI in this app comes from the shadcnio MCP: check it for a component or block before writing one.
If Augment can't reach shadcnio
What Augment shows, and the fix. The Augment output channel (View, Output) holds the server's log; the troubleshooting guide covers every client.
shadcnionever appears in the MCP section after you savesettings.json.- Check the shape:
mcpServerssits insideaugment.advancedand holds an array, so one missing bracket or comma breaks it. Fix the JSON, then run Developer: Reload Window. - On Windows, the server is listed but never starts.
npxcan't be spawned directly there: setcommandtocmdand put"/c", "npx"before the other arguments. Or leave Node out entirely and add the server with + Add remote MCP.- Augment says the server is disabled because of duplicate server names.
shadcniois configured twice, say insettings.jsonand again from + Add remote MCP. Keep one: delete the other from the array, or from its···menu in Settings.- The agent's shadcnio calls come back with 401.
- The URL carries a token that's missing or was regenerated after you copied it. Copy the config here again, then replace the URL in
args, or in the remote entry through its···menu, Edit. - Every call returns 403, though the server shows as connected.
- Augment connected and the token was accepted, but the shadcn.io account it belongs to isn't on Pro anymore. Renew Pro and the next Agent call succeeds with the same entry: nothing to change in Augment.
- The agent writes a component itself and never calls shadcnio.
- Check the input box is on an Agent mode, then open the prompt with
use shadcnio. Anagent_requestedrule in.augment/rules/makes that the default for UI tasks.
Get the MCP for Augment Code 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 Augment Code: setup, limits, and the rest.
That's how the Augment extension defines its augment.advanced.mcpServers setting: an array of entries, each carrying its own name, command and args. Most other clients key servers by name inside an object, so a config copied from one of them won't fit as is. If the array already holds servers, add the shadcnio entry beside them.
Only for the settings.json entry, which launches mcp-remote with npx to bridge Augment's local process to the hosted server. Add it with + Add remote MCP in the Settings panel, or with auggie mcp add --transport http, and Augment speaks HTTP to the server directly, with no Node involved.
The JetBrains plugin doesn't read VS Code's settings.json. Click the gear icon in the Augment panel, go to the MCP section and use + Add remote MCP with HTTP, the name shadcnio and your MCP URL.
Add it to Auggie on its own: the CLI reads MCP servers from ~/.augment/settings.json, which auggie mcp add writes for you. Run /mcp inside a session, or auggie mcp list from your shell, to see its status.
The requirement sits on the shadcn.io side: the tools answer only for a token whose account has Pro. Add the server in Augment's MCP section, then ask for whoami to see the account and plan the connection uses.
In Agent, yes: it pauses before each call to an external tool until you press play or Cmd+Shift+Enter. In Agent Auto the calls go through without a stop, which is safe here because none of the 22 tools writes anything. Bear in mind Agent Auto also runs the npx shadcn add that follows without asking, and that command does change your project.
The Context Engine knows your code: where the old dropdown is used, which props your forms pass, how your folders are laid out. It doesn't know what the shadcn.io registry holds today. The MCP supplies that half, the component for your framework and base, its real API, the block or icon that fits and the command that installs it, so the agent stops relying on training data.
The tools answer for whichever framework the agent passes, and the agent reads it from the package.json of the app it's editing, so name that app in your prompt. For React you get one npx shadcn add command. For Vue, Svelte or Solid you get every file with its path and the packages to add, and Augment writes them.
Save a workspace rule in .augment/rules/ with the type agent_requested and a description such as building or changing UI. Augment attaches it when a task matches the description, so UI work gets the instruction to check shadcnio first and other prompts don't carry it.
By default every MCP tool sits in the agent's context before you type. Turn on MCP Tool Search, in the MCP section of Settings or with augment.mcp.enableToolSearch in settings.json, and Augment swaps them for find-tool and execute-tool, loading only the tools a task needs.
Each person adds shadcnio with their own URL, since the settings entry holds the token itself. What the team commits is the instruction: a rule in .augment/rules/ or a line in AGENTS.md. A shadcn.io Team or Organization plan gives every member Pro access and a token of their own.
Augment reads AGENTS.md and CLAUDE.md from the folder of the file it's editing and from each parent up to the root. A line in apps/web/AGENTS.md sends UI work in that app to shadcnio and leaves your API packages alone.
It sits in plain text inside the URL, like any key kept in an editor setting. User settings stay out of your repositories, but Settings Sync copies them to your other machines, and a workspace .vscode/settings.json is often committed, so never put it there. If it leaks, regenerate it on your shadcn.io account page and paste the new URL into the entry.
Only the tool calls, such as which component you want or what you typed in a search. Your files and code stay on your machine, where Augment reads them, and every shadcnio tool only reads from the registry, so it can't change your project.
Check the shape: mcpServers sits inside augment.advanced and holds an array, so one missing bracket or comma breaks it. Fix the JSON, then run Developer: Reload Window.
npx can't be spawned directly there. Set command to cmd and put /c and npx before the other arguments, or leave Node out entirely and add the server with + Add remote MCP.
401 means the URL's token is missing or was regenerated after you copied it: replace the URL in args, or edit the remote entry from its menu. 403 means the account is no longer on Pro, and the same entry works once it is renewed. 429 means this token sent more than 600 calls in a minute.
Using another agent too?
The same URL works in every MCP client: use it beside Augment Code, in your editor, your terminal or your chat app.
4.9 out of 5 from 150+ developers
Put the registry in Augment's Agent
Every component, 6,231 blocks and 294k icons for Augment in VS Code, JetBrains and Auggie, with any Pro plan.
Get Pro