Get started

MCP

Find components, inspect examples and get installation commands through the shadcn MCP server.

Find and install 01orbital components without leaving your editor. Through the shadcn MCP server, your assistant can search the registry, inspect component details and source examples, and get the install command for the piece you choose. The shadcn CLI copies the source into your project, where you can edit it.

Add the registry

Start with a project that has shadcn initialized. Add this entry to your existing components.json:

components.json
{
  "registries": {
    "@01orbital": "https://01orbital.dev/r/{name}.json"
  }
}

Without a token, search lists the free components and you can read them. With your license token set, search also lists the licensed components. For first-time project setup, see Install.

Connect your editor

Run the command for your editor from the folder containing components.json:

npx shadcn@latest mcp init --client claude

Enable or reconnect the shadcn MCP server in your editor. Claude Code may need a restart; its /mcp command shows the connection status. Other clients are covered in the shadcn MCP setup guide.

Ask for what you need

For example, building a pricing page from a licensed block:

  • Find pricing blocks in the 01orbital registry.
  • Show the details for @01orbital/three-plan-pricing-02.
  • Show me the source for @01orbital/three-plan-pricing-02.
  • Install @01orbital/three-plan-pricing-02 and replace the sample plans with ours.

Once you choose an item, your assistant runs the generated shadcn command, which copies the component into your project. Pricing blocks are licensed, so set your token first, as described in Licensed components.

Licensed components

Use the same ORBITAL_TOKEN and Authorization header as the licensed install setup. Put .env.local beside the project's components.json, then reconnect the MCP server so it loads the token. No separate MCP credential is needed.

Troubleshooting

01orbital is missing

Check that the MCP server starts in the folder containing your components.json. In a monorepo, this is usually the app workspace. For a pnpm workspace with shadcn installed, the launch command can be:

pnpm --dir apps/web exec shadcn mcp

Replace apps/web with your app's path.

A licensed item returns Unauthorized

Check the registry's Authorization header and that ORBITAL_TOKEN is available to the MCP process. A token exported in your shell takes precedence over .env.local, so update or unset it there. Reconnect after changing either. You can have your token emailed again at /account.

On this page