MCP ECharts
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Generate Apache ECharts with AI MCP dynamically for chart generation and data analysis. _Also you can use mcp-server-chart to generate chart, graph, map._
✨ Features
- Fully support all features and syntax of ECharts, include data, style, theme and so on.
- Support exporting to png, svg, and option formats, with validation for ECharts to facilitate the model's multi-round output of correct syntax and graphics.
- MinIO Integration, store charts in MinIO object storage and return URLs instead of Base64 data for better performance and sharing capabilities.
- Lightweight, we can install it easily with zero dependence.
- Extremely secure, fully generated locally, without relying on any remote services.
🤖 Usage
Prerequisites
- Node.js 18 or higher is required.
Desktop Applications (stdio transport)
To use with Desktop APP, such as Claude, VSCode, Cline, Cherry Studio, and so on, add the MCP server config below. On Mac system:
On Window system:
Also, you can use it on modelscope, glama.ai, skillselion.com or others with HTTP, SSE Protocol.
🚰 Run with SSE or Streamable transport
Install the package globally.
Run the server with your preferred transport option:
Then you can access the server at:
- SSE transport: http://localhost:3033/sse
- Streamable transport: http://localhost:3033/mcp
🎮 CLI Options
You can also use the following CLI options when running the MCP server. Command options by run cli with -h.
🗂️ MinIO Configuration (Optional)
For better performance and sharing capabilities, you can configure MinIO object storage to store chart images as URLs instead of Base64 data.
> [!NOTE]
> If MinIO is not configured or unavailable, the system automatically falls back to Base64 data output, ensuring compatibility.
We can Integrate with MinIO object storage providers below.
- MinIO: High-performance, S3-compatible object storage. Use MinIO JavaScript Client for direct integration.
- Amazon S3: Use AWS SDK with compatible API endpoint.
- Alibaba Cloud OSS: Use the Alibaba Cloud SDK for OSS services.
- Google Cloud Storage: Integrate using Google Cloud SDK or compatible API.
- Microsoft Azure Blob Storage: Use Azure SDK for Blob storage access.
- Tencent Cloud COS: Use the Tencent Cloud SDK for COS integration.
Also, we can setup MinIO locally for free.