Feedback

shadcn-ui MCP Server — by mamba-mental

@mamba-mental Claim

Basic information

Runtime
node
Category
License
MIT license
Transports
stdio
Author
mamba-mental
Submitted by
Community
Quality
10

About shadcn-ui MCP Server

# shadcn-ui MCP Server

shadcn-ui MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by mamba-mental. It exposes 4 tools, including list_shadcn_components, get_component_details, get_component_examples, search_components. Supported transport: stdio. Runtime: node. License: MIT license. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "shadcn-ui-server": {
            "command": "npx",
            "args": [
                "-y",
                "shadcn-ui-mcp-server"
            ]
        }
    }
}

shadcn-ui MCP Server — by mamba-mental config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "shadcn-ui-server": {
            "command": "npx",
            "args": [
                "-y",
                "shadcn-ui-mcp-server"
            ]
        }
    }
}

shadcn-ui MCP Server — by mamba-mental tools

  • list_shadcn_components — Get a list of all available shadcn/ui components
    (no parameters)
  • get_component_details — Get detailed information about a specific shadcn/ui component
    componentName:string*
  • get_component_examples — Get usage examples for a specific shadcn/ui component
    componentName:string*
  • search_components — Search for shadcn/ui components by keyword
    query:string*

Overview

What is shadcn-ui MCP Server?

It is a TypeScript-based MCP (Model Context Protocol) server that provides reference information for shadcn/ui components. It helps AI assistants access component documentation, installation instructions, usage examples, props, variants, and code samples by scraping the official shadcn/ui documentation site and GitHub repository.

How to use shadcn-ui MCP Server?

Install dependencies with npm install, build the server with npm run build, then configure it in your MCP client (Claude Desktop, Windsurf, or Cursor) using either the built index.js path or the npx command npx -y shadcn-ui-mcp-server. For development, use npm run watch for auto-rebuild.

Key features of shadcn-ui MCP Server

  • Provides four tools: list_shadcn_components, get_component_details, get_component_examples, and search_components
  • Scrapes and caches data from the official shadcn/ui website and GitHub repository
  • Returns structured component descriptions, installation instructions, and usage examples
  • Supports searching components by keyword
  • Written in TypeScript for type safety

Use cases of shadcn-ui MCP Server

  • An AI assistant retrieving detailed info about a specific shadcn/ui component
  • A developer searching for components that match a keyword in their IDE
  • Automated generation of component examples for documentation or tutorials
  • Integrating shadcn/ui component references into a larger MCP‑enabled toolchain

Frequently asked questions

1 What tools does the shadcn-ui MCP Server provide?

It provides four tools: list_shadcn_components, get_component_details, get_component_examples, and search_components.

2 How do I install and configure the shadcn-ui MCP Server?

Install dependencies with npm install, build with npm run build, then add the server configuration to Claude Desktop, Windsurf, or Cursor using either the local build path or the npx command npx -y shadcn-ui-mcp-server.

3 What data sources does it use?

It scrapes and caches information from the official shadcn/ui documentation site (https://ui.shadcn.com) and the shadcn/ui GitHub repository.

4 How can I debug the shadcn-ui MCP Server?

The recommended method is the MCP Inspector, which can be started via npm run inspector. It provides a URL to access debugging tools in your browser.

5 Is there a development mode with auto-rebuild?

Yes, run npm run watch to automatically rebuild the server when source files change.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬