ui-layouts-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ui-layouts-mcpsearch for accordion components"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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/mcpThis registers the MCP server under the CLI-safe name ui-layouts-mcp while still using the @ui-layouts/mcp npm package.
Related MCP server: Webpixels MCP Server
π οΈ 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 resultsFetches documentation for top candidates using
get_docsProvides 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 |
|
β‘ | Fetch their documentation (HTML/Text) |
|
β’ | Retrieve metadata & component links |
|
β£ | Get TSX source code from registry |
|
βοΈ Server Info
MCP server name (alias):
ui-layouts-mcpnpm package:
@ui-layouts/mcpVersion:
0.3.0Transport:
stdioBase 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ui-layouts/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server