Skip to main content
Glama
Shadcn UI MCP Server

Shadcn UI MCP Server

by heilgar

Shadcn UI MCP サーバー

Shadcn UIコンポーネントの開発エクスペリエンスを向上させるために設計された、強力で柔軟なMCP(モデル制御プロトコル)サーバーです。このサーバーは、高度なツールと機能を備え、UIコンポーネントの構築と管理のための堅牢な基盤を提供します。

特徴

ツール

MCP サーバーは、モデル制御プロトコルを通じて使用できる一連のツールを提供します。

  • list-components : 利用可能な shadcn/ui コンポーネントのリストを取得します。

  • get-component-docs : 特定のコンポーネントのドキュメントを取得する

  • install-component : shadcn/ui コンポーネントをインストールする

  • list-blocks : 利用可能なshadcn/uiブロックのリストを取得します

  • get-block-docs : 特定のブロックのドキュメントを取得する

  • install-blocks : shadcn/ui ブロックをインストールする

機能性

  • コンポーネント管理

    • 利用可能なshadcn/uiコンポーネントの一覧

    • 特定のコンポーネントの詳細なドキュメントを入手する

    • 複数のパッケージ マネージャー (npm、pnpm、yarn、bun) をサポートするコンポーネントをインストールします。

  • ブロック管理

    • 利用可能なshadcn/uiブロックの一覧

    • 特定のブロックのドキュメントとコードを入手する

    • 複数のパッケージマネージャーをサポートするインストールブロック

  • パッケージマネージャーのサポート

    • npm、pnpm、yarn、bun の柔軟なランタイム サポート

    • ユーザーの好みのパッケージマネージャーの自動検出

Related MCP server: aceternityui-mcp

インストール

前提条件

  • Node.js (v18以上)

  • npm または yarn パッケージマネージャー

クロードデスクトップ構成

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "shadcn-ui-server": {
      "command": "npx",
      "args": ["@heilgar/shadcn-ui-mcp-server"]
    }
  }
}

ウィンドサーフィンの構成

これを./codeium/windsurf/model_config.jsonに追加します:

{
  "mcpServers": {
    "shadcn-ui-server": {
      "command": "npx",
      "args": ["@heilgar/shadcn-ui-mcp-server"]
    }
  }
}

カーソルの設定

これを.cursor/mcp.jsonに追加します:

{
  "mcpServers": {
    "shadcn-ui-server": {
      "command": "npx",
      "args": ["@heilgar/shadcn-ui-mcp-server"]
    }
  }
}

開発とデバッグ

地域開発

  1. 依存関係をインストールします:

npm install
  1. サーバーを構築します。

npm run build

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。デバッグにはMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターはブラウザでデバッグ ツールにアクセスするための URL を提供し、次の操作が可能になります。

  • MCP通信を監視する

  • ツールの呼び出しと応答を検査する

  • サーバーの動作をデバッグする

  • リアルタイムログを表示する

関連プロジェクトと依存関係

このプロジェクトは、次のツールとライブラリを使用して構築されています。

ライセンス

MIT ライセンス - このプロジェクトはご自由にご自身の目的でご利用ください。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

Available Tools

6 tools
get-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

    C2.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers