npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@thunder_ai/mcp-element-ui

v1.1.9

Published

Element Plus 的 ModelContextProtocol (MCP) 服务器

Downloads

42

Readme

MCP Element UI

Element UI 的 ModelContextProtocol (MCP) 服务器,为 AI 助手提供 Element UI 组件的元数据信息。

功能特点

  • 提供 Element UI 组件的完整元数据
  • 支持组件属性、事件、插槽的查询
  • 包含组件示例代码和最佳实践
  • 实时更新的组件文档数据
  • 支持主题定制和样式变量管理

安装

npm install @thunder_ai/mcp-element-ui

使用方法

在 Claude Desktop 中使用

claude_desktop_config.json 中添加以下配置:

{
  "mcpServers": {
    "element-ui": {
      "command": "npx",
      "args": ["-y", "@thunder_ai/mcp-element-ui"]
    }
  }
}

在 Cursor 中使用

在 AI 助手配置中添加以下设置:

{
  "mcpServers": {
    "element-ui": {
      "command": "npx",
      "args": ["-y", "@thunder_ai/mcp-element-ui"]
    }
  }
}

可用工具

1. 获取组件元数据

use_mcp_tool({
  server_name: "element-ui",
  tool_name: "get_component_meta",
  arguments: {
    component: "Button"
  }
});

返回组件的完整元数据,包括:

  • 属性定义
  • 事件定义
  • 插槽信息
  • 类型定义
  • 示例代码

2. 搜索组件

use_mcp_tool({
  server_name: "element-ui",
  tool_name: "search_components",
  arguments: {
    query: "表单"
  }
});

根据关键词搜索相关组件。

3. 获取组件列表

use_mcp_tool({
  server_name: "element-ui",
  tool_name: "list_components",
  arguments: {}
});

返回所有可用组件的列表。

4. 主题定制工具

主题定制工具提供了一系列用于查询和自定义主题样式的功能:

// 获取所有主题变量列表
use_mcp_tool({
  server_name: "element-ui",
  tool_name: "mcp_element_ui_getThemeVars",
  arguments: {}
});

// 获取默认主题配置
use_mcp_tool({
  server_name: "element-ui",
  tool_name: "mcp_element_ui_getThemeDefault",
  arguments: {}
});

// 获取颜色系统配置
use_mcp_tool({
  server_name: "element-ui",
  tool_name: "mcp_element_ui_getColorSystem",
  arguments: {}
});

// 自定义主题配置
use_mcp_tool({
  server_name: "element-ui",
  tool_name: "mcp_element_ui_customizeTheme",
  arguments: {
    config: {
      colors: {
        primary: '#409EFF',
        success: '#67C23A'
      },
      border: {
        radius: {
          base: '4px'
        }
      }
    }
  }
});

// 生成主题样式
use_mcp_tool({
  server_name: "element-ui",
  tool_name: "mcp_element_ui_generateTheme",
  arguments: {
    config: {
      colors: {
        primary: '#409EFF'
      }
    },
    format: 'css'  // 或 'scss'
  }
});

支持的主题配置项包括:

  • 颜色系统(主色、功能色、文本色等)
  • 边框样式(颜色、圆角)
  • 字体设置(大小、字体族)

开发

# 安装依赖
npm install

# 开发模式
npm run dev

# 构建
npm run build

# 测试
npm run test

许可证

MIT

作者

Thunder AI