shadcn-ui-mcp-server
v3.0.0A 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
| Parameter | Type | Description |
|---|---|---|
componentName * | string | Name 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
| Parameter | Type | Description |
|---|---|---|
componentName * | string | Name 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
| Parameter | Type | Description |
|---|---|---|
componentName * | string | Name of the shadcn/ui component (e.g., "accordion", "button") |
get_directory_structure
Get the directory structure of the shadcn-ui v4 repository
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch name (default: "main") |
owner | string | Repository owner (default: "shadcn-ui") |
path | string | Path within the repository (default: v4 registry) |
repo | string | Repository name (default: "ui") |
get_block
Get source code for a specific shadcn/ui v4 block (e.g., dashboard-01, login-02, sidebar-01)
| Parameter | Type | Description |
|---|---|---|
blockName * | string | Name of the block (e.g., "dashboard-01", "login-02", "sidebar-01") |
includeComponents | boolean | Whether to include component files for complex blocks (default: true) |
list_blocks
Get all available shadcn/ui v4 blocks with categorization
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category (calendar, dashboard, login, sidebar, products) |
apply_theme
Apply a TweakCN theme preset to the project
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | If true, returns preview instead of writing files |
presetId | string | Specific preset ID if known |
query | string | Search query for theme (e.g., 'cyberpunk', 'modern') |
tailwindVersion | string | Tailwind CSS version (default: '4') |
list_themes
List available tweakcn themes
get_theme
Get details of a specific tweakcn theme
| Parameter | Type | Description |
|---|---|---|
themeName * | string | Name or ID of the theme to retrieve |