Shadcn UI v4 MCP Server

Shadcn UI v4 MCP Server

Seamlessly integrate shadcn/ui components into AI-assisted development workflows.

2,451
Stars
271
Forks
2,451
Watchers
7
Issues
Shadcn UI v4 MCP Server acts as a Model Context Protocol server, delivering comprehensive access to shadcn/ui v4 components, blocks, examples, and metadata for AI assistants. It supports multiple frameworks including React, Svelte, Vue, and React Native, and enables retrieval of component source code and demos for programmatic use. Features include metadata access, directory browsing, smart GitHub API caching, and Server-Sent Events for scalable multi-client support. Production-ready options such as Docker containerization and flexible transport modes simplify deployment and integration.

Key Features

Supports React, Svelte, Vue, and React Native component retrieval
Access to latest shadcn/ui v4 TypeScript source code
Component demos and usage pattern examples
Block implementations such as dashboards, calendars, and forms
Provides metadata including dependencies and configuration
Directory browsing of component repositories
Smart caching and GitHub API rate limit management
Server-Sent Events support for multi-client deployments
Production-ready Docker containerization and Docker Compose support
Transport modes including stdio, SSE, and dual for integration flexibility

Use Cases

Automated integration of shadcn/ui components into AI-powered IDEs or code assistants
Quick retrieval of UI component code for multi-framework prototyping
Accessing and embedding interactive component demos in documentation or tutorials
Programmatic exploration and selection of reusable UI blocks
Fetching component metadata for dependency analysis or configuration
Scaling multi-client AI agent deployments with SSE support
Continuous integration environments pulling latest UI components
Accelerated front-end scaffolding in collaborative AI workflows
Customizing and extending component usage for different frameworks
Deploying a local or cloud service for AI model context enrichment

README

Shadcn UI v4 MCP Server

npm version License: MIT

Trust Score

🚀 The fastest way to integrate shadcn/ui components into your AI workflow

A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to shadcn/ui v4 components, blocks, demos, and metadata. Seamlessly retrieve React, Svelte, Vue, and React Native implementations for your AI-powered development workflow.

✨ Key Features

  • 🎯 Multi-Framework Support - React, Svelte, Vue, and React Native implementations
  • 📦 Component Source Code - Latest shadcn/ui v4 TypeScript source
  • 🎨 Component Demos - Example implementations and usage patterns
  • 🏗️ Blocks Support - Complete block implementations (dashboards, calendars, forms)
  • 📋 Metadata Access - Dependencies, descriptions, and configuration details
  • 🔍 Directory Browsing - Explore repository structures
  • ⚡ Smart Caching - Efficient GitHub API integration with rate limit handling
  • 🌐 SSE Transport - Server-Sent Events support for multi-client deployments
  • 🐳 Docker Ready - Production-ready containerization with Docker Compose

🚀 Quick Start

bash
# Basic usage (60 requests/hour)
npx @jpisnice/shadcn-ui-mcp-server

# With GitHub token (5000 requests/hour) - Recommended
npx @jpisnice/shadcn-ui-mcp-server --github-api-key ghp_your_token_here

# Switch frameworks
npx @jpisnice/shadcn-ui-mcp-server --framework svelte
npx @jpisnice/shadcn-ui-mcp-server --framework vue
npx @jpisnice/shadcn-ui-mcp-server --framework react-native

🎯 Get your GitHub token in 2 minutes: docs/getting-started/github-token.md

🌐 SSE Transport & Docker Deployment

Run the server with Server-Sent Events (SSE) transport for multi-client support and production deployments:

Quick Start with SSE

bash
# SSE mode (supports multiple concurrent connections)
node build/index.js --mode sse --port 7423

# Docker Compose (production ready)
docker-compose up -d

# Connect with Claude Code
claude mcp add --scope user --transport sse shadcn-mcp-server http://localhost:7423/sse

Transport Modes

  • stdio (default) - Standard input/output for CLI usage
  • sse - Server-Sent Events for HTTP-based connections
  • dual - Both stdio and SSE simultaneously

Docker Examples

bash
# Basic container
docker run -p 7423:7423 shadcn-ui-mcp-server

# With GitHub API token
docker run -p 7423:7423 -e GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token shadcn-ui-mcp-server

# Docker Compose (recommended)
docker-compose up -d
curl http://localhost:7423/health

Environment Variables

  • MCP_TRANSPORT_MODE - Transport mode (stdio|sse|dual)
  • MCP_PORT - SSE server port (default: 7423 - SHADCN on keypad!)
  • MCP_HOST - Host binding (default: 0.0.0.0)
  • MCP_CORS_ORIGINS - CORS origins (comma-separated)
  • GITHUB_PERSONAL_ACCESS_TOKEN - GitHub API token

📚 Documentation

Section Description
🚀 Getting Started Installation, setup, and first steps
⚙️ Configuration Framework selection, tokens, and options
🔌 Integration Editor and tool integrations
📖 Usage Examples, tutorials, and use cases
🎨 Frameworks Framework-specific documentation
🐛 Troubleshooting Common issues and solutions
🔧 API Reference Tool reference and technical details

🎨 Framework Support

This MCP server supports four popular shadcn implementations:

Framework Repository Maintainer Description
React (default) shadcn/ui shadcn React components from shadcn/ui v4
Svelte shadcn-svelte huntabyte Svelte components from shadcn-svelte
Vue shadcn-vue unovue Vue components from shadcn-vue
React Native react-native-reusables Founded Labs React Native components from react-native-reusables

🛠️ Essential Setup

1. Get GitHub Token (Recommended)

bash
# Visit: https://github.com/settings/tokens
# Generate token with no scopes needed
export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here

2. Run Server

bash
# React (default)
npx @jpisnice/shadcn-ui-mcp-server

# Svelte
npx @jpisnice/shadcn-ui-mcp-server --framework svelte

# Vue  
npx @jpisnice/shadcn-ui-mcp-server --framework vue

# React Native
npx @jpisnice/shadcn-ui-mcp-server --framework react-native

3. Integrate with Your Editor

🎯 Use Cases

  • AI-Powered Development - Let AI assistants build UIs with shadcn/ui
  • Multi-Client Deployments - SSE transport supports multiple concurrent connections
  • Production Environments - Docker Compose ready with health checks and monitoring
  • Component Discovery - Explore available components and their usage
  • Multi-Framework Learning - Compare React, Svelte, Vue, and React Native implementations
  • Rapid Prototyping - Get complete block implementations for dashboards, forms, etc.
  • Code Generation - Generate component code with proper dependencies

📦 Installation

bash
# Global installation (optional)
npm install -g @jpisnice/shadcn-ui-mcp-server

# Or use npx (recommended)
npx @jpisnice/shadcn-ui-mcp-server

🔗 Quick Links

📄 License

MIT License - see LICENSE for details.

🙏 Acknowledgments

  • shadcn - For the amazing React UI component library
  • huntabyte - For the excellent Svelte implementation
  • unovue - For the comprehensive Vue implementation
  • Founded Labs - For the React Native implementation
  • Anthropic - For the Model Context Protocol specification

Made with ❤️ by Janardhan Polle

Star ⭐ this repo if you find it helpful!

Star History

Star History Chart

Repository Owner

Jpisnice
Jpisnice

User

Repository Details

Language TypeScript
Default Branch master
Size 6,418 KB
Contributors 10
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
90.86%
Powershell
4.85%
Shell
2.78%
JavaScript
0.96%
Dockerfile
0.54%

Tags

Topics

ai mcp modelcontextprotocol nextjs npm npm-package npx react shadcn-ui svelte sveltekit ts typescript ui vue vuejs webdev

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Pica MCP Server

    Pica MCP Server

    A Model Context Protocol (MCP) server for seamless integration with 100+ platforms via Pica.

    Pica MCP Server provides a standardized Model Context Protocol (MCP) interface for interaction with a wide range of third-party services through Pica. It enables direct platform integrations, action execution, and intelligent intent detection while prioritizing secure environment variable management. The server also offers features such as code generation, form and data handling, and robust documentation for platform actions. It supports multiple deployment methods, including standalone, Docker, Vercel, and integration with tools like Claude Desktop and Cursor.

    • 8
    • MCP
    • picahq/mcp
  • Shodan MCP Server

    Shodan MCP Server

    Query Shodan network intelligence and CVEDB via standardized MCP integration.

    Shodan MCP Server provides an MCP-compliant interface to query the Shodan API and Shodan CVEDB for network intelligence, device discovery, and vulnerability data. It integrates with platforms like Claude Desktop, enabling structured, formatted results for seamless AI workflows. Key functionalities include IP reconnaissance, DNS operations, vulnerability lookups, and internet-connected device searches. Easy installation options are available via npm, Smithery, or from source.

    • 83
    • MCP
    • BurtTheCoder/mcp-shodan
  • SonarQube MCP Server

    SonarQube MCP Server

    Model Context Protocol server for AI access to SonarQube code quality metrics.

    SonarQube MCP Server offers a Model Context Protocol (MCP) server that integrates with SonarQube, enabling AI assistants to access code quality metrics, issues, and analysis results programmatically. It supports retrieving detailed quality metrics, filtering issues, reviewing security hotspots, analyzing branches and pull requests, and monitoring project health. The server facilitates multi-project analysis, contextual code review, and improved assistant workflows through a standardized protocol.

    • 101
    • MCP
    • sapientpants/sonarqube-mcp-server
  • OpsLevel MCP Server

    OpsLevel MCP Server

    Read-only MCP server for integrating OpsLevel data with AI tools.

    OpsLevel MCP Server implements the Model Context Protocol to provide AI tools with a secure way to access and interact with OpsLevel account data. It supports read-only operations for a wide range of OpsLevel resources such as actions, campaigns, checks, components, documentation, domains, and more. The tool is compatible with popular environments including Claude Desktop and VS Code, enabling easy integration via configuration and API tokens. Installation options include Homebrew, Docker, and standalone binaries.

    • 8
    • MCP
    • OpsLevel/opslevel-mcp
  • docker-mcp

    docker-mcp

    A powerful MCP server for seamless Docker container and compose stack management.

    docker-mcp is a Model Context Protocol (MCP) server that enables robust Docker container and compose stack management via Claude AI. It offers easy installation through Smithery or manual setup, supporting container creation, Docker Compose stack deployment, log retrieval, and monitoring. Integration with the Claude Desktop app is straightforward, and the included MCP Inspector aids debugging. This tool simplifies Docker operations for automation and AI model interactions.

    • 419
    • MCP
    • QuantGeekDev/docker-mcp
  • Sourcerer MCP

    Sourcerer MCP

    Semantic code search & navigation MCP server for efficient AI agent context retrieval.

    Sourcerer MCP provides a Model Context Protocol (MCP) server that enables AI agents to perform semantic code search and navigation. By indexing codebases at the function, class, and chunk level, it allows agents to retrieve only the necessary code snippets, greatly reducing token consumption. The tool integrates with Tree-sitter for language parsing and OpenAI for generating code embeddings, supporting advanced contextual code understanding without full file ingestion.

    • 95
    • MCP
    • st3v3nmw/sourcerer-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results