ui-layouts-mcp
OfficialYou can explore ui-layouts components and retrieve their documentation, metadata, and source code through an MCP server.
Search docs pages, blocks sections, and registry item names with ranked results.
Fetch complete component documentation as raw MDX markdown, including registry item names.
Fetch structured HTML metadata such as title, description, keywords, Open Graph, and Twitter card.
Retrieve actual TypeScript/React source files for a registry item, plus required npm dependencies.
Follow a recommended workflow: search_components β get_docs β get_source_code.
Fetches component documentation as raw MDX markdown from the ui-layouts source repository on GitHub, letting AI assistants read installation guides, props tables, and structure snippets for UI components.
Click on "Deploy 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-mcp search 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: MCP Vue UI Kit Server
π οΈ Tools
π search_components
Search the ui-layouts.com docs pages, blocks sections, and registry item names.
Results are ranked, best match first. A query can have several words (e.g. drag and drop), and an entry that matches more of them ranks higher. Separators do not matter, so datepicker finds date picker.
A query word matches a whole word or the start of one (3 letters or more). There is no fuzzy or plural matching.
Each result lists the registry items that matched the query. Registry items that belong to no docs page are listed separately. Pass any of these names to get_source_code.
Parameters
qβ one or more words, matched against name, key, group, tags, and registry item nameslimitβ max results to return (default20, max100). The header shows how many matched in total (e.g.20 of 31), plus the count of matching items without a docs page
When it's useful
To find a specific UI component or block by name or tag
To find which entry a registry item (e.g.
btn-bg-shine) belongs toTo explore available components by category
π get_docs
Fetch the complete documentation for a component as raw MDX markdown, read from the ui-layouts source repo on GitHub.
Installation commands, props tables, and structure snippets come through as-is. The response header lists the entry's registry items. Pass one of those names to get_source_code to get the example code.
A blocks entry (e.g. hero-section) has no docs page, so it returns only its items.
Parameters
keyβ entry key (e.g.accordion,hero-section)hrefβ entry href (e.g./components/accordion,/blocks/hero-section), used whenkeyis omittedmaxCharsβ max characters of markdown to return (default20000)timeoutMsβ fetch timeout in milliseconds (default7000)
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, and Twitter card.
Registry item names for get_source_code come from get_docs, not from this tool.
When it's useful
To understand a componentβs intent or SEO context
To generate previews or summaries automatically
πΎ get_source_code
Fetch the actual TypeScript/React source code of a registry item directly from
https://www.ui-layouts.com/r/{componentName}.json.
The tool returns every file of the item, each under its path, so the files an example imports come with it. The header lists the npm dependencies to install.
maxChars is one budget across all files, spent in file order. When it runs out, the response ends with a notice that names the files that were cut short or left out and the maxChars that returns the rest.
Parameters
componentNameβ registry item name from theitemsofget_docs(e.g.liquid-glass-weather)maxCharsβ max characters of file content to return, across all files (default20000, max200000)timeoutMsβ fetch timeout in milliseconds (default7000)
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')One of
componentKeyorcomponentHrefis required.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 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: The path from a keyword to source code is:
search_components β get_docs β get_source_code
Step | Description | Example |
β | Find components matching a keyword or tag |
|
β‘ | Fetch the documentation (MDX) and item names |
|
β’ | Get the source files of an item |
|
β | Optional: page metadata (title, Open Graph) |
|
βοΈ Server Info
MCP server name (alias):
ui-layouts-mcpnpm package:
@ui-layouts/mcpTransport:
stdioBase URL: https://www.ui-layouts.com
π Updating the registry
src/registry.json is the index the tools search. It mirrors the docs navigation and registry.json of the ui-layouts site repo. When the site adds a docs page or a registry item, edit the file by hand.
π§ Example Usage in Cursor / Claude
> call tool search_components { "q": "slider" }
> call tool get_docs { "key": "range-slider" }
> call tool get_source_code { "componentName": "dual-range-slider" }π€ Author (Naymur & Jinho)
X: @naymur_dev
LinkedIn: in/naymur-rahman
LinkedIn: in/jinho-yeom
Be A Sponsor
Available Tools
4 toolsget_component_metaB
Fetch the HTML metadata (title, description, keywords, Open Graph, Twitter card) of a component's page on https://www.ui-layouts.com.
Inputs: key, href, timeoutMs.
get_docsA
Fetch the docs of a component as MDX markdown from the ui-layouts source repo. The header lists the entry's registry items; pass one of those names to get_source_code. A blocks entry has no docs page and returns only its items.
Inputs: key, href, maxChars, timeoutMs.
get_source_codeA
Fetch the source code of a registry item from https://www.ui-layouts.com/r/{componentName}.json. Returns every file of the item with its path, plus the npm dependencies to install. maxChars is one budget across all files; when it runs out, the response ends with a notice naming the files that were cut short or left out.
Inputs: componentName (required), maxChars, timeoutMs.
search_componentsA
Search ui-layouts docs pages, blocks sections, and registry item names. Results are ranked, best match first. A query can have several words, and an entry that matches more of them ranks higher. A query word matches a whole word or the start of one (3+ letters). There is no fuzzy or plural matching, so use the singular ('modal', not 'modals').
Inputs: q (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool has a distinct retrieval target: discovery via search_components, documentation MDX via get_docs, page metadata via get_component_meta, and registry source via get_source_code. The only mild overlap is between get_docs and get_component_meta, since both retrieve information about a component, but the descriptions clearly separate documentation content from HTML metadata.
All tool names use consistent snake_case and follow a verb_noun pattern: search_components, get_docs, get_component_meta, get_source_code. Retrieval tools share the get_ prefix, while the discovery tool uses search_, making the convention predictable.
Four tools is well-scoped for a documentation and registry lookup server: search, docs, metadata, and source code. Each tool serves a clear role without redundant operations.
The set covers discovery, documentation, metadata, and source-code retrieval, which are the core workflows for exploring ui-layouts components. A minor gap is the lack of a browsing or listing operation for components/blocks/registry items, though search_components largely compensates for this.
Maintenance
Related MCP Connectors
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
React + Tailwind UI components and recipes your AI coding tool can search and install.
React + Tailwind UI components and recipes your AI coding tool can search and install.
Search 700+ design layers and fetch the build prompt for HTML, Next.js, React, Vue and more.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.44-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access documentation of Vue UI components, including props, events, and slots, for generating correct usage code.7MIT
- AlicenseAqualityDmaintenanceProvides access to Aceternity UI component library documentation, enabling AI assistants to browse, search, and retrieve detailed information about components.315 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to retrieve React, Svelte, Vue, and React Native component source code, demos, blocks, and metadata for building UIs in AI-powered development workflows.10MIT