ECharts MCP Server
Integrates with Apache ECharts to generate high-quality chart images from ECharts configurations, supporting various chart types like bar, line, pie, scatter and more with customizable dimensions.
Utilizes Zod for schema validation of chart configurations, ensuring properly formatted input data for chart generation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
📊 ECharts MCP Server
中文文档 | English
A Model Context Protocol (MCP) server that generates beautiful chart images from ECharts configurations.
✨ Features
🎨 Generate high-quality chart images from ECharts configurations
🖼️ Support for various chart types (bar, line, pie, scatter, etc.)
📐 Customizable dimensions (width/height)
🎯 Easy integration with AI assistants via MCP
Related MCP server: ECharts MCP
⚙️ Configuration
.cursor/mcp.json
{
"mcpServers": {
"echarts-mcp": {
"command": "npx",
"args": ["echarts-mcp"],
}
}
}🔧 Local Development
If you want to run from source:
# Clone the repository
git clone https://github.com/w2xi/echarts-mcp.git
cd echarts-mcp
# Install dependencies
npm install
# Run the server
npm startThen configure your MCP client:
{
"mcpServers": {
"echarts-mcp": {
"command": "node",
"args": ["/path/to/echarts-mcp/cli.js"],
"env": {}
}
}
}📖 Usage
Once configured, you can use the MCP server in your AI assistant by requesting chart generation:
Example Prompts:
"Generate a bar chart showing sales data for the last 6 months"
"Create a pie chart displaying market share distribution"
"Make a line chart with temperature data over time"
Tool Parameters:
width: Chart width in pixels (e.g., 1000)height: Chart height in pixels (e.g., 500)echarts: ECharts configuration object as string
Example ECharts Configuration:
{
backgroundColor: '#fff',
title: {
text: 'Monthly Sales Data'
},
tooltip: {},
legend: {
data: ['Sales']
},
xAxis: {
data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
},
yAxis: {},
series: [{
name: 'Sales',
type: 'bar',
data: [120, 200, 150, 80, 70, 110]
}]
}🛠️ Development
Scripts
npm start- Start the MCP servernpm test- Run test chartsnpm run inspect- Inspect the MCP server with debugging tools
Dependencies
ECharts: Chart generation library
Canvas: Server-side canvas rendering
MCP SDK: Model Context Protocol implementation
Zod: Schema validation
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License
🔗 Links
Made with ❤️ by w2xi
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Render branded chart images (PNG, SVG, WebP, PDF) and KPI cards from a JSON spec or plain data.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
ChartAnt is a remote MCP server that gives your AI assistant 51 tools to draw charts, diagrams and maps as real PNG images with their own link, ready for email, Slack, slides or a README. - 40+ chart and diagram types: line, bar, column, pie, area, scatter, funnel, sankey, treemap, waterfall, gantt, heatmap, KPI cards, dashboards, flowcharts, mind maps, org charts and more. - Maps of every country: world maps, the states, provinces or regions of any country, and pin maps from coordinates. Region names in 20+ languages, with "did you mean" hints for names that don't match. - Charts that stay updated: sign in once and your assistant can save a chart at a fixed link. Later, say "add 10% to this month's sales" and the image at the same link updates. Copies can go to Slack, Teams, Discord or email on every change or on a schedule. - Nothing to install and no API key: paste the URL into Claude, ChatGPT, Cursor, VS Code, Windsurf or n8n. - EU-hosted. Chart data is used only to draw the image and is never logged.
Related MCP Servers
- TypeScriptMIT
- AlicenseNot gradedqualityCmaintenanceAn MCP (Model Context Protocol) server that enables LLMs to generate ECharts visualizations by accepting chart type, data and parameters and returning cloud image URLs of the generated charts.88Apache 2.0
- AlicenseAqualityBmaintenanceA Model Context Protocol server that converts Mermaid diagram code into various image formats (PNG, JPG, SVG, PDF) with theme customization options for AI clients.39MIT
- AlicenseCqualityDmaintenanceA server based on Model Context Protocol (MCP), providing a standardized interface for interacting with Quick Chart and supporting chart generation and management.12Apache 2.0