What it does
shadcn MCP exposes component information through MCP tools, resources and prompts. An agent can use those server-provided definitions while working on a shadcn/ui project.
- Search and inspect the component registry.
- Read component resources exposed by the server.
- Use prompts supplied by the connected implementation.
- Inspect the exact source and usage information returned for a component.
- See every supported argument instead of guessing at a function signature.
Available functions
apply_theme Apply a TweakCN theme preset to the project
Arguments
-
dryRun -
booleanIf true, returns preview instead of writing files -
presetId -
stringSpecific preset ID if known -
query -
stringSearch query for theme (e.g., 'cyberpunk', 'modern') -
tailwindVersion -
stringTailwind CSS version (default: '4') Allowed values: 3, 4
get_block Get source code for a specific shadcn/ui v4 block (e.g., dashboard-01, login-02, sidebar-01)
Arguments
-
blockNamerequired -
stringName of the block (e.g., "dashboard-01", "login-02", "sidebar-01") -
includeComponents -
booleanWhether to include component files for complex blocks (default: true)
get_component Get the source code for a specific shadcn/ui v4 component
Arguments
-
componentNamerequired -
stringName of the shadcn/ui component (e.g., "accordion", "button")
get_component_demo Get demo code illustrating how a shadcn/ui v4 component should be used
Arguments
-
componentNamerequired -
stringName of the shadcn/ui component (e.g., "accordion", "button")
get_component_metadata Get metadata for a specific shadcn/ui v4 component
Arguments
-
componentNamerequired -
stringName of the shadcn/ui component (e.g., "accordion", "button")
get_directory_structure Get the directory structure of the shadcn-ui v4 repository
Arguments
-
branch -
stringBranch name (default: "main") -
owner -
stringRepository owner (default: "shadcn-ui") -
path -
stringPath within the repository (default: v4 registry) -
repo -
stringRepository name (default: "ui")
get_theme Get details of a specific tweakcn theme
Arguments
-
themeNamerequired -
stringName or ID of the theme to retrieve
list_blocks Get all available shadcn/ui v4 blocks with categorization
Arguments
-
category -
stringFilter by category (calendar, dashboard, login, sidebar, products)
list_components Get all available shadcn/ui v4 components
list_themes List available tweakcn themes
Resources
get_components
resource:get_components
List of available shadcn/ui components that can be used in the project
get_theme_metadata
resource:get_theme_metadata
Returns metadata about the currently configured theme
get_install_script_for_component
resource-template:get_install_script_for_component?packageManager={packageManager}&component={component}
Generate installation script for a specific shadcn/ui component based on package manager
get_installation_guide
resource-template:get_installation_guide?buildTool={buildTool}&packageManager={packageManager}
Get the installation guide for shadcn/ui based on build tool and package manager
Prompts
build-shadcn-page
Generate a complete shadcn/ui page using v4 components and blocks
Arguments
-
features - Specific features or components needed (comma-separated)
-
layout - Layout preference (sidebar, header, full-width, centered)
-
pageTyperequired - Type of page to build (dashboard, login, calendar, sidebar, products, custom)
-
style - Design style (minimal, modern, enterprise, creative)
create-auth-flow
Generate authentication pages using shadcn/ui v4 login blocks
Arguments
-
authTyperequired - Authentication type (login, register, forgot-password, two-factor)
-
features - Additional features (remember-me, social-login, validation)
-
providers - Auth providers (email, google, github, apple)
create-dashboard
Create a comprehensive dashboard using shadcn/ui v4 blocks and components
Arguments
-
dashboardTyperequired - Type of dashboard (analytics, admin, user, project, sales)
-
navigation - Navigation style (sidebar, top-nav, breadcrumbs)
-
widgets - Dashboard widgets needed (charts, tables, cards, metrics)
create-data-table
Create advanced data tables with shadcn/ui components
Arguments
-
actions - Row actions (edit, delete, view, custom)
-
dataTyperequired - Type of data to display (users, products, orders, analytics)
-
features - Table features (sorting, filtering, pagination, search, selection)
optimize-shadcn-component
Optimize or enhance existing shadcn/ui components with best practices
Arguments
-
componentrequired - Component name to optimize
-
optimization - Type of optimization (performance, accessibility, responsive, animations)
-
useCase - Specific use case or context for the component