Skip to content

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.

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

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

  3. Merge it under augment.advanced

    mcpServers is an array: if it already lists servers, add the shadcnio object beside them instead of replacing the list. Save; npx needs Node.js installed.

  4. Find shadcnio in Augment's Settings

    From the menu at the top right of the Augment panel, open Settings. The MCP section should list shadcnio with 22 tools; if it doesn't, run Developer: Reload Window.

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

settings.json
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:

{
  "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.

Three ways in, by where you use Augment
WhereHow to add shadcnioConnects over
VS Code, settings.jsonMerge the block above into augment.advancedstdio through mcp-remote (needs Node.js)
VS Code or JetBrains, Settings panelMCP section, + Add remote MCP: HTTP, name shadcnio, your MCP URLHTTP, direct
Auggie CLIauggie mcp add shadcnio --transport http --url "YOUR_MCP_URL", saved to ~/.augment/settings.jsonHTTP, 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.

  1. Open the menu at the top right of the Augment panel and choose Settings (in JetBrains, the gear icon).
  2. In the MCP section, find shadcnio with its 22 tools.
  3. For Auggie, auggie mcp list prints each configured server with its status.
  4. 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.
Prompt
use shadcnio to show the email and plan behind my token

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.

Your agent
  1. shadcn.io MCP connected · 22 tools
  2. You: Replace the inline SVG icons across the app with Lucide.
  3. Agent step: Searched the codebase with the Context EngineReturns: 31 inline SVGs in 12 files, lucide-react installed
  4. MCP call: search_icons({ library: "lucide", queries: ["chevron down", "delete", "edit", "open in new tab"] })Returns: chevron-down, trash-2, pencil, external-link
  5. MCP call: get_icon({ library: "lucide", names: ["chevron-down", "trash-2", "pencil", "external-link"] })Returns: One import from lucide-react, nothing to add
  6. Agent step: Edited 12 files, checkpointing as it wentReturns: Every inline SVG replaced, sizes kept
  7. Your agent: All 31 inline SVGs now come from lucide-react, and the checkpoints let you roll back any file.

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.

01
use shadcnio to fix ENG-311, the empty state for a project with no deployments yet
02
use shadcnio to swap the hand-rolled modals in src/features for Dialog, keeping what each one shows
03
use shadcnio to plan a changelog page from blocks and build it under app/changelog
04
use shadcnio to read the Combobox API before you change the country picker
05
use shadcnio to add a CSV-only upload dropzone to the import screen
06
use shadcnio to restyle the app after Supabase's DESIGN.md, starting with the color tokens
07
use shadcnio to add a range calendar to the report filters in apps/admin, which is a Vue app
08
use shadcnio to show loading skeletons on the dashboard cards while their data arrives

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 runs npx shadcn add unasked too.

  • A rule that attaches itself

    Save a workspace rule in .augment/rules/ with the type agent_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-tool and execute-tool, so only the tools a task needs get loaded. Flip it on in the MCP section of Settings, or in settings.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. No npx to launch, and remote servers follow your proxy (HTTP_PROXY in 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 /mcp in a session shows its status and auggie --print runs 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.md and CLAUDE.md from the folder of the file it's editing and from each parent up to the root. In a monorepo, a line in apps/web/AGENTS.md sends 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.

shadcnio never appears in the MCP section after you save settings.json.
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.
On Windows, the server is listed but never starts.
npx can't be spawned directly there: set command to cmd and 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.
shadcnio is configured twice, say in settings.json and 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. An agent_requested rule 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.

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