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

echarts-mcp

v0.0.2

Published

A MCP server to generate echarts image

Readme

📊 ECharts MCP 服务器

中文文档 | English

一个模型上下文协议(MCP)服务器,可以从 ECharts 配置生成精美的图表图像。

✨ 特性

  • 🎨 从 ECharts 配置生成高质量图表图像
  • 🖼️ 支持多种图表类型(柱状图、折线图、饼图、散点图等)
  • 📐 可自定义尺寸(宽度/高度)
  • 🎯 通过 MCP 轻松集成到 AI 助手中

⚙️ 配置

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

本地开发

如果你想从源码运行:

# 克隆仓库
git clone https://github.com/w2xi/echarts-mcp.git
cd echarts-mcp

# 安装依赖
npm install

# 运行服务器
npm start

然后配置你的 MCP 客户端:

{
  "mcpServers": {
    "echarts-mcp": {
      "command": "node",
      "args": ["/path/to/echarts-mcp/cli.js"],
    }
  }
}

📖 使用方法

配置完成后,你可以在 AI 助手中通过请求图表生成来使用 MCP 服务器:

示例提示:

  • "生成一个显示过去6个月销售数据的柱状图"
  • "创建一个显示市场份额分布的饼图"
  • "制作一个显示温度随时间变化的折线图"

工具参数:

  • width: 图表宽度(像素,例如 1000)
  • height: 图表高度(像素,例如 500)
  • echarts: ECharts 配置对象字符串

ECharts 配置示例:

{
  backgroundColor: '#fff',
  title: {
    text: '月度销售数据'
  },
  tooltip: {},
  legend: {
    data: ['销售额']
  },
  xAxis: {
    data: ['一月', '二月', '三月', '四月', '五月', '六月']
  },
  yAxis: {},
  series: [{
    name: '销售额',
    type: 'bar',
    data: [120, 200, 150, 80, 70, 110]
  }]
}

🛠️ 开发

脚本

  • npm start - 启动 MCP 服务器
  • npm test - 运行测试图表
  • npm run inspect - 使用调试工具检查 MCP 服务器

依赖项

  • ECharts: 图表生成库
  • Canvas: 服务器端画布渲染
  • MCP SDK: 模型上下文协议实现
  • Zod: 模式验证

🤝 贡献

欢迎贡献!请随时提交 Pull Request。

📄 许可证

MIT 许可证

🔗 链接


用 ❤️ 制作,作者:w2xi