ECharts logo

ECharts

Community
w2xi

A MCP server to generate echarts image

Publisherw2xi
Repositoryecharts-mcp
LanguageJavaScript
Forks
0
Stars
7
Available tools
1
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    ECharts exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 1 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    7 stars and 0 forks from the linked repository.

📊 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

json
{
  "mcpServers": {
    "echarts-mcp": {
      "command": "npx",
      "args": ["echarts-mcp"],
    }
  }
}

🔧 Local Development

If you want to run from source:

bash
# 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:

json
{
  "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:

javascript
{
  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


Made with ❤️ by w2xi

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "echarts-mcp": {
      "command": "npx",
      "args": [
        "echarts-mcp"
      ]
    }
  }
}

Available Tools

  • generate-echarts

    Generate an echarts image from a given echarts configuration

Use ECharts MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once ECharts is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add ECharts as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the ECharts MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "echarts": {
      "command": "npx",
      "args": [
        "-y",
        "echarts-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the ECharts MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the ECharts MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use ECharts to help me with this task?
ECharts
Sure. I read it.
Here is what I found using ECharts.

Frequently asked questions

What is the ECharts MCP server used for?

ECharts is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use ECharts MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use ECharts with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use ECharts MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With ECharts connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect ECharts MCP to TypingMind?

ECharts runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does ECharts MCP provide in TypingMind?

ECharts exposes 1 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use ECharts MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If ECharts requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇