daisyui-mcp
by birdseyevue·★ 67·综合分 46
一个高效的 MCP 服务器,为 AI 助手提供 DaisyUI 组件文档。
ai-llmdeveloper-toolsproductivity
14
Forks
0
活跃 Issue
1 个月前
最近提交
2 天前
收录于
概述
DaisyUI MCP 服务器是一个专用工具,通过 MCP 协议让 AI 助手访问和使用 DaisyUI 组件文档。它从 DaisyUI 的 llms.txt 文件获取组件文档,并将其本地存储为 markdown 文件,提供两个主要工具:list_components 和 get_component。该服务器使用 FastMCP 构建,性能优化,能高效访问 UI 组件信息。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:AI 助手使用 DaisyUI 组件构建用户界面
你:开发者快速查找 DaisyUI 语法和示例
你:团队统一使用 DaisyUI 实现一致的用户界面
你:如何更新 DaisyUI 组件文档?
你:可以自定义组件文档吗?
什么时候选它
当使用 DaisyUI 构建应用程序并通过 AI 助手需要高效访问组件文档时,选择此服务器。
什么时候不要选它
如果您需要即时访问 DaisyUI 的最新文档,不要选择此选项,因为更新需要手动执行更新脚本。
此 server 暴露的工具
从 README 抽取出 2 个工具list_componentsLists all available DaisyUI components with short descriptions
get_componentGets the full documentation for a specific component
可对比工具
ui-mcptailwindcss-mcpweb-component-docs-mcp
安装
安装
- 克隆仓库:
git clone https://github.com/birdseyevue/daisyui-mcp.git
cd daisyui-mcp- 创建虚拟环境:
python -m venv venv
source venv/bin/activate # Windows 上使用 venv\Scripts\activate- 安装依赖:
pip install -r requirements.txt- 获取组件文档:
python update_components.py- 运行服务器:
python mcp_server.pyClaude Desktop 配置
添加到 claude_desktop_config.json:
{
"mcpServers": {
"daisyui": {
"command": "<仓库路径>/venv/bin/python",
"args": ["<仓库路径>/mcp_server.py"]
}
}
}FAQ
- 如何更新 DaisyUI 组件文档?
- 运行 'python update_components.py' 命令,从 DaisyUI 的 llms.txt 文件获取最新文档。
- 可以自定义组件文档吗?
- 是的,您可以编辑 'components/' 目录中的 markdown 文件,添加自定义组件或修改现有组件以符合项目需求。
daisyui-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。