AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Ui Layouts Mcp

mcp-ui-layouts-mcp · by ui-layouts

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

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add mcp-ui-layouts-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-ui-layouts-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ui Layouts Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

@ui-layouts/mcp

[](https://www.npmjs.com/package/@ui-layouts/mcp) [](https://www.npmjs.com/package/@ui-layouts/mcp)

[](https://lobehub.com/mcp/ui-layouts-mcp)

@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:

{
  "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)

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. ` or ` 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

| Step | Description | Example | | ---- | ----------------------------------------- | ---------------------------------------------------------------- | | ① | Find components matching a keyword or tag | search_components { "q": "accordion" } | | ② | Fetch their documentation (HTML/Text) | get_docs { "key": "accordion", "format": "snippet" } | | ③ | Retrieve metadata & component links | get_component_meta { "key": "accordion" } | | ④ | Get TSX source code from registry | get_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

> 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

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.