Back to MCP directory
publicPublicdnsLocal runtime

mcp-echarts

MCP ECharts是一个通过AI动态生成Apache ECharts图表的工具,支持全功能ECharts语法及多种导出格式,轻量安全且无需远程服务。

article

README

🚀 MCP ECharts

MCP ECharts 可借助 AI MCP 动态生成 Apache ECharts 图表,适用于图表生成和数据分析。

✨ 主要特性

  • 全面支持 ECharts 的所有特性和语法,涵盖数据、样式、主题等方面。
  • 支持导出为 pngsvgoption 格式,并对 ECharts 进行验证,便于模型多轮输出正确的语法和图形。
  • 轻量级,可实现 零依赖 安装。
  • 高度 安全,完全在本地生成,不依赖任何远程服务。

💻 使用示例

基础用法

若要在 桌面应用程序(如 Claude、VSCode、Cline、Cherry Studio 等)中使用,需添加以下 MCP 服务器配置。

在 Mac 系统上:

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

在 Windows 系统上:

{
  "mcpServers": {
    "mcp-echarts": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "mcp-echarts"
      ]
    }
  }
}

此外,你还可以通过 HTTP、SSE 协议在阿里云、魔搭社区、glama.ai、smithery.ai 等平台上使用。

🔧 技术细节

开发步骤

安装依赖

npm install

构建服务器

npm run build

启动 MCP 服务器

npm run start

📄 许可证

本项目采用 MIT 许可证,版权归 hustcc 所有。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client