MCP ECharts
The MCP ECharts server dynamically generates interactive charts and visualizations using Apache ECharts for data analysis and visualization.
Key capabilities:
Generate 15+ chart types including line, bar, pie, radar, scatter, sankey, funnel, gauge, treemap, sunburst, heatmap, candlestick, boxplot, graph, parallel coordinates, and tree charts
Custom chart generation by providing full ECharts options and configurations
Multiple export formats - PNG, SVG images, or raw ECharts option JSON
MinIO integration for storing chart images in object storage with URL returns, fallback to Base64
Customizable properties including themes (default/dark), dimensions, titles, axis labels, smooth curves, stacking, grouping, and chart-specific options
Multi-protocol support with stdio transport for desktop apps (VSCode, Claude), SSE, and streamable transport for web applications
Flexible deployment - run locally or globally via npm with CLI options
Privacy-focused with zero dependencies and local generation ensuring data security
Generates Apache ECharts diagrams and charts dynamically. Supports all ECharts features including data, style, and themes. Enables exporting to PNG, SVG, and option formats with validation to ensure correct syntax and graphics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP ECharts create a bar chart showing monthly sales data for 2024"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP ECharts

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, andoptionformats, with validation forEChartsto facilitate the model's multi-round output of correct syntax and graphics.MinIO Integration, store charts in
MinIOobject 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.
Related MCP server: ECharts MCP Server
๐ค 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:
{
"mcpServers": {
"mcp-echarts": {
"command": "npx",
"args": [
"-y",
"mcp-echarts"
]
}
}
}On Window system:
{
"mcpServers": {
"mcp-echarts": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"mcp-echarts"
]
}
}
}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.
npm install -g mcp-echartsRun the server with your preferred transport option:
# For SSE transport (default endpoint: /sse)
mcp-echarts -t sse
# For Streamable transport with custom endpoint
mcp-echarts -t streamableThen you can access the server at:
SSE transport:
http://localhost:3033/sseStreamable 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.
MCP ECharts CLI
Options:
--transport, -t Specify the transport protocol: "stdio", "sse", or "streamable" (default: "stdio")
--port, -p Specify the port for SSE or streamable transport (default: 3033)
--endpoint, -e Specify the endpoint for the transport:
- For SSE: default is "/sse"
- For streamable: default is "/mcp"
--help, -h Show this help message๐๏ธ 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.
If MinIO is not configured or unavailable, the system automatically falls back toBase64 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.
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.
Install and start MinIO locally:
# Download MinIO (macOS example) brew install minio/stable/minio # Start MinIO server minio server ~/minio-data --console-address :9001Configure 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
๐จ Development
Install dependencies:
npm installBuild the server:
npm run buildStart the MCP server:
npm run start๐ง๐ปโ๐ป Contributors
susuperli: Use
MinIOto save the chart image base64 and return the url. #10Meet-student: Add
outputTypeschema for all chart tools. #24hustcc: Initial the repo.
๐ License
MIT@hustcc.
Available Tools
18 toolsgenerate_area_chartB
Generate an area chart to show data trends under continuous independent variables and observe the overall data trend, such as, displacement = velocity (average or instantaneous) ร time: s = v ร t. If the x-axis is time (t) and the y-axis is velocity (v) at each moment, an area chart allows you to observe the trend of velocity over time and infer the distance traveled by the area's size.
Inputs: data (required), axisXTitle, axisYTitle, height, +8 more.
generate_bar_chartB
Generate a bar chart to show data for numerical comparisons among different categories, such as, comparing categorical data and for horizontal comparisons.
Inputs: data (required), axisXTitle, axisYTitle, height, +6 more.
generate_boxplot_chartB
Generate a boxplot chart to show data for statistical summaries among different categories, such as, comparing the distribution of data points across categories.
Inputs: data (required), axisXTitle, axisYTitle, height, +4 more.
generate_candlestick_chartA
Generate a candlestick chart for financial data visualization, such as, stock prices, cryptocurrency prices, or other OHLC (Open-High-Low-Close) data.
Inputs: data (required), height, showVolume, theme, +3 more.
generate_echartsB
Generate visual charts using Apache ECharts with echarts option and configuration dynamically. Apache ECharts is an Open Source JavaScript Visualization Library, which is used to create interactive charts and visualizations in web applications. It supports a wide range of chart types, including line charts, bar charts, pie charts, scatter plots, and more. ECharts is highly customizable and can be integrated with various data sources to create dynamic visualizations.
Inputs: echartsOption (required), width, height, theme, +1 more.
generate_funnel_chartA
Generate a funnel chart to visualize the progressive reduction of data as it passes through stages, such as, the conversion rates of users from visiting a website to completing a purchase.
Inputs: data (required), height, theme, title, +2 more.
generate_gauge_chartC
Generate a gauge chart to display single indicator's current status, such as, CPU usage rate, completion progress, or performance scores.
Inputs: data (required), height, max, min, +4 more.
generate_graph_chartB
Generate a network graph chart to show relationships (edges) between entities (nodes), such as, relationships between people in social networks.
Inputs: data (required), height, layout, theme, +3 more.
generate_heatmap_chartB
Generate a heatmap chart to display data density or intensity distribution, such as, user activity patterns by time and day, or correlation matrix.
Inputs: data (required), axisXTitle, axisYTitle, height, +4 more.
generate_line_chartB
Generate a line chart to show trends over time, such as, the ratio of Apple computer sales to Apple's profits changed from 2000 to 2016.
Inputs: data (required), axisXTitle, axisYTitle, height, +8 more.
generate_parallel_chartB
Generate a parallel coordinates chart to display multi-dimensional data, such as, comparing different products across multiple attributes.
Inputs: data (required), dimensions (required), height, theme, +3 more.
generate_pie_chartB
Generate a pie chart to show the proportion of parts, such as, market share and budget allocation.
Inputs: data (required), height, innerRadius, theme, +3 more.
generate_radar_chartB
Generate a radar chart to display multidimensional data (four dimensions or more), such as, evaluate Huawei and Apple phones in terms of five dimensions: ease of use, functionality, camera, benchmark scores, and battery life.
Inputs: data (required), height, theme, title, +2 more.
generate_sankey_chartB
Generate a sankey chart to visualize the flow of data between different stages or categories, such as, the user journey from landing on a page to completing a purchase.
Inputs: data (required), height, nodeAlign, theme, +3 more.
generate_scatter_chartA
Generate a scatter chart to show the relationship between two variables, helps discover their relationship or trends, such as, the strength of correlation, data distribution patterns.
Inputs: data (required), axisXTitle, axisYTitle, height, +4 more.
generate_sunburst_chartB
Generate a sunburst chart to display multi-level hierarchical data, such as, organizational structure, file system hierarchy, or category breakdown.
Inputs: data (required), height, theme, title, +2 more.
generate_tree_chartB
Generate a tree chart to display hierarchical data structure, such as, organizational chart, family tree, or file directory structure.
Inputs: data (required), height, layout, orient, +4 more.
generate_treemap_chartB
Generate a treemap chart to display hierarchical data and can intuitively show comparisons between items at the same level, such as, show disk space usage with treemap.
Inputs: data (required), height, theme, title, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 18 tools
Most tools target distinct chart types with clear purposes. However, the generic 'generate_echarts' tool overlaps with all others, potentially causing confusion if an agent misselects it instead of a specific chart function.
All tools follow the exact same naming pattern: 'generate_<chart_type>_chart'. This is perfectly consistent and predictable.
18 tools is a well-scoped count for a chart generation server. It covers a broad range of chart types without being overwhelming, and each tool serves a distinct purpose.
The server covers most major chart types needed for general visualization, including specialized ones like boxplot and candlestick. Minor missing types (e.g., maps, 3D) are acceptable gaps.
Maintenance
Related MCP Connectors
Generate production-ready chart code (Recharts, Chart.js, ECharts, Plotly) from a prompt.
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagrโฆ
- ChartPaneDeprecatedcom.chartpane.mcp
Renders interactive Chart.js charts and dashboards inline in AI conversations. Supports bar, line, area, pie, doughnut, scatter, and radar charts with multi-chart dashboard grids.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables generation of 25+ types of charts and data visualizations using AntV, including bar charts, line charts, maps, mind maps, and specialized diagrams like fishbone and sankey charts. Supports both statistical charts and geographic visualizations for comprehensive data analysis and presentation.205 npm-
- AlicenseNot gradedqualityDmaintenanceEnables generation of various chart types (bar, line, pie, scatter, radar, heatmap, and more) using ECharts library, returning preview URLs to visualize data through natural language requests.45 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate safe, runnable HTML chart pages from structured JSON data using Apache ECharts. It provides tools for chart type recommendation, page generation, validation, and patching with controlled, deterministic output.4 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to generate and render charts as PNG, SVG, or WebP images directly in chat interfaces. Supports Chart.js specifications and natural language descriptions for creating visualizations from data.31MIT