@ui-layouts/mcp logo

@ui-layouts/mcp

Organization
ui-layouts

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

Publisherui-layouts
Repositorymcp
LanguageTypeScript
Forks
4
Stars
33
Available tools
4
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    @ui-layouts/mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 4 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    33 stars and 4 forks from the linked repository.

@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

Installation

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

Available Tools

  • 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.

Use @ui-layouts/mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once @ui-layouts/mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add @ui-layouts/mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the @ui-layouts/mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ui-layouts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ui-layouts/mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the @ui-layouts/mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the @ui-layouts/mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use @ui-layouts/mcp to help me with this task?
@ui-layouts/mcp
Sure. I read it.
Here is what I found using @ui-layouts/mcp.

Frequently asked questions

What is the @ui-layouts/mcp MCP server used for?

@ui-layouts/mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use @ui-layouts/mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use @ui-layouts/mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use @ui-layouts/mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With @ui-layouts/mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect @ui-layouts/mcp MCP to TypingMind?

@ui-layouts/mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does @ui-layouts/mcp MCP provide in TypingMind?

@ui-layouts/mcp exposes 4 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use @ui-layouts/mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If @ui-layouts/mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇