/ 目录 / 演练场 / FlyonUI MCP
● 官方 themeselection ⚡ 即开即用

FlyonUI MCP

作者 themeselection · themeselection/flyonui-mcp

Generate FlyonUI (Tailwind + DaisyUI) components and blocks from a prompt.

FlyonUI is a Tailwind + DaisyUI component library. This MCP exposes its component catalog so Claude can scaffold buttons, cards, dashboards directly with FlyonUI's class conventions instead of inventing CSS.

为什么要用

核心特性

实时演示

实际使用效果

flyonui-mcp.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "flyonui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flyonui/mcp"
      ]
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "flyonui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flyonui/mcp"
      ]
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "flyonui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flyonui/mcp"
      ]
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "flyonui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flyonui/mcp"
      ]
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "flyonui-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@flyonui/mcp"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "flyonui-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@flyonui/mcp"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add flyonui-mcp -- npx -y @flyonui/mcp

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: FlyonUI MCP

Scaffold a SaaS dashboard skeleton without writing Tailwind by hand

👤 Frontend devs starting a new project ⏱ ~15 min intermediate

何时使用: You want a fast first version of a layout with consistent design tokens.

前置条件
  • Server/skill installed and authenticated — See repo README
步骤
  1. Pick blocks
    List FlyonUI dashboard blocks. I want a sidebar, top nav, stats cards row, and a data table.✓ 已复制
    → Names of matching blocks
  2. Compose
    Compose them into one HTML file. Use the slate theme.✓ 已复制
    → One file with the four blocks stitched together

结果: A reasonable v0 dashboard layout in seconds.

注意事项
  • FlyonUI's class names track DaisyUI versions. If you mix with shadcn or vanilla Tailwind, components may visually clash. — FlyonUI's class names track DaisyUI versions. If you mix with shadcn or vanilla Tailwind, components may visually clash.
搭配使用: filesystem · 21st-dev-magic-mcp

组合

与其他 MCP 搭配,撬动十倍杠杆

flyonui-mcp + filesystem

Pair with filesystem for complementary capabilities

Use this server together with filesystem to complete a multi-step task.✓ 已复制
flyonui-mcp + 21st-dev-magic-mcp

Pair with 21st-dev-magic-mcp for complementary capabilities

Use this server together with 21st-dev-magic-mcp to complete a multi-step task.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
list_components category Browse available components free
get_component name, variant Fetch one component as code free
get_block name Get a full section (hero, pricing, etc.) free

成本与限制

运行它的成本

API 配额
See provider docs for rate limits
每次调用 Token 数
Varies by tool
费用
See repo README for pricing details
提示
Cache tool results and avoid repeated identical calls.

安全

权限、密钥、影响范围

凭据存储: Use environment variables; never commit secrets
数据出站: Tool calls go to the provider's API as documented

故障排查

常见错误与修复

component not found

Use list_components to confirm the exact name (e.g. 'card-bordered' vs 'card').

验证: list_components includes the name
classes don't render

Make sure your Tailwind config includes DaisyUI as a plugin and FlyonUI's class paths.

验证: Inspect element in the browser

替代方案

FlyonUI MCP 对比其他方案

替代方案何时用它替代权衡
21st-dev/magic-mcpYou want LLM-generated bespoke componentsLess consistent; more flexible

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills