shadcn-ui-mcp-server

v3.0.0
@jpisnice/shadcn-ui-mcp-server Checked 1 hour ago Published 1 month ago

A Model Context Protocol (MCP) server for shadcn/ui components, providing AI assistants with access to component source code, demos, blocks, and metadata.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_component

Get the source code for a specific shadcn/ui v4 component

ParameterTypeDescription
componentName *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

ParameterTypeDescription
componentName *stringName of the shadcn/ui component (e.g., "accordion", "button")

list_components

Get all available shadcn/ui v4 components

get_component_metadata

Get metadata for a specific shadcn/ui v4 component

ParameterTypeDescription
componentName *stringName of the shadcn/ui component (e.g., "accordion", "button")

get_directory_structure

Get the directory structure of the shadcn-ui v4 repository

ParameterTypeDescription
branchstringBranch name (default: "main")
ownerstringRepository owner (default: "shadcn-ui")
pathstringPath within the repository (default: v4 registry)
repostringRepository name (default: "ui")

get_block

Get source code for a specific shadcn/ui v4 block (e.g., dashboard-01, login-02, sidebar-01)

ParameterTypeDescription
blockName *stringName of the block (e.g., "dashboard-01", "login-02", "sidebar-01")
includeComponentsbooleanWhether to include component files for complex blocks (default: true)

list_blocks

Get all available shadcn/ui v4 blocks with categorization

ParameterTypeDescription
categorystringFilter by category (calendar, dashboard, login, sidebar, products)

apply_theme

Apply a TweakCN theme preset to the project

ParameterTypeDescription
dryRunbooleanIf true, returns preview instead of writing files
presetIdstringSpecific preset ID if known
querystringSearch query for theme (e.g., 'cyberpunk', 'modern')
tailwindVersionstringTailwind CSS version (default: '4')

list_themes

List available tweakcn themes

get_theme

Get details of a specific tweakcn theme

ParameterTypeDescription
themeName *stringName or ID of the theme to retrieve