Skip to content

Connect shadcn/ui to VS Code

Copy-in React components built on Radix and Tailwind. Its MCP server browses, searches and installs items from the default and any namespaced community registry.

MCP serverOfficialChecked 2026-11-16

Before you start

  1. Step 1: Add shadcn/ui to VS Code

    Add it from the terminal

    Adds the server to your VS Code profile, so it works in every workspace.

    Terminal
    code --add-mcp '{"name":"shadcn","type":"stdio","command":"npx","args":["-y","shadcn@latest","mcp"]}'

    Or add it to the workspace

    Add this to .vscode/mcp.json and commit it to share it with your team.

    .vscode/mcp.json
    {
      "servers": {
        "shadcn": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "shadcn@latest",
            "mcp"
          ]
        }
      }
    }
  2. Step 2: Check it's connected

    Run MCP: List Servers from the Command Palette, then open Copilot Chat in Agent mode and check the tools picker.

  3. Step 3: Try a first request

    Ask VS Code something that only works with shadcn/ui connected:

    Say to VS Code
    Search the shadcn registry for a date picker and give me the command to add it to this project.

If it doesn't work

  • VS Code asks you to trust a server the first time it starts. Accept it, or the tools stay hidden.
  • code --add-mcp writes to your user profile, so the server works in every workspace.
  • Use MCP: List Servers → Show Output to see startup errors.