@ui-layouts/mcpのロゴ

@ui-layouts/mcp

組織
ui-layouts

MCP server for AI-powered UI component discovery on ui-layouts.com — search, docs, metadata, and TSX source in one pipeline.

公開者ui-layouts
リポジトリmcp
言語TypeScript
フォーク
4
スター
33
利用可能なツール
4
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    @ui-layouts/mcpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 4個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには33件のスターと4件のフォークがあります。

@ui-layouts/mcp

npm version node version

MCP Badge

@ui-layouts/mcp provides AI assistants with several valuable tools to help them search, understand, and retrieve UI components from ui-layouts.com.

Each tool can be used independently, but they are designed to work together as a complete "component exploration pipeline."

📦 Installation & MCP Setup

Requirements

  • Node.js: >=20.10.0
  • MCP Client: Claude Desktop, Cursor, or compatible MCP client

Quick Start

Run @ui-layouts/mcp without installing it globally using npx. This is the recommended way to get started:

jsonc
{
  "mcpServers": {
    "ui-layouts-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["@ui-layouts/mcp"]
    }
  }
}

💡 Note: npx will automatically download and run the latest version of @ui-layouts/mcp when needed. No global installation required!

Using with Claude Code (CLI)

bash
claude mcp add ui-layouts-mcp --scope user -- npx -y @ui-layouts/mcp

This registers the MCP server under the CLI-safe name ui-layouts-mcp while still using the @ui-layouts/mcp npm package.


🛠️ Tools

🔍 search_components

Search through the ui-layouts.com component registry by component name, key, group, tags, or href. It performs intelligent matching to find components that meet your criteria and returns detailed information about each match.

When it's useful

  • To find a specific UI component by name or tag
  • To explore available components by category
  • To discover components with particular design or functional features

📘 get_docs

Fetch the complete documentation for a component from ui-layouts.com. You can choose how much content to return, including:

  • raw_html — the original HTML of the documentation page
  • text — plain text extracted from HTML
  • snippet — the main section (e.g. <article> or <main> content only)

When it's useful

  • To read implementation guides and examples
  • To view a component’s structure, props, or variants
  • To extract technical explanations for AI-assisted reasoning or integration

🧩 get_component_meta

Fetch structured HTML metadata for a specific component from ui-layouts.com. It includes fields such as title, description, keywords, Open Graph, Twitter card, and even custom metadata like component-names and available-components.

When it's useful

  • To understand a component’s intent or SEO context
  • To generate previews or summaries automatically
  • To retrieve linked componentNames for source code lookup

💾 get_source_code

Fetch the actual TypeScript/React source code of a component directly from https://ui-layouts.com/r/{component}.json. The tool reads the files[].content field from the JSON registry and returns the .tsx implementation.

When it's useful

  • To review or analyze the source code of a component
  • To use the component implementation as a code example
  • To verify that a component matches your design or API expectations

💬 Prompts

The MCP server also provides reusable prompt templates that guide AI assistants to perform complex tasks using the available tools.

🎯 find_component

Help find the best ui-layouts component(s) for specific requirements, use cases, or design needs.

Parameters:

  • requirements: What you need (e.g. 'collapsible content sections with smooth animation')
  • tags (optional): Comma-separated tags to filter by (e.g. 'interactive,layout')
  • maxCandidates (optional): Max candidates to fetch docs for (default: '3', range: 1-10)

What it does:

  • Generates multiple search queries with synonyms
  • Calls search_components multiple times and merges results
  • Fetches documentation for top candidates using get_docs
  • Provides structured recommendations with:
    • Recommended: name/key/href/tags, why, trade-offs
    • Alternatives: 1-3 alternative options
    • Next steps: Exact tool calls to continue

Strategy:

  • Uses intelligent search with synonyms (e.g. accordion/collapse/disclosure)
  • Prioritizes components matching provided tags
  • Ranks by relevance and compares multiple candidates

🛠️ implement_component

Get a step-by-step implementation guide for a ui-layouts component, including code examples, integration steps, and best practices.

Parameters:

  • componentKey (optional): Component key (e.g. 'accordion', 'sparkles-title')
  • componentHref (optional): Component href (e.g. '/components/accordion')
  • framework (optional): Target framework (e.g. 'react', 'next', 'vite', 'general', default: 'react')
  • includeSourceCode (optional): Whether to include source code ('true' or 'false', default: 'true')

What it does:

  • Fetches component documentation, metadata, and optionally source code
  • Generates a comprehensive implementation guide with:
    • Overview: Component purpose, features, and when to use
    • Installation: Dependencies and setup for the target framework
    • Basic Usage: Minimal working example with explanations
    • Configuration: Available props and customization options
    • Advanced Examples: Real-world use cases with code
    • Integration: Framework-specific setup and patterns
    • Styling & Customization: Theming and appearance customization
    • Best Practices: Performance tips, accessibility, common pitfalls
    • Troubleshooting: Common issues and solutions

Output:

  • Practical, copy-paste ready code examples
  • Framework-specific integration guidance
  • Real code from source when available

🔗 Recommended Workflow

💡 Tip: Combine these tools for a full exploration experience: search_components → get_docs → get_component_meta → get_source_code

StepDescriptionExample
①Find components matching a keyword or tagsearch_components { "q": "accordion" }
②Fetch their documentation (HTML/Text)get_docs { "key": "accordion", "format": "snippet" }
③Retrieve metadata & component linksget_component_meta { "key": "accordion" }
④Get TSX source code from registryget_source_code { "componentName": "single-layout-accordion" }

⚙️ Server Info

  • MCP server name (alias): ui-layouts-mcp
  • npm package: @ui-layouts/mcp
  • Version: 0.3.0
  • Transport: stdio
  • Base URL: https://ui-layouts.com

🧠 Example Usage in Cursor / Claude

bash
> call tool search_components { "q": "slider" }
> call tool get_docs { "key": "align-slider" }
> call tool get_component_meta { "key": "align-slider" }
> call tool get_source_code { "componentName": "align-slider" }

👤 Author (Naymur & Jinho)

Be A Sponsor

インストール

TypingMind
{
  "mcpServers": {
    "ui-layouts-mcp": {
      "command": "npx",
      "args": [
        "@ui-layouts/mcp"
      ]
    }
  }
}

利用可能なツール

  • search_components

    Search ui-layouts components by name / key / group / tags / href.

  • get_docs

    Fetch docs HTML for a component from ui-layouts.com and return as raw_html, plain text, or a main-section snippet.

  • get_component_meta

    Fetch remote HTML metadata from https://ui-layouts.com by calling https://ui-layouts.com//<registry.href>.

  • get_source_code

    Fetch component source code bundle from https://ui-layouts.com/r/{key}.json (or custom filename), list files and optionally return a specific file content.

@ui-layouts/mcpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度@ui-layouts/mcpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

@ui-layouts/mcpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. @ui-layouts/mcpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "ui-layouts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ui-layouts/mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いて@ui-layouts/mcpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. @ui-layouts/mcpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
@ui-layouts/mcpを使ってこのタスクを手伝ってもらえますか?
@ui-layouts/mcp
はい、読みました。
@ui-layouts/mcpで調べた結果をお伝えします。

よくある質問

@ui-layouts/mcp MCPサーバーは何に使いますか?

@ui-layouts/mcpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindで@ui-layouts/mcp MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルで@ui-layouts/mcpを利用できます。

TypingMindで@ui-layouts/mcp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。@ui-layouts/mcpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

@ui-layouts/mcp MCPをTypingMindに接続するにはどうすればよいですか?

@ui-layouts/mcpはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindで@ui-layouts/mcp MCPのどのようなツールを利用できますか?

@ui-layouts/mcpは4個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

@ui-layouts/mcp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。@ui-layouts/mcpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇