ui-layouts-mcp
Enables AI assistants to search, understand, and retrieve UI components from ui-layouts.com through tools like search, documentation, metadata, and source code access.
README
@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:
npxwill automatically download and run the latest version of@ui-layouts/mcpwhen 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 pagetext— plain text extracted from HTMLsnippet— 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
componentNamesfor 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_componentsmultiple 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)
- X: @naymur_dev
- LinkedIn: in/naymur-rahman
- LinkedIn: in/jinho-yeom
Be A Sponsor
<a href="https://buymeacoffee.com/uilayouts"> <img align="left" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="50" width="210" alt="naymur-uilayout" /></a> <br/>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。