Shadcn UI MCP Server
Shadcn UI MCP-Server
Ein leistungsstarker und flexibler MCP-Server (Model Control Protocol), der die Entwicklung mit Shadcn-UI-Komponenten verbessert. Dieser Server bietet eine robuste Grundlage für die Erstellung und Verwaltung von UI-Komponenten mit erweiterten Tools und Funktionen.
Merkmale
Werkzeuge
Der MCP-Server bietet eine Reihe von Tools, die über das Model Control Protocol verwendet werden können:
list-components: Ruft die Liste der verfügbaren Shadcn/UI-Komponenten abget-component-docs: Dokumentation für eine bestimmte Komponente abrufeninstall-component: Installiert eine shadcn/ui-Komponentelist-blocks: Ruft die Liste der verfügbaren Shadcn/UI-Blöcke abget-block-docs: Dokumentation für einen bestimmten Block abrufeninstall-blocks: Installieren Sie einen Shadcn/UI-Block
Funktionalität
Komponentenverwaltung
Liste der verfügbaren Shadcn/UI-Komponenten
Erhalten Sie detaillierte Dokumentationen zu bestimmten Komponenten
Installieren Sie Komponenten mit Unterstützung für mehrere Paketmanager (npm, pnpm, yarn, bun).
Blockverwaltung
Liste der verfügbaren Shadcn/UI-Blöcke
Holen Sie sich Dokumentation und Code für bestimmte Blöcke
Installieren Sie Blöcke mit Unterstützung für mehrere Paketmanager
Paketmanager-Unterstützung
Flexible Laufzeitunterstützung für npm, pnpm, yarn und bun
Automatische Erkennung des bevorzugten Paketmanagers des Benutzers
Related MCP server: aceternityui-mcp
Installation
Voraussetzungen
Node.js (v18 oder höher)
npm oder yarn Paketmanager
Claude Desktop-Konfiguration
Zur Verwendung mit Claude Desktop fügen Sie die Serverkonfiguration hinzu:
Unter MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Unter Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}Windsurf-Konfiguration
Fügen Sie dies zu Ihrer ./codeium/windsurf/model_config.json hinzu:
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}Cursorkonfiguration
Fügen Sie dies zu Ihrer .cursor/mcp.json hinzu:
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}Entwicklung und Debugging
Lokale Entwicklung
Installieren Sie Abhängigkeiten:
npm installErstellen Sie den Server:
npm run buildDebuggen
Da MCP-Server über stdio kommunizieren, kann das Debuggen eine Herausforderung darstellen. Wir empfehlen die Verwendung des MCP Inspector zum Debuggen:
npm run inspectorDer Inspector stellt eine URL für den Zugriff auf Debugging-Tools in Ihrem Browser bereit, die Ihnen Folgendes ermöglicht:
Überwachen Sie die MCP-Kommunikation
Überprüfen Sie Tool-Aufrufe und -Antworten
Debuggen des Serververhaltens
Echtzeitprotokolle anzeigen
Zugehörige Projekte und Abhängigkeiten
Dieses Projekt wurde mit den folgenden Tools und Bibliotheken erstellt:
Model Context Protocol TypeScript SDK – Das offizielle TypeScript SDK für MCP-Server und -Clients
MCP Inspector – Ein Debugging-Tool für MCP-Server
Cheerio – Schnelle, flexible und schlanke Implementierung des Core-jQuery, speziell für den Server entwickelt
Lizenz
MIT-Lizenz – Sie können dieses Projekt gerne für Ihre eigenen Zwecke verwenden.
Beitragen
Beiträge sind willkommen! Senden Sie gerne einen Pull Request.
Available Tools
6 toolsget-block-docsD
Inputs: block (required).
get-component-docsD
Inputs: component (required).
install-blocksD
Inputs: block (required), runtime.
install-componentD
Inputs: component (required), runtime.
list-blocksD
Inputs: no named parameters.
list-componentsD
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: get-block-docs and get-component-docs retrieve documentation, install-blocks and install-component handle installation, and list-blocks and list-components provide listings. The block/component distinction and action types (get, install, list) create unambiguous boundaries.
All tools follow a perfect verb-noun pattern with consistent kebab-case formatting: get-block-docs, get-component-docs, install-blocks, install-component, list-blocks, list-components. The naming is completely predictable and follows the same structural convention throughout.
Six tools is reasonable for a Shadcn UI server, covering documentation retrieval, installation, and listing for both blocks and components. While slightly minimal, it provides core functionality without being overwhelming. A few additional tools like update or search might enhance it but aren't essential.
The toolset covers the main workflows for Shadcn UI: discovering components/blocks (list), accessing documentation (get), and installation (install). Minor gaps exist, such as no update/uninstall tools or search functionality, but the core CRUD-like operations for this domain are well-represented.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
The Figma MCP server brings Figma design context directly into your AI workflow.
Related MCP Servers
- AlicenseCqualityCmaintenanceA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.37ISC
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to search, discover, and install Aceternity UI components programmatically.5114 npm27MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server provides tools to install and manage shadcn/ui components directly from AI coding agents.2MIT
- AlicenseAqualityDmaintenanceA secure MCP server that gives AI coding assistants direct access to the shadcn/ui registry, enabling fetching, installing, and wiring up components without switching context.84MIT