Skip to content

shadcn/ui components in Amp

Run amp mcp add once and Amp can search shadcn components, blocks and icons, then install the one it picks, in a CLI thread or an orb. Any Amp tier works with a shadcn.io Pro account.

Kind
Terminal agent
Goes in
Terminal
Connects
Over HTTP
Team config
No

Add it with amp mcp add

One amp mcp add puts the server in your user settings, for every CLI thread on this machine. Signed in with Pro, the command beside the steps already holds your URL.

  1. Copy the command

    It's amp mcp add shadcnio and your MCP URL, which carries your token, so no --header is needed. No token yet? Create one on your account.

  2. Run it in a terminal

    Amp writes shadcnio under amp.mcpServers in ~/.config/amp/settings.json and detects the transport on its own.

  3. Run amp mcp doctor

    It waits for the server to start and prints its status: connected, with its tools. Already inside a thread? Ask Amp to reload MCP.

  4. Add it on ampcode.com for orbs

    Orb threads, started from the web, the iPhone app, Linear or amp -ox, don't read local settings. Add a personal server in MCP server settings (opens in a new tab) or with amp mcp remote --personal add.

Terminal
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:

$ amp mcp add shadcnio https://www.shadcn.io/api/mcp?token=YOUR_TOKEN

amp mcp remove shadcnio takes it out again. The URL carries your token: regenerate it if it leaks, then add the server with the new one.

Where Amp can keep shadcnio
WhereAdded withThreads that get it
User settingsThe amp mcp add command on this pageEvery CLI thread on this machine, in any repo
ampcode.com, personalamp mcp remote --personal add, or MCP server settings (opens in a new tab)Every Amp client, orbs included
A skill's mcp.jsonA file beside the skill's SKILL.mdThreads that load the skill; its tools stay hidden until then
One runamp -x with --mcp-configThat run only, with nothing saved

See it connected

amp mcp doctor waits for every configured server to start, then prints its status: shadcnio should read connected, with its 22 tools named after it.

  1. Run amp mcp doctor shadcnio in any terminal.
  2. Look for connected and 22 tools. awaiting approval, blocked or an error each have a fix further down.
  3. amp tools list prints every active tool, MCP ones included: the shadcnio tools are among them.
  4. Start amp and ask the prompt below: Amp calls whoami and replies with your account, your plan and the calls left this minute.
Prompt
use shadcnio to tell me which account and plan this connection uses

Three threads with the MCP on

Three threads, start to finish: one in your terminal, one in an orb you follow from your phone, one from a Linear issue. Switch the MCP off to see the same request without it.

Your agent
  1. shadcn.io MCP connected · 22 tools
  2. You: Add a Cmd+K command menu to the dashboard that jumps between projects.
  3. Agent step: Read package.jsonReturns: Vite, React 19, @base-ui/react, bun.lock
  4. MCP call: search_components({ query: "command palette" })Returns: command, a searchable menu with a dialog form
  5. MCP call: get_component({ name: "command", include: ["install", "usage"], packageManager: "bun" })Returns: bunx shadcn add …/r/command.json, and its parts
  6. Agent step: Ran bunx shadcn add in the shellReturns: command, dialog and input-group in components/ui
  7. Your agent: The dashboard opens a command menu on Cmd+K now, listing every project with fuzzy search.

In your project

Command

  • Cmd+K opens it, arrows move, Enter jumps
  • Installed with bun, as the lockfile says

1 prompt → 2 MCP calls

Prompts for your next thread

Paste one into a thread, or dictate it. Naming the server keeps Amp on the registry rather than its memory, and an @ mention points it at the file.

01
use shadcnio to add a sheet with the order filters to @src/routes/orders.tsx for mobile
02
use shadcnio to plan a landing page for our changelog tool, install the blocks and send me a portal link
03
use shadcnio to swap the emoji in the sidebar for Tabler icons
04
use shadcnio to rebuild the invite form with TanStack Form: email, a role select and an optional note
05
use shadcnio to restyle this app after Raycast's DESIGN.md, in light and dark
06
use shadcnio to set up this SvelteKit repo for shadcn components, then add a combobox for the country field
07
use shadcnio to read Popover's positioning props before you touch the account menu
08
use shadcnio to find a kanban block for the roadmap page and wire it to our tasks API

What's different about Amp

How Amp handles servers, approvals, skills and shared threads, and what each one means for the MCP.

  • One personal server for orbs

    Orbs never see your settings file. Save the server on ampcode.com once, with MCP_ENDPOINT set to your MCP URL without ?token=…, and the token goes in from stdin, never as an argument.

    $ printf %s "$SHADCNIO_TOKEN" | amp mcp remote --personal add shadcnio "$MCP_ENDPOINT" --auth bearer --bearer-token-file -
  • No approval prompts by default

    Amp runs tools without asking, MCP ones included. All 22 of shadcnio's only read, and the install command it hands back runs like any other shell command. To confirm installs first, a plugin's tool.call handler can ask before each one.

  • A line in AGENTS.md

    Amp reads AGENTS.md from the working directory up, and ~/.config/amp/AGENTS.md in every repo. One line there, and you can stop naming the server.

    UI: look components, blocks and icons up with the shadcnio MCP before writing them, and install them with the command it returns.
  • Load it only with a skill

    Amp suggests skills over always-on servers. Put this mcp.json beside a SKILL.md in ~/.config/amp/skills/shadcn-ui/, then amp mcp remove shadcnio: the tools stay hidden until the skill loads, and includeTools trims the list.

    {
      "shadcnio": {
        "url": "YOUR_MCP_URL",
        "includeTools": ["search_*", "get_*", "plan_page"]
      }
    }
  • Read a design as a resource

    Amp reads an MCP resource you point it to. Name a brand's DESIGN.md, or a guide such as shadcnio://guide/forms, and it lands in the thread before any code is written.

    read @shadcnio:shadcnio://design/raycast, then theme the app from its tokens
  • Keep UI threads private

    Install commands carry your token, and threads in a workspace project are shared with the workspace by default. Make a repo's new CLI threads private, and check visibility before you share a link.

    $ amp threads visibility private

If Amp can't reach it

What amp mcp doctor and your threads show, and the fix for each. The troubleshooting guide covers every client.

amp mcp doctor shows shadcnio with an error and a 401.
The token in the URL is missing or out of date, usually after a regenerate. Run amp mcp remove shadcnio, copy the command on this page again and run it.
The connection fails with a 403.
The token checks out, but its account has no active Pro plan. Once Pro is renewed, the URL Amp already has works again.
A thread from the web app, the iPhone app or Linear has no shadcnio tools.
Those threads run in orbs, which don't read your settings file. Add shadcnio on ampcode.com, in MCP server settings (opens in a new tab) or with amp mcp remote --personal add.
amp mcp doctor says blocked by workspace MCP registry.
Your Enterprise workspace allows only the servers in its MCP registry. Ask an admin to add shadcnio there; settings: show managed in the command palette lists any other MCP rules they set.
amp mcp doctor says awaiting approval.
It went into .amp/settings.json through --workspace, and workspace servers wait for you: run amp mcp approve shadcnio. Keep the token out of that file if the repo is shared.
A thread opened before you ran amp mcp add doesn't see it.
Ask Amp to reload MCP: it rereads your settings and restarts the connections without leaving the thread. A new thread picks the server up too.

Get the MCP for Amp 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 Amp: setup, limits, and the rest.

4.9 out of 5 from 150+ developers

Every Amp thread, with the registry

One command for the CLI, one personal server for orbs, and Amp looks up components, blocks and icons instead of guessing them, on any Pro plan.

Get Pro