CLI & MCP

Use Infinity UI in your agent

Connect Claude Code, Codex, Cursor or VS Code to the Infinity UI MCP server and ask for components, templates and 3D scenes in plain words, or install them with the shadcn CLI you already have. Building in Lovable or v0? Copy any item as a prompt.

Install from the terminal

No new tool to install: Infinity UI is a registry for the shadcn CLI you already use.

  1. 01

    Make a token

    Sign in and make one on the Tokens page. It's shown once, so copy it straight away.

    Make a token →
  2. 02

    Save it in .env.local

    Keep that file out of git. Anyone with the token can use your daily installs.

    INFINITYUI_TOKEN=iui_pat_…
  3. 03

    Add the registry to components.json

    No components.json yet? Run npx shadcn@latest init first.

    {
      "registries": {
        "@infinityui": {
          "url": "https://infinityui.io/r/{name}.json",
          "headers": {
            "Authorization": "Bearer ${INFINITYUI_TOKEN}"
          }
        }
      }
    }
  4. 04

    Find something and add it

    npx shadcn@latest search @infinityui -q "pricing"npx shadcn@latest add @infinityui/tamber
  5. 05

    In CI and scripts

    Write INFINITYUI_TOKEN into .env.local from a CI secret before the install step.

What do you want to do?

Each job has the command behind it and a prompt you can hand straight to your agent.

  • Find a component

    Search the catalogue by what it does. Each result links to its page, so you can look before you install.

    Free

    npx shadcn@latest search @infinityui -q "pricing"
  • Install a component or block

    Writes the files, installs the npm packages it needs and pulls in anything it depends on.

    1 install

    npx shadcn@latest add @infinityui/ashutoshx7/liquid-metal
  • Start from a full template

    A whole landing page with its sections, motion and photos. Swap in your words and colours.

    1 install

    npx shadcn@latest add @infinityui/tamber
  • Put a 3D scene behind your page

    Live three.js backgrounds. Tune the look on the scene's page first and Copy prompt carries your settings.

    1 install

    npx shadcn@latest add @infinityui/spiral-galaxy
  • Build in Lovable, v0 or Bolt

    No terminal needed. Open any item, press Copy code prompt and paste it into the chat.

    1 copy

  • Teach your agent the catalogue

    One plain-text file with the install steps, every category and our own items.

    Free

    https://infinityui.io/llms.txt

Daily installs

Signed out: 1 a day. Free account: 2 a day. Paid plans: unlimited. Searching is always free. The day resets at 00:00 UTC.

If something is refused

The CLI and the MCP tools say why, and nothing is counted: no token, an expired or revoked one, a plan that doesn't include the item, or the day's limit. Fix tokens on the Tokens page.

Licence

Every installed file starts with its licence line. Keep it. Items from other libraries keep their own licence: licences and attribution.