mcp
v1.0.0MCP server for ui-layouts (local STDIO)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_components
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').
| Parameter | Type | Description |
|---|---|---|
q * | string | One or more words matched against name, key, group, tags, and registry item names (e.g. 'accordion', 'drag and drop', 'btn-bg-shine') |
limit | integer |
get_docs
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.
| Parameter | Type | Description |
|---|---|---|
href | string | Entry href (e.g. '/components/accordion', '/blocks/hero-section') |
key | string | Entry key (e.g. 'accordion', 'hero-section') |
maxChars | integer | |
timeoutMs | integer |
get_component_meta
Fetch the HTML metadata (title, description, keywords, Open Graph, Twitter card) of a component's page on https://www.ui-layouts.com.
| Parameter | Type | Description |
|---|---|---|
href | string | Entry href (e.g. '/components/sparkles-title') |
key | string | Entry key (e.g. 'sparkles-title') |
timeoutMs | integer |
get_source_code
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.
| Parameter | Type | Description |
|---|---|---|
componentName * | string | Registry item name from the items of get_docs (e.g. 'liquid-glass-weather', 'btn-bg-shine') |
maxChars | integer | |
timeoutMs | integer |