shadcn/studio

Command Palette

Search for a command to run...

shadcn-studio MCP Server

Build production-ready UI components, blocks, and landing pages in minutes. Seamlessly integrate with your favorite IDE for lightning-fast development.

What is shadcn-studio MCP Server?

shadcn-studio MCP Server is an AI-powered tool that integrates directly into your IDE, enabling you to effortlessly create, inspire, and refactor stunning, production-ready UI components and blocks using shadcn-studio extensive component library.

React & Next.js Compatible

Works seamlessly with React, Next.js, and TypeScript projects

IDE Integration

Supports VS Code, Cursor, Windsurf, and Cline

Production Ready

Generate clean, accessible, and responsive components

Tailwind CSS

Built with Tailwind CSS and shadcn/ui components

🛠️ Installation

We've made installation super easy!

You can find a complete Installation and setup guide specific to your IDE. Just head over to the Install shadcn-studio MCP section from your shadcn-studio Pro account and select your preferred IDE (e.g., VS Code, Cursor, Windsurf, etc.) to start installation.

Please login to your shadcn-studio Pro account and access the shadcn-studio MCP Installation guide here:Installation Guide

Follow the step-by-step instructions to get the MCP Server running in your favorite IDE.

We have also created a video tutorial to help you with the installation process. You can watch it here:

🔧 How to Use the shadcn-studio MCP Server?

shadcn-studio MCP Server comes with three powerful commands to generate, customize, and refine UI components:

  • /cuiCreate UI
  • /iuiInspire UI (Pro user only)
  • /ruiRefine UI

These commands allow you to generate, customize, and refine UI components based on the shadcn/studio Pro Blocks and your project's context.

We have created a video tutorial to help you understand how to use these commands effectively:

Let's explore each command in detail:

Create UI (/cui)

Use this command when you want to reuse the structure and feel of an existing shadcn-studio block, but customized for your own content and use-case. You can either let the MCP Server pick the best match for your request, or you can specify the exact block.

Use case:

You want to replicate a block layout with your own content.

Examples:

  • /cui Create a hero section for an eLearning Academy site.
  • /cui Create a feature section for my SaaS landing page.
  • /cui Create a pricing section with 3 tiers for my app.
  • /cui Create a feature section for my landing page like Features 8.

Quick Reference

CommandPurposeIdeal For
/cuiCustomize from existing shadcn-studio blockUsing existing blocks with custom content
/iui Pro user onlyGenerate a new, inspired UICreative and unique designs
/ruiRefine or edit an existing blockMaking updates or tweaks

Tips & Best Practices

To get the most out of shadcn-studio MCP Server, keep these tips in mind:

1Use Clear and Specific Prompts

The more specific and clear your prompts are, the better the output will be. Always be precise with your requests to get the best results.

2Always Enable Agent Mode in your IDE

Ensure that Agent Mode is turned on while working with the shadcn-studio MCP Server to enhance performance and functionality.

3Use Claude Sonnet 3.5 or or Higher Models

For optimal results, always use Claude Sonnet 3.5 or higher LLM models. This ensures more accurate and creative UI generation.

4Generate One Block at a Time

Focus on generating one block at a time to maintain clarity and precision in your design. Instead of generating multiple blocks in one request, break them down into individual commands to have better control over each section.

Example:

Instead of this:

/cui Create the Pricing, Testimonials and Call to Action sections for my SaaS landing page.

Use three separate commands:

/cui Create the Pricing section for my SaaS landing page./cui Create the Testimonials section for my SaaS landing page./cui Create the Call to Action section for my SaaS landing page.

This will give you the flexibility to customize each block individually and ensure they fit perfectly into your overall design.

5Start Fresh for Each Component

For a smoother workflow, always create a new chat window for each new block or component. This helps avoid context confusion.

6Iterate and Refine

Don't hesitate to iterate on your designs. Use the /rui command to refine and update existing blocks as needed.

7Generate a Complete Landing Page

If you are planning to generate a complete landing page in one attempt, we recommend using the /cui command.

You can also mention the specific blocks you want to include in your landing page, and the MCP Server will generate it for you.

Example:

/cui Create a landing page for my SaaS. Use hero section like Hero 2, Use feature section like Features 8, Use testimonial section like Testimonials 1, Use call to action section like Call to Action 3, Use Pricing section like Pricing 5, Use Teams section like Teams 1.

/iui (Pro user only) command is not recommended for this task as it takes much more time to generate a complete landing page and you may not get the desired results. If you want to use /iui (Pro user only) command, we recommend you to use it for each section of the landing page separately as described in point 4 above.

Frequently Asked Questions