Skip to content
Back to search

echarts-mcp

Apache ECharts MCP Server

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/apache/echarts-mcp with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/apache/echarts-mcp'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/apache--echarts-mcp/badge.svg)](/listings/apache--echarts-mcp)

HTML

<a href="/listings/apache--echarts-mcp"><img src="/api/listings/apache--echarts-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npm install

Create an `.env` file. See `.env.example` for reference. You need to have the access to a [baidubce/bce-sdk-js](https://github.com/baidubce/bce-sdk-js) account to store the images on the cloud.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 56 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # ECharts MCP
  2. This project shows how to implement an MCP (Model Context Protocol) server of Apache ECharts.
  3. The basic workflow is that it gets chart type, data and other parameters from an LLM, and returns the cloud image URL of the generated ECharts chart.
  4. Supported ECharts series types: `'bar', 'line', 'pie', 'scatter', 'funnel', 'tree', 'treemap', 'sunburst'`.
  5. ## Setup
  6. ```sh
  7. npm install
  8. ```
  9. Create an `.env` file. See `.env.example` for reference. You need to have the access to a [baidubce/bce-sdk-js](https://github.com/baidubce/bce-sdk-js) account to store the images on the cloud.
  10. ## Run
  11. ```sh
  12. # Run the MCP server
  13. npm run dev
  14. # Run the inspector in another terminal
  15. npm run inspect
  16. ```
  17. ## FAQ
  18. ### How to change image cloud storage?
  19. By default, it uses [baidubce/bce-sdk-js](https://github.com/baidubce/bce-sdk-js) to store the generated image and return the URL of the image on the cloud. If you wish to use other Cloud storage, change the implemenation in `src/storage.js`.
  20. ### How to change ECharts theme?
  21. See `registerTheme` and `registerFont` comments in `src/chart.js`.
  22. ### How to support more series types?
  23. 1. Change `inputSchema` in `src/index.js`
  24. 2. Normalize `data` in `src/chart.js`
  25. You are welcomed to make a pull request.
  26. ## Discussion of Implementation
  27. To make an MCP server of Apache ECharts, there are 3 common ways to do:
  28. 1. Ask LLM to provide a full ECharts option
  29. 2. Ask LLM to provide pre-fined parameters including chart themes
  30. 3. Ask LLM to provide pre-fined minimal parameters
  31. The advantage of Approach 1 is that is has the potential of making all kinds of charts that ECharts supports. But it may not be stable, especially for less frequently used chart types.
  32. Approach 2 gives the freedom to change chart themes from prompt. For example, you may ask the LLM to `generate a chart with red bars of data ...`. But this approach requires a lot of parameters in order to support so many ECharts options. And it degenerates to approach 1 as the number of parameters grows.
  33. Approach 3 asks LLM to provide minimal parameters like series type, data, seriesName, title, and axisName. The chart theme is defined in the app so that only the developer of this app, rather than users can change the theme. We believe this is the best way to provide stable results and so this is the approach we take in this project.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.