Layro

io.github.Uvxxsh由 GitHub 账号 Uvxxsh 发布v1.0.2更新于 Oct 24, 2026

Search and install 112 production React, TypeScript and Tailwind CSS UI components from Layro.

发布方自己的服务:Layro

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

Layro React 与 Tailwind 组件库的远程 MCP 服务器,让助手搜索组件、读取属性与源码并获取安装步骤

可以做什么
搜索 Layro 组件目录并列出分类,返回每个组件和模板的访问级别与版本。读取单个组件的详情:属性、变体、npm 依赖、安装的文件、布局行为以及搭配使用的组件。获取完整组件源码及其导入的文件,或获取安装步骤,包括 shadcn 注册表配置和 CLI 命令。检查调用方是否有权获取某个组件或模板。读取主题的颜色令牌与改样式说明,并获取组合多个组件的完整可运行配方文件。
适用场景
适合在构建 React、Next.js 或 Tailwind 界面时使用,让助手找到合适的 Layro 组件、查看其 API 与源码,并用正确的安装命令接入,而不是靠猜测。
运行要求
通过 streamable HTTP 连接 layropro.com 的远程端点,需写入 MCP 客户端配置。搜索和组件详情无需账号。安装组件需要在 Authorization 请求头中携带来自 Layro 账户页面的 Bearer CLI 令牌;免费账号令牌可获取免费组件,终身访问可获取 Pro 组件。需要网络访问。
安装前请注意
Authorization 请求头携带机密 CLI 令牌,请勿放入共享配置或代码仓库。Pro 组件安装依赖付费的终身访问权限,且当连接带有 CLI 令牌时,get_installation 可能生成短期安装令牌。源码和安装输出会被写入项目,提交前请检查生成的文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Layro,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Uvxxsh%2Flayro/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "layro": {
      "type": "http",
      "url": "https://layropro.com/api/mcp"
    }
  }
}

README

Layro MCP

Layro is a library of 112 production React UI components written in TypeScript and styled with Tailwind CSS (62 free). Its remote MCP server gives Cursor, Claude Code, VS Code, Windsurf, Codex and other MCP clients access to the whole library. Your agent can search the library, read each component's props and usage, and install the tested component with pinned packages.

Install

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

json
{  "mcpServers": {    "layro": { "url": "https://layropro.com/api/mcp" }  }}

Search and component details work with no account. To install components, add the CLI token from https://layropro.com/account. A free account's token unlocks the 62 free components; lifetime access unlocks Pro:

json
{  "mcpServers": {    "layro": {      "url": "https://layropro.com/api/mcp",      "headers": { "Authorization": "Bearer YOUR_LAYRO_TOKEN" }    }  }}

Docs: https://layropro.com/mcp

来源:README.md,提交 757bc2f

工具

10

search_components

Search Layro components

Find Layro React + Tailwind components by what they do. Returns the best matches first with slug, category, access (free or pro) and version. Start here, then call get_component for details.

输入参数limitquery必填category

get_component

Get a Layro component

Everything about one component except its source: when to use it, props, variants, npm dependencies, the files it installs, a typechecked usage example with real props, how it sizes and scrolls (layout), the components it pairs with and the recipes it appears in.

输入参数slug必填

get_component_code

Get a Layro component's code

The complete source for one component and every file it imports, ready to save at the paths given. Free components need a free Layro account's token; Pro components need the caller's Layro lifetime access. Install with the shadcn CLI instead when you can run commands (see get_installation).

输入参数slug必填include_dependencies

get_installation

Install Layro components

Installation for one or more components: the one-time @layro registry setup for components.json, the shadcn CLI command (always @layro/<slug>, never a bare URL), a ready-to-run agent command with a 15-minute install token when this connection carries a CLI token, the npm packages still missing (pass installed_packages from package.json), the files and where they go, and the theme setup.

输入参数modeslugs必填package_managerinstalled_packages

list_categories

List Layro categories

The categories in the Layro catalogue with the components in each, plus the library contract: stack, theme, access, install path, and the accessibility and responsive behaviour every component has.

无需输入参数。

search_templates

Search Layro templates

Find complete Layro React / Next.js templates: what each is, its stack, a live preview and how it is licensed.

输入参数limitquery

get_template

Get a Layro template

One template's details and whether the caller may download it. Never returns the template's files.

输入参数slug必填

check_access

Check Layro access

Whether the caller can take a component or template, and why: free, subscriber, lifetime, purchased or unauthorized.

输入参数slug必填

get_theme

Get the Layro theme

The theme's colour tokens (light and dark values, and what each one colours), how to restyle Layro to a brand from your own CSS without editing components, the type scale, and the cn() config for it.

无需输入参数。

get_recipe

Get a Layro recipe

Complete, runnable files that combine several Layro components the way they fit together: an AI chat app shell (Sidebar + Conversation History + AI Chat, with a phone drawer), a dashboard app and a billing page. Without a slug, lists the recipes. Every recipe typechecks against the components.

输入参数slug

版本历史

2
  1. v1.0.2最新Oct 16, 2026
  2. v1.0.1Oct 15, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Layro 集成