Layro

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

我该使用它吗

质量与安全性

A
描述质量
96%
模式完整度
89%
命名质量
100%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(1)

  • LOWTool 'get_component' description lacks action verb在 get_component 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,203token 数(工具定义)
~880 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.94%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

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

远程端点

https://layropro.com/api/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢search_components(query, category, limit)

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.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "What you need, in plain words: \"animated dashboard card\", \"date range picker\"."
    },
    "category": {
      "description": "Only this category (name or slug from list_categories).",
      "type": "string",
      "maxLength": 64
    },
    "limit": {
      "description": "How many results. Default 8.",
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    }
  },
  "required": [
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_component(slug)

Everything about one component except its source: description, props, variants, npm dependencies, the files it installs, a usage example, accessibility and responsive behaviour.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 200,
      "description": "A component slug, like \"data-table\"."
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_component_code(slug, include_dependencies)

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).

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 200,
      "description": "A component slug, like \"data-table\"."
    },
    "include_dependencies": {
      "description": "Also return every file it imports (the theme, foundations, sibling components). Default true. Set false only if those are already in the project.",
      "type": "boolean"
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_installation(slugs, package_manager, installed_packages)

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.

输入模式

{
  "type": "object",
  "properties": {
    "slugs": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "description": "One or more component slugs."
    },
    "package_manager": {
      "description": "Default npm.",
      "type": "string",
      "enum": [
        "npm",
        "pnpm",
        "yarn",
        "bun"
      ]
    },
    "installed_packages": {
      "description": "npm packages the project already has (from package.json), so they are not suggested again.",
      "maxItems": 300,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 214
      }
    }
  },
  "required": [
    "slugs"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_categories

The categories in the Layro catalogue, with the components Layro MCP offers in each.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_templates(query, limit)

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

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "description": "What the template is for. Leave out to list all templates.",
      "type": "string",
      "maxLength": 200
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_template(slug)

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

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 200,
      "description": "A template slug, like \"settle\"."
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢check_access(slug)

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

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 200,
      "description": "A component or template slug."
    }
  },
  "required": [
    "slug"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具