SuperAPIAI Directory

shadcn-ui-mcp-server

github.com · AI developer platforms

shadcn-ui-mcp-server is an MCP (Model Control Protocol) server for Shadcn UI component development, used to manage components and blocks in MCP-enabled clients. It provides tools for listing components, retrieving component documentation, installing components, as well as listing blocks, retrieving block documentation and code, and installing blocks, and supports multiple package managers: npm, pnpm, yarn, and bun. The project is built on the TypeScript SDK and is licensed under MIT.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · API

About this tool

Purpose: shadcn-ui-mcp-server is an MCP server designed to improve the development experience when using Shadcn UI components, providing a tooling foundation for building and managing UI components. It exposes a set of tools to clients through the Model Control Protocol, making it easy to query and install Shadcn UI resources within the development workflow.

Main capabilities:

  1. Component management: list available shadcn/ui components; retrieve detailed documentation for a specified component; install shadcn/ui components.
  2. Block management: list available shadcn/ui blocks; retrieve documentation and code for a specified block; install blocks.
  3. Package manager support: supports npm, pnpm, yarn, and bun at runtime, and can automatically detect the user's preferred package manager.

Usage: The material gives the locations of instructions for configuring this MCP server in Claude Desktop, Windsurf, and Cursor, but does not provide the specific configuration content. The Claude Desktop configuration file is located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows; for Windsurf it needs to be added to ./codeium/windsurf/model_config.json; for Cursor it needs to be added to .cursor/mcp.json. Local development requires installing dependencies and building the server; the material does not give the specific installation and build commands. Because the MCP server communicates over stdio, debugging is difficult; using MCP Inspector for debugging is recommended, as it can monitor MCP communication, inspect tool calls and responses, debug server behavior, and view real-time logs.

Applicable scenarios: Suitable for assisting with querying, retrieving documentation for, and installing Shadcn UI components and blocks in AI programming clients that support MCP, reducing the need to switch between the component library and the project.

Limitations and requirements: Requires Node.js v18 or higher, as well as the npm or yarn package manager. The material does not provide the specific configuration JSON, installation commands, build commands, or further usage steps; this content is not yet available. The project uses the MIT License, and Pull Requests for contributions are welcome.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools