SuperAPI AI Directory

mcp-echarts

mcp-echarts is a chart generation tool based on the MCP protocol that allows AI to dynamically generate Apache ECharts charts for chart creation and data analysis. It fully supports ECharts features such as data, styles, and themes, supports exporting to png, svg, and option formats, and can optionally use MinIO object storage to output URLs instead of Base64. The project is lightweight, has no installation dependencies, and generates everything entirely locally without relying on remote services. It requires Node.js 18 or higher and can be integrated with desktop applications such as Claude, VSCode, Cline, and Cherry Studio, and also supports HTTP and SSE protocols.

Open website

About this tool

mcp-echarts is a tool that uses AI MCP to dynamically generate Apache ECharts charts, mainly for chart generation and data analysis.

Purpose This tool is aimed at scenarios that require AI-assisted generation of visualization charts, such as chart creation in data analysis. In addition to itself, mcp-server-chart can also be used to generate charts, graphs, and maps.

Main capabilities It fully supports all ECharts features and syntax, including data, styles, themes, etc.; supports exporting to png, svg, and option formats; and provides validation for ECharts to help the model output correct syntax and graphics over multiple rounds. It can optionally integrate MinIO object storage to store charts in MinIO and return URLs instead of Base64 data for better performance and sharing capability. The tool is lightweight, can be installed with zero dependencies, and is very secure, generating entirely locally without relying on any remote services. The usage requirement is Node.js 18 or higher.

Usage Desktop applications (stdio transport): It can be used with desktop applications such as Claude, VSCode, Cline, and Cherry Studio, and the MCP server configuration below needs to be added. The specific configuration code content is not provided in the materials. In addition, it can be used on platforms such as modelscope, glama.ai, and skillselion.com via HTTP and SSE protocols.

Run with SSE or Streamable transport First install the package globally. Then run the server according to the selected transport method, after which it can be accessed via the following addresses: SSE transport:http://localhost:3033/sse Streamable transport:http://localhost:3033/mcp CLI options can also be used when running the MCP server, and the command options can be viewed by running cli with -h.

MinIO configuration (optional) For better performance and sharing capability, MinIO object storage can be configured to store chart images as URLs instead of Base64 data. If MinIO is not configured or MinIO is unavailable, the system will automatically fall back to Base64 data output to ensure compatibility. The following MinIO object storage providers can be integrated: MinIO (high-performance, S3-compatible object storage, integrated directly using the MinIO JavaScript Client), Amazon S3 (using the AWS SDK with a compatible API endpoint), Alibaba Cloud OSS (using the Alibaba Cloud OSS SDK), Google Cloud Storage (using the Google Cloud SDK or a compatible API), Microsoft Azure Blob Storage (using the Azure SDK to access Blob storage), Tencent Cloud COS (integrated using the Tencent Cloud COS SDK). MinIO can also be set up locally for free.

Install and start MinIO locally:

Download MinIO (macOS example)

brew install minio/stable/minio

Start MinIO server

minio server ~/minio-data --console-address :9001

Configure environment variables:

Copy the example environment file

cp .env.example .env

Edit .env with your MinIO settings

MINIO_ENDPOINT=localhost MINIO_PORT=9000 MINIO_USE_SSL=false MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_BUCKET_NAME=mcp-echarts

After that, install dependencies, build the server, and start the MCP server.

Applicable scenarios Suitable for situations that require AI conversation or MCP clientScenarios for dynamically generating ECharts charts on the client side, performing data analysis, and outputting visualizations, which can be used in combination with various desktop applications or platforms that support MCP.

Limitations Requires Node.js 18 or later. MinIO is optional; when not configured, it falls back to Base64 output. The materials do not provide specific information such as fees, pricing, platform support scope, or performance data.