Skip to content

shadcn/ui components in ChatGPT

Add the server at chatgpt.com/plugins (opens in a new tab), then call it with @ in a chat: ChatGPT can plan a page from blocks and give you the install for your framework. It's part of shadcn.io Pro.

Kind
App
Goes in
Settings → Apps
Connects
Over HTTP
Team config
No

Add it at chatgpt.com/plugins

You add the server once on chatgpt.com, where it becomes a personal plugin you install and call with @. Signed in with Pro, the name and URL beside these steps are already yours.

  1. Copy the name and URL

    The box beside these steps holds both. The URL ends in ?token=, your key, because ChatGPT's custom servers have no field for a header. No token yet? Create one on your account.

  2. Add a custom MCP server

    At chatgpt.com/plugins (opens in a new tab) (Customize → Plugins in the sidebar), select the plus button, then Add custom MCP server. Name it shadcnio and paste the URL as the Server URL.

  3. Choose No authentication

    The token in the URL is the key, so set Authentication to No authentication. Read the risk warning, select I understand and want to continue, then Create as a plugin: ChatGPT lists the 22 tools it found.

  4. Install the plugin

    Open the Personal tab, open shadcnio and select the plus button. A custom server stays out of your chats until its plugin is installed.

  5. Call it with @

    In a new chat, in Chat or Work, type @, pick shadcnio and ask for what you need.

Settings → Apps
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:

Name: shadcnio
URL:  https://www.shadcn.io/api/mcp?token=YOUR_TOKEN

ChatGPT saves the URL, token included, with the plugin in your account; nothing lands on your computer. If the URL leaks, regenerate your token and add the server again.

Where the install happens in ChatGPT
Where you askWhat ChatGPT does with the install
Chat, on the web, desktop or mobileHands you the npx shadcn add command, or every file from get_install_plan for Vue, Svelte and Solid
Work, run locally in the desktop appCan run the command in the folder you opened, within your permission mode
Codex, in the desktop appReads its own list, Settings → MCP servers, shared with Codex CLI: set it up there

Make sure ChatGPT can reach it

Your plugins live at chatgpt.com/plugins (opens in a new tab). A working shadcnio is installed there, lists its tools, and appears when you type @ in a chat.

  1. Find shadcnio in the Installed row at chatgpt.com/plugins.
  2. Open it: its details list the 22 tools ChatGPT discovered, each with its own switch.
  3. Start a new chat, type @, pick shadcnio and send the prompt below.
  4. ChatGPT calls whoami. Expand the call: the JSON holds your email, your plan and the calls left this minute.
Prompt
Check which shadcn.io account and plan this plugin connects with.

Three chats with the shadcn MCP

Three requests ChatGPT users make, from a pricing plan in Chat to an orders table built in a local folder with Work. Turn the MCP off to see the same request answered from memory.

Your agent
  1. shadcn.io MCP connected · 22 tools
  2. You: Plan a pricing page for my invoicing app, with a monthly and yearly switch.
  3. MCP call: plan_page({ brief: "pricing page for an invoicing app with a monthly and yearly switch", kind: "marketing" })Returns: Pricing, comparison, FAQ and a call to action, two alternatives each
  4. MCP call: get_block({ names: ["pricing-billing-toggle", "pricing-comparison-table", "faq-saas-billing", "cta-centered-light-tier-selector"], include: ["install", "preview"] })Returns: One npx shadcn add for all four, and a preview link each
  5. Agent step: Wrote the copy for each sectionReturns: Your plan names, prices and questions in place of the samples
  6. Your agent: Here's the page top to bottom, a preview link for each block, and the one command that adds all four.

In your project

Pricing page

  • Four sections in the order buyers read them
  • One command to run at the project's root

1 prompt → 2 MCP calls

Requests to paste after @shadcnio

Type @, pick shadcnio, then paste one. Each asks for something ChatGPT gets wrong from memory alone.

01
Plan a landing page for my dog-walking app from shadcn blocks, and give me one command that installs them all.
02
Which props does the Dialog take on Radix, and which one stops it closing on an outside click?
03
I'm on Nuxt: give me every file for a date picker with its path, and the packages to add.
04
Find Lucide icons for my sidebar: inbox, calendar, billing, team and settings, with the import line.
05
Pull Stripe's DESIGN.md and turn its tokens into CSS variables for light and dark mode.
06
Here's a screenshot of a settings screen I like: which blocks come closest?
07
Walk me through setting up a new Vite app for shadcn components, one command at a time.

Working with it in ChatGPT

What changes in ChatGPT: plugins and @ mentions, approvals, projects, and where the install runs.

  • Pick it with @ first

    ChatGPT can also reach for web search and your other plugins. Typing @ and picking shadcnio before the request settles which tools to use, and OpenAI's own advice is to add a line ruling out the rest when it strays.

    @shadcnio Add a toast after the profile form saves. Use only shadcnio, not web search.
  • No approval prompts

    ChatGPT asks you to confirm write actions, and treats any tool without readOnlyHint as one. All 22 shadcnio tools carry that hint, since they only read the registry, so calls go through without a confirmation step.

  • Open a call to check it

    Expand any tool call in a reply to see the full JSON ChatGPT sent and got back. Check the framework and base it passed, and copy install commands from there rather than from the prose.

  • Keep your stack in a project

    Chat can't see your repo. Make a ChatGPT project for the app, put the stack in its instructions and upload package.json and components.json to its sources: every chat in the project starts from them.

    Stack: Next.js, React on Radix, pnpm. For UI, call shadcnio before writing a component, and give me its install command exactly as returned.
  • Let Work run the install

    In Chat, ChatGPT hands you the npx shadcn add command or the files to save. In the desktop app, Work running locally on your project's folder can run the command there, pausing whenever your permission mode asks.

  • Refresh after server updates

    ChatGPT keeps the tool list it found when you created the plugin. When the server adds tools or rewrites descriptions, open shadcnio at chatgpt.com/plugins, select Refresh and start a new chat. The same page switches single tools off.

When the plugin misbehaves

Where ChatGPT surfaces a failure, and how to clear it. The troubleshooting guide has the rest, client by client.

The plus button at chatgpt.com/plugins has no Add custom MCP server.
Your plan or workspace doesn't allow custom MCP servers. In a Business, Enterprise or Edu workspace, ask an admin to check Permissions & roles; Lockdown Mode can block it too.
Create as a plugin fails or discovers no tools.
Paste the URL whole, ?token= included, and set Authentication to No authentication: the token is the key, and this server has no OAuth sign-in to find.
An expanded tool call shows a 401.
The token in the URL is missing or out of date, as it is after you regenerate it. Copy the URL from this page again, add the server again with it, and uninstall the old plugin.
Tool calls come back with a 403.
The token is valid, but its shadcn.io account has no active Pro plan. Renew it and the plugin you already have works again, unchanged.
shadcnio is missing from the @ menu in a chat.
It was created but never installed. Open the Personal tab at chatgpt.com/plugins, open shadcnio, install it, then start a new chat.
ChatGPT searches the web or writes the component from memory.
Start the message by picking shadcnio with @, and say to use it rather than web search. Naming the component or block you want also helps it choose the tool.

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

4.9 out of 5 from 150+ developers

Bring the registry into ChatGPT

One custom server, and ChatGPT draws on 6,231 blocks and 294k icons whenever you type @shadcnio. Included in Pro.

Get Pro