Idux Ui
FreeNot checkedProvides smart access to iDux UI component library, enabling AI assistants to retrieve component information, documentation, and usage examples via MCP tools.
About
Provides smart access to iDux UI component library, enabling AI assistants to retrieve component information, documentation, and usage examples via MCP tools.
README
idux-ui-mcp 是一个基于 Model Context Protocol (MCP) 的mcp服务,提供对 iDux UI 组件库的智能访问。本mcp服务允许开发者和 AI 助手更有效地检索 iDux 组件信息、文档和示例代码。
功能特性
Tools:
- list_idux_components: 获取所有可用的 idux 组件列表
- get_component_details: 获取特定 idux 组件的详细信息
- get_component_examples: 获取特定 idux 组件的使用示例
- search_components: 通过关键词搜索 idux 组件
- update_components_cache: 手动更新组件信息缓存
优势对比
相较于 RAG (Retrieval-Augmented Generation) 方案:
| 特性 | RAG 方案 | idux-ui-mcp |
|---|---|---|
| 数据新鲜度 | 依赖训练数据更新周期 | 可以实时从官方源获取 |
| 信息准确性 | 相似度匹配、信息不全 | 100% 精确匹配且信息完整 |
| 响应速度 | 向量检索耗时 | 本地缓存,毫秒级响应 |
| 版本控制 | 不支持 | 支持多版本切换 |
使用场景
场景一:开发使用idux-ui 的 web页面
实现一个TODO List应用,要求TODO项使用表格展示,UI组件使用idux
场景二:组件库问答
idux 的 pagination 组件如何实现分页总数自定义的效果
安装
使用npx
{
"mcpServers": {
"idux-ui-mcp": {
"command": "npx",
"args": ["-y", "idux-ui-mcp"]
}
}
}
环境变量配置:
| 环境变量 | 描述 | 必须 | 示例 | 默认值 |
|---|---|---|---|---|
| IDUX_ZIP_URL_VUE2 | Vue2 版本 zip 包下载地址(预留) | 否 | https://your.domain/idux-vue2.zip | - |
| IDUX_ZIP_URL_VUE3 | Vue3 版本 zip 包下载地址 | 否 | https://your.domain/idux-vue3.zip | https://github.com/IDuxFE/idux/archive/refs/heads/main.zip |
| DEFAULT_VUE_VERSION | 默认使用的Vue版本 | 否 | vue3 | vue3 |
| DOWNLOAD_TIMEOUT | 下载超时时间(毫秒) | 否 | 60000 | 60000 |
| LOG_LEVEL | 日志级别(debug/info/warn/error) | 否 | error | error |
{
"mcpServers": {
"idux-ui-mcp": {
"command": "...",
"args": ["..."],
"env": {
"DOWNLOAD_TIMEOUT": "60000",
"LOG_LEVEL": "error"
}
}
}
}
开发
# 构建项目
pnpm build
# 监视文件变更并自动重新构建
pnpm watch
# 运行测试
pnpm test
调试
使用 MCP Inspector 工具可以对服务器进行调试:
# 先构建项目
pnpm watch
npx @modelcontextprotocol/inspector node dist/index.js
缓存机制
组件信息缓存存储在用户目录下:
- macOS/Linux:
~/.idux-mcp/cache/ - Windows:
%USERPROFILE%\.idux-mcp\cache\
缓存清除也可以选择直接删掉上面的目录
日志
日志存放在缓存目录:~/.idux-mcp/logs/ or %USERPROFILE%\.idux-mcp\logs\
Install Idux Ui in Claude Desktop, Claude Code & Cursor
unyly install idux-ui-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add idux-ui-mcp -- npx -y idux-ui-mcpFAQ
Is Idux Ui MCP free?
Yes, Idux Ui MCP is free — one-click install via Unyly at no cost.
Does Idux Ui need an API key?
No, Idux Ui runs without API keys or environment variables.
Is Idux Ui hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Idux Ui in Claude Desktop, Claude Code or Cursor?
Open Idux Ui on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
by passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
by dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
by NOVA-3951PIX4Dmatic
Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem
by jangjo123Compare Idux Ui with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All design MCPs
