JUHE API Marketplace
w2xi avatar
MCP Server

ECharts MCP Server

A Model Context Protocol server that generates beautiful chart images from ECharts configurations, supporting various chart types with customizable dimensions.

5
GitHub Stars
11/21/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. echarts-mcp

README Documentation

πŸ“Š 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

βš™οΈ 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 start

Then 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 server
  • npm test - Run test charts
  • npm 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

  • ECharts Documentation
  • Model Context Protocol

Made with ❀️ by w2xi

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright Β© 2025 - All rights reserved