Shadcn MCP for Antigravity

Connect Antigravity into the shadcn.io registry with one MCP URL — access every block, icon, and example in the catalog.

One MCP URL gives Antigravity live tools to search, preview, and install every block, component, and icon on shadcn.io — no hallucinated props, no broken installs.

Install

Open the MCP Store from the "..." dropdown at the top of the editor's agent panel, click Manage MCP Servers → View raw config, and merge the mcpServers block below into the file that opens (~/.gemini/antigravity/mcp_config.json):

Paste it in once you're signed in with an active Pro subscription — the config carries your personal token, so treat the full URL like an API key. Pro starts at $19/mo and includes MCP access across every editor plus 6,000+ production-ready blocks. Not Pro yet? See what you unlock →

Antigravity uses serverUrl (not url) for remote HTTP servers, and mcp_config.json is global — Antigravity doesn't load a project-scoped copy. If mcpServers already has other entries, merge shadcnio alongside them.

Share with your team

The shadcn.io token embedded in serverUrl is personal, so don't commit mcp_config.json to a shared dotfiles repo. For teams, share the config shape and let each teammate paste in their own URL from /dashboard/account — a Team or Organization plan gives every workspace member their own Pro entitlement.

If you'd rather keep the token out of the file, Antigravity also accepts a headers object — you can send the token as a bearer header instead:

{
"mcpServers": {
  "shadcnio": {
    "serverUrl": "https://www.shadcn.io/api/mcp",
    "headers": {
      "Authorization": "Bearer YOUR_TOKEN"
    }
  }
}
}

Install your first block

use shadcnio to install hero-announcement into my project

What Antigravity actually does, in order:

  1. search_items({ query: "hero-announcement" }) to confirm the slug resolves.
  2. get_item({ name: "hero-announcement" }) for a cheap metadata peek.
  3. get_install_command({ name: "hero-announcement" }) — returns a shadcn add https://www.shadcn.io/r/hero-announcement.json?token=… URL with your token already in the query string.
  4. Runs it. Files land under components/ui/.

Name the server explicitly (use shadcnio…) when multiple MCPs are active. Without it, Antigravity picks one at random or skips tools entirely.

The example above uses hero-announcement, a Pro block — the install runs once you're signed in with an active subscription.

Manage the connection

Antigravity reads mcp_config.json at startup — restart the editor after editing the mcpServers block so the new server loads. Inside a session, open Manage MCP Servers from the MCP Store to see every configured server and its status; the same panel lets you toggle, edit, or remove any entry.

Set "disabled": true on the shadcnio entry to turn the server off without removing it (useful while debugging). Flip back to false (or delete the line) when you need it again — no re-auth required.

If your Pro subscription lapses, the next tool call returns 403. Resubscribing restores access on the following request — no reconfigure, no reinstall. The token itself stays valid across subscription gaps.

FAQ

Was this page helpful?

Sign in to leave feedback.