shadcn-ui-mcp-server  by Jpisnice

LLM server for shadcn/ui component access

created 4 months ago
1,691 stars

Top 25.1% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a Model Context Protocol (MCP) server designed to give AI assistants deep context about shadcn/ui components. It enables tools like Continue.dev, Cursor, and Claude Desktop to access component source code, demos, blocks, and metadata, significantly enhancing AI-powered UI development and learning.

How It Works

The server acts as a bridge, fetching data directly from the shadcn/ui (React) or shadcn-svelte (Svelte) GitHub repositories. It leverages the GitHub API for efficient data retrieval and caching, supporting various MCP tools for component source code, demos, blocks, and metadata. This approach allows AI models to understand and generate code based on real-world component implementations.

Quick Start & Requirements

  • Install/Run: npx @jpisnice/shadcn-ui-mcp-server
  • Prerequisites: Node.js 18+ (for npx). A GitHub Personal Access Token is highly recommended for increased API rate limits (5000/hour vs. 60/hour).
  • Setup Time: Instantaneous via npx.
  • Docs: shadcn-ui-mcp-server

Highlighted Details

  • Supports both React (shadcn/ui) and Svelte (shadcn-svelte) frameworks via a --framework flag.
  • Integrates with popular AI development tools like Continue.dev, Cursor, Claude Desktop, and VS Code extensions.
  • Provides specific tools for AI interaction: get_component, get_component_demo, list_components, get_component_metadata, get_block, list_blocks, get_directory_structure.

Maintenance & Community

The project is maintained by Jpisnice. Links to support, discussions, documentation, and the npm package are available in the README.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

Without a GitHub API token, users are subject to strict API rate limits (60 requests/hour), which can hinder frequent or extensive usage. The project relies on the stability and structure of the shadcn/ui and shadcn-svelte GitHub repositories.

Health Check
Last commit

4 days ago

Responsiveness

Inactive

Pull Requests (30d)
10
Issues (30d)
12
Star History
1,488 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), and
2 more.

fragments by e2b-dev

0.5%
6k
Next.js template for AI-generated apps
created 1 year ago
updated 20 hours ago
Feedback? Help us improve.