shadcn/ui MCP

v2.0.0Developer Toolsstable

A mcp server to allow LLMS gain context about shadcn ui component structure,usage and installation,compaitable with react,svelte 5,vue & React Native

aiexpomcpmodelcontextprotocolnextjs
Share:
2,770
Stars
0
Downloads
0
Weekly
0/5

What is shadcn/ui MCP?

shadcn/ui MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server to allow llms gain context about shadcn ui component structure,usage and installation,compaitable with react,svelte 5,vue & react native

A mcp server to allow LLMS gain context about shadcn ui component structure,usage and installation,compaitable with react,svelte 5,vue & React Native

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • list-components
  • get-component-docs
  • install-component
  • list-blocks
  • get-block-docs

Use Cases

LLM context for shadcn component structure
Support React, Svelte, Vue, and React Native
Jpisnice

Maintainer

LicenseMIT License
Languagetypescript
Versionv2.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y shadcn-ui

Manual Installation

npx -y shadcn-ui

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use shadcn/ui MCP

The shadcn/ui MCP server (@jpisnice/shadcn-ui-mcp-server) gives AI coding assistants comprehensive, real-time access to shadcn/ui v4 component source code, demos, blocks, and metadata directly from the official GitHub repository. It supports React, Svelte 5, Vue, and React Native (Expo) frameworks and includes block implementations such as dashboards, forms, and calendars. Developers use it so their AI assistant can reference the exact current component API, dependencies, and usage patterns — eliminating hallucinated props or outdated component structures when generating UI code.

Prerequisites

  • Node.js 18+ or Bun runtime for the npx/bunx launcher
  • An MCP client such as Claude Desktop, Claude Code, or Cursor
  • A GitHub Personal Access Token (recommended) to avoid GitHub API rate limits — the server fetches component data directly from GitHub
  • Optional: a target framework choice (react, svelte, vue, or react-native) if not using the default React
1

Test the server with npx

Run the server once without installing it to confirm it works in your environment. Pass your GitHub token to avoid rate limiting on the GitHub API calls.

npx @jpisnice/shadcn-ui-mcp-server --github-api-key ghp_your_token_here
2

Add to Claude Code via the mcp add command

The fastest integration path for Claude Code is the mcp add command. Use bunx for faster cold starts.

claude mcp add shadcn -- bunx -y @jpisnice/shadcn-ui-mcp-server --github-api-key YOUR_TOKEN
3

Configure Claude Desktop (JSON config)

Add the server to your Claude Desktop MCP configuration. Pass your GitHub token and optionally specify a framework for non-React projects.

{
  "mcpServers": {
    "shadcn-ui": {
      "command": "npx",
      "args": [
        "-y",
        "@jpisnice/shadcn-ui-mcp-server",
        "--github-api-key",
        "ghp_your_token_here"
      ]
    }
  }
}
4

Select a framework other than React

Pass the --framework flag to switch to Svelte 5, Vue, or React Native component implementations. Each framework uses the corresponding shadcn/ui port's source.

npx @jpisnice/shadcn-ui-mcp-server --framework svelte --github-api-key ghp_your_token
5

Run in SSE mode for multi-client team setups

Start the server in SSE transport mode when multiple developers need to share the same MCP server instance. It listens on port 7423 by default.

GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token MCP_TRANSPORT_MODE=sse npx @jpisnice/shadcn-ui-mcp-server

shadcn/ui MCP Examples

Client configuration

Claude Desktop configuration for the shadcn/ui MCP server using React (default). Replace the GitHub token with your actual PAT.

{
  "mcpServers": {
    "shadcn-ui": {
      "command": "npx",
      "args": [
        "-y",
        "@jpisnice/shadcn-ui-mcp-server",
        "--github-api-key",
        "ghp_your_github_token_here"
      ],
      "env": {
        "UI_LIBRARY": "radix"
      }
    }
  }
}

Prompts to try

Prompts that put the shadcn/ui MCP server's component knowledge to work inside your coding assistant.

- "List all available shadcn/ui v4 components"
- "Show me the full source code for the shadcn/ui DataTable component"
- "What dependencies do I need to install for the shadcn/ui Calendar block?"
- "Generate a login form using shadcn/ui Input, Label, and Button components with correct imports"
- "Show me the shadcn/ui dashboard block and explain each sub-component"

Troubleshooting shadcn/ui MCP

GitHub API rate limit errors when fetching components

The server makes multiple GitHub API calls to retrieve component source. Without a token, the unauthenticated rate limit (60 req/hour) is easily exceeded. Create a GitHub Personal Access Token (read-only, public repos scope) and pass it via --github-api-key or the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.

Components return empty source or 'not found' for a specific framework

Not all components are available for every framework port. Check the shadcn/ui documentation for your framework (svelte, vue, react-native) to confirm the component exists. Switch back to --framework react as the most complete implementation.

Server starts but Claude Desktop shows no tools available

Restart Claude Desktop after editing the config file — it only reads the config on startup. Also verify the JSON syntax is valid (no trailing commas) using a JSON linter before restarting.

Frequently Asked Questions about shadcn/ui MCP

What is shadcn/ui MCP?

shadcn/ui MCP is a Model Context Protocol (MCP) server that mcp server to allow llms gain context about shadcn ui component structure,usage and installation,compaitable with react,svelte 5,vue & react native It connects AI assistants to external tools and data sources through a standardized interface.

How do I install shadcn/ui MCP?

Install via npm with the command: npx -y shadcn-ui. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with shadcn/ui MCP?

shadcn/ui MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is shadcn/ui MCP free to use?

Yes, shadcn/ui MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use shadcn/ui MCP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides