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

Adding the MCP Server to Your Editor

To use Shadcn Space inside your editor, you need to register the MCP server. Once added, your editor can access components, blocks, and templates directly.

  1. Open your editor’s MCP or AI configuration settings
  2. Add a new MCP server
  3. Paste the Shadcn Space MCP Server URL
  4. Save and restart your editor if required

Quick Install

The fastest way to get started. This command generates the correct MCP configuration for your editor automatically.

Terminal
npx shadcnspace-cli install <client>

Replace <client> with cursor, windsurf, or claude.

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

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.

ToolWhat it doesTypical Use Case
listBlocksLists all available Shadcn Space blocks and components.Discover layouts, sections, and UI building blocks.
addBlockFetches and installs a selected block into your project.Quickly add production-ready UI without manual setup.

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
searchquery (string)Finds blocks by name, category, or intent.
create-uinoneComposes a new UI using existing Shadcn Space blocks.

Example Usage

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

“List all available Shadcn Space blocks”

“Add download-banner block to my project”

“Create a landing page for a coffee shop using a hero block, a 3-column feature grid, and a dark-themed footer”

Limitations

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

Best Practices

Tip: Use MCP as an assistant, not a replacement. Always review and adapt generated code to your project’s needs.

  • 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