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
- Its docs
- Amp MCP (opens in a new tab)
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.
Copy the command
It's
amp mcp add shadcnioand your MCP URL, which carries your token, so no--headeris needed. No token yet? Create one on your account.Run it in a terminal
Amp writes
shadcniounderamp.mcpServersin~/.config/amp/settings.jsonand detects the transport on its own.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.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 withamp mcp remote --personal add.
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 | Added with | Threads that get it |
|---|---|---|
| User settings | The amp mcp add command on this page | Every CLI thread on this machine, in any repo |
| ampcode.com, personal | amp mcp remote --personal add, or MCP server settings (opens in a new tab) | Every Amp client, orbs included |
A skill's mcp.json | A file beside the skill's SKILL.md | Threads that load the skill; its tools stay hidden until then |
| One run | amp -x with --mcp-config | That 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.
- Run
amp mcp doctor shadcnioin any terminal. - Look for
connectedand 22 tools.awaiting approval,blockedor an error each have a fix further down. amp tools listprints every active tool, MCP ones included: the shadcnio tools are among them.- Start
ampand ask the prompt below: Amp callswhoamiand replies with your account, your plan and the calls left this minute.
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.
- shadcn.io MCP connected · 22 tools
Agent step: Read package.jsonReturns: Vite, React 19, @base-ui/react, bun.lockMCP call: search_components({ query: "command palette" })Returns: command, a searchable menu with a dialog formMCP call: get_component({ name: "command", include: ["install", "usage"], packageManager: "bun" })Returns: bunx shadcn add …/r/command.json, and its partsAgent step: Ran bunx shadcn add in the shellReturns: command, dialog and input-group in components/ui
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.
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_ENDPOINTset 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.callhandler can ask before each one.A line in AGENTS.md
Amp reads
AGENTS.mdfrom the working directory up, and~/.config/amp/AGENTS.mdin 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.jsonbeside aSKILL.mdin~/.config/amp/skills/shadcn-ui/, thenamp mcp remove shadcnio: the tools stay hidden until the skill loads, andincludeToolstrims 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 doctorshowsshadcniowith 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 doctorsaysblocked by workspace MCP registry.- Your Enterprise workspace allows only the servers in its MCP registry. Ask an admin to add shadcnio there;
settings: show managedin the command palette lists any other MCP rules they set. amp mcp doctorsaysawaiting approval.- It went into
.amp/settings.jsonthrough--workspace, and workspace servers wait for you: runamp mcp approve shadcnio. Keep the token out of that file if the repo is shared. - A thread opened before you ran
amp mcp adddoesn'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.
Run amp mcp add shadcnio with your MCP URL in a terminal. Amp saves it under amp.mcpServers in ~/.config/amp/settings.json and detects the transport itself. Then amp mcp doctor shadcnio waits for the server to start and should print connected with its tools.
Yes. Any Amp tier works, Hobby included. The check that matters is on this side: the server only answers a token whose account has an active Pro plan.
Yes. Put an mcp.json with the shadcnio entry beside a SKILL.md in ~/.config/amp/skills/shadcn-ui/, then remove the server from your settings. Its tools stay hidden until the skill loads, and includeTools can trim the list to the search_* and get_* tools plus plan_page.
Inside the URL it saves under amp.mcpServers in ~/.config/amp/settings.json, in your home directory. It stays out of your repositories unless you pass --workspace. If it leaks, regenerate it on your account page, remove the server and add it with the new command: the old token stops working within a few minutes.
No. Amp runs tools without asking for approval, built-in and MCP alike, and that includes the npx shadcn add it runs afterwards. Every shadcnio tool only reads the registry. If you want a confirmation before installs, a plugin with a tool.call handler can ask for one.
Yes. Amp reads package.json and the server answers for that framework. A React repo gets a single shadcn add that Amp runs in its shell; in Vue, Svelte and Solid, get_install_plan returns each file with its path and the packages to add, and Amp writes the files and runs the package manager itself.
Yes. With amp -x, the --mcp-config flag adds a server for that run only, without changing your settings file. In CI, keep the MCP token in a CI secret rather than in the script.
Amp reads AGENTS.md from the working directory upward, and ~/.config/amp/AGENTS.md in every repo. One line there telling it to look components, blocks and icons up with the shadcnio MCP before writing them, and to install with the command it returns, is enough for most UI prompts.
An orb runs on its own machine and never reads ~/.config/amp/settings.json. Save shadcnio as a personal server on ampcode.com, with amp mcp remote --personal add or in MCP server settings, and every orb thread gets it. Issues you assign to Amp in Linear also run in orbs, so they need the same.
Pipe the token into amp mcp remote --personal add with --auth bearer and --bearer-token-file -, so it arrives on stdin and never as an argument. The URL you pass is your MCP URL without the ?token= part.
The URL carries one person's token, so a single shared definition would run every member's calls on that account. Give each member Pro instead, which a Team or Organization plan does, and let each add shadcnio with their own token as a personal server.
With an MCP registry allowlist in place, Amp only runs servers the registry approves, and amp mcp doctor lists shadcnio as blocked by workspace MCP registry. An admin adds it to that registry. If it still doesn't connect, settings: show managed in the command palette lists any other MCP rules the admins set.
It can. Install commands carry the token, and threads in a workspace project are shared with the workspace by default. Make UI threads private with amp threads visibility private, check visibility before you share a link, and regenerate the token if a thread ever showed it.
Only the tool calls themselves: names and inputs such as a component name, a framework or a search phrase. Your files and code stay on your machine, where Amp reads them, and every shadcnio tool only reads from the registry, so it can't change your project.
Workspace servers wait for your approval. The entry went into .amp/settings.json through --workspace, so run amp mcp approve shadcnio. Keep the token out of that file if the repository is shared.
401 means the token in the URL is missing or out of date, usually after a regenerate: remove the server and add it again with the new command. 403 means the account has no active Pro plan. 429 means more than 600 calls a minute on the token, and the Retry-After header says how long to wait.
Using another agent too?
The same URL works in every MCP client: use it beside Amp, in your editor, your terminal or your chat app.
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