New (update: 6th Oct)Launched Animated Blocks + 56+ New Blocks & Components - production-grade & copy-paste ready

How to use Shadcn Space MCP Server ?

Bring Shadcn Space directly into your editor. The MCP Server allows AI-powered IDEs to browse, install, and compose components and blocks that match your project.

What is MCP?

MCP (Model Context Protocol) allows AI tools inside your code editor to access external data sources and actions. With Shadcn Space MCP, your AI understands our entire component and block catalog.

  • Search blocks and components via chat
  • Install UI directly into your project
  • Compose pages using existing building blocks
  • Always stays in sync with the latest registry

How to use ShadcnSpace MCP server in Local

To run the Shadcn Space MCP server locally, you can register the local command-line interface. Choose either the Quick Install command or Manual Installation depending on your environment.

Quick Install

The fastest way to get started. Choose your package manager and run the command corresponding to your client:

For Claude Code :

Terminal
claude mcp add shadcnspace-mcp -- npx -y shadcnspace-mcp@latest

For Other :

Terminal
npx shadcnspace-cli install <client>

Replace <client> with cursor or windsurf.

Manual Installation

.cursor/mcp.json
{
  "mcpServers": {
    "shadcnspace-mcp": {
      "command": "npx",
      "args": ["-y", "shadcnspace-mcp@latest"]
    }
  }
}

• Open Cursor Settings → MCP.

• Enable the Shadcn Space MCP server.

• A green dot confirms the server is active.

Cursor documentation

How to use ShadcnSpace MCP server in Cloud

To connect to our cloud-hosted endpoint via SSE (recommended for easy setup and integration with web builders like Lovable and Bolt), configure the details below using your credentials.

Before You Start: Get Your MCP Token

You'll need your MCP Token. This is a single string combining your email and license key:

[email protected]:your-license-keyToken Format

Find your license key on your ShadcnSpace Dashboard

Free users: You can add the MCP server without a token (using the Free option below). Free blocks will install normally. PRO blocks and all Pages require a token.

Select Your AI Tool

Choose the tool you want to configure with the Cloud MCP server:

Configure Lovable

Lovable supports Bearer token authentication for MCP servers.

FieldValue
Server nameShadcnSpace MCP
Server URLhttps://mcp.shadcnspace.com/mcp
AuthenticationBearer token or API key
Token[email protected]:your-license-key
Setup Steps:
  1. Open your Lovable project
  2. Click the Settings icon → Connectors
  3. Click Add MCP server
  4. Fill in the form fields as shown in the table
  5. Click Add server
  6. You should see Connected ✅

Setup Form Reference:

Lovable Custom MCP Connection Setup
How the agent will use it:

Once connected, ask Lovable to add a UI block: "Add a hero section using ShadcnSpace". The agent will automatically search for the right block, fetch the install command with your credentials embedded, and run it — no components.json editing required.

Pro tip: MCP works best when combined with the Shadcn CLI. Use MCP for exploration and generation, then refine code locally.

Using Shadcn Space with MCP

Once configured, you can interact with Shadcn Space using prompts inside your editor.

  • Ask for a specific component or block variant
  • Request changes to layout, spacing, or styles
  • Generate pages using Shadcn Space building blocks
  • Refine output iteratively with follow-up prompts

Available MCP Tools

These tools are exposed to your IDE through the Model Context Protocol (MCP). They allow the AI to fetch, install, and compose Shadcn Space components directly inside your project.

ToolDescription
listCategoriesNew
Returns all 14 block categories (hero, features, pricing, testimonials, faq, cta, header, footer, stats, forms, content, ecommerce, ai, widgets) with live counts of total, free, and PRO blocks.
listBlocksLists blocks with license info (isPro). Supports filtering by category and license type (all, free, pro).
listFreeBlocksNew
Lists only 100% free Shadcn Space blocks that do not require any license. Supports optional category and keyword filters.
listComponentsLists base UI components with search query and license filter (all, free, pro).
getBlockInstallReturns official installation command, component export name, import path, JSX example, style options (base / radix), package manager commands, and license requirements for a specific block.
searchBlocksSearch Shadcn Space blocks using keywords or tags, category filter, and optional freeOnly filter.
listInstalledBlocksLists all blocks that are currently installed in the project and gets their files.
listPagesProvides a complete list of all Shadcn Space full pages.
getPageInstallReturns official installation command, export name, import path, usage example, and style options for a specific full page.
searchPagesSearch Shadcn Space full pages using keywords or tags.
listInstalledPagesLists all pages currently installed in the project.
getLandingPageGuidelinesNew
Comprehensive UI/UX landing page architecture: recommended section sequence (Hero [with built-in navbar] → Logos → Features → Testimonials → Pricing → FAQ → CTA → Footer), container standards, and vertical spacing cadence.
handleErrorNew
Self-healing diagnostic tool for resolving license errors, missing components.json, component not found, and CLI installation failures with exact recovery steps.
get_audit_checklistReturns strict workflow rules and guidelines for AI agents: style check (base / radix), package manager detection, license handling, and navbar deduplication.

Note: The MCP server is free to use with all available free blocks. With a PRO plan, it works most effectively by unlocking access to all premium blocks, full-page templates, and automatic installs.

Available Prompts

Prompts are human-friendly commands that map to MCP tools. They usually appear as slash commands or natural language actions in your IDE’s AI chat.

PromptArgumentsWhat happens
build-landing-pageNew
topic (string), style ("base" | "radix", optional)Step-by-step guidance for an AI agent to architect and assemble a complete, high-converting marketing landing page following optimal section flow and container standards.
add-hero-sectionNew
topic (string)Finds, installs, and integrates a high-impact hero block (with built-in navbar) into an existing page.
add-pricing-sectionNew
topic (string)Adds a modern multi-tier pricing section with monthly/annual billing toggles and clean integration code.
add-feature-gridNew
topic (string)Adds a feature showcase or bento grid section to highlight key capabilities.
create-uidescription (string)General prompt to architect a full UI page using Shadcn Space blocks.
searchtopic (string)Finds specific UI blocks or components by topic, name, category, or intent.
customization-guidelinesnoneDefines which parts of installed blocks can be safely modified (text and labels only, preserving JSX layout and logic).

Example Usage

These examples show how MCP understands intent and translates it into real component installs and UI composition.

“Show me all free hero blocks available in Shadcn Space”

“Build a complete SaaS landing page for an AI productivity app using hero, bento features, testimonials, pricing, and FAQ”

“Give me the install command and import statement for pricing-01 in base style”

“What categories of blocks are available in Shadcn Space?”

“Add download-banner block to my project”

Limitations

  • Generated code may require manual refinement
  • Advanced custom animations may not be inferred correctly
  • Editor support depends on MCP compatibility
  • Works with free blocks; Pro components require valid credentials

Best Practices

Pro tip: The MCP server is free to use with all free blocks. With a PRO plan, it works most effectively to install full pages and premium components directly into your codebase.

  • Be specific in prompts (component type, layout, behavior)
  • Generate small pieces instead of entire pages at once
  • Validate accessibility and responsiveness
  • Commit generated code after review