Element-UI MCP Server

Element-UI MCP Server

Provides comprehensive Element-UI v2.15.14 component documentation including properties, events, and usage examples to help AI assistants generate accurate Vue 2 code.

Category
Visit Server

README

Element-UI MCP Server

中文文档

A Model Context Protocol (MCP) server that provides comprehensive information about Element-UI v2.15.14 components. This server enables AI assistants to query Element-UI component documentation, properties, events, and usage examples.

Project Introduction

Vue.js is an extremely powerful frontend framework, and Element-UI is one of the most popular and mature UI component libraries from the Vue 2 era. Although the Vue ecosystem has now entered the Vue 3 era, with Element-UI's last commit being on August 24, 2023, there are still many projects based on Vue 2 + Element-UI that continue to be maintained and iterated.

To enable large language models to more accurately understand Element-UI's components, properties, events, and examples when reading, generating, and completing code, and to further improve our development efficiency in maintaining legacy projects, I drew inspiration from the practices of other excellent component libraries and built this Element-UI dedicated MCP Server.

I hope it will be useful in your daily development and save more time for fellow developers who continue to maintain Vue 2 projects.

Features

  • 📋 List Components - Get a complete list of all Element-UI components
  • 🔍 Search Components - Search components by name or description
  • 📖 Component Details - Get detailed information about specific components
  • ⚙️ Component Properties - Access all props, types, and defaults for components
  • 🎯 Component Events - View all events and their parameters
  • 📝 Usage Examples - Extract code examples from component documentation

Installation

# Clone the repository
git clone https://github.com/yun8711/element-ui-mcp.git
cd element-ui-mcp

# Install dependencies
pnpm install

# Build the project
pnpm run build

MCP API

The server provides 6 MCP API:

1. list_components

Lists all available Element-UI components.

2. search_components

Search for components by keyword.

Parameters:

  • keyword: Search term
  • limit (optional): Maximum number of results

3. get_component

Get detailed information about a specific component.

Parameters:

  • tagName: Component tag name (e.g., "el-button")

4. get_component_props

Get all properties for a specific component.

Parameters:

  • tagName: Component tag name
  • propName (optional): Specific property name

5. get_component_events

Get all events for a specific component.

Parameters:

  • tagName: Component tag name
  • eventName (optional): Specific event name

6. get_component_examples

Get usage examples for a specific component.

Parameters:

  • tagName: Component tag name
  • exampleIndex (optional): Index of specific example

MCP Integration

To use this server with MCP-compatible clients, you can configure it in two ways:

Option 1: Local Installation

If you have cloned and built the project locally:

{
  "mcpServers": {
    "element-ui": {
      "command": "node",
      "args": ["/path/to/element-ui-mcp/stdio.js"]
    }
  }
}

Option 2: Global Installation (Recommended)

Install the package globally and use npx:

npm install -g element-ui-mcp

Then configure in your MCP client:

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

The npx approach is recommended as it automatically manages the package and ensures you're using the latest version.

Data Source

The component data is extracted from Element-UI v2.15.14 documentation and type definitions, including:

  • Component properties and types
  • Event definitions
  • Usage examples from documentation
  • TypeScript definitions

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured