Menghasilkan gambar chart ECharts dari data dan parameter yang diberikan oleh LLM, lalu mengembalikan URL gambar yang di-host di cloud.
Juga dikenal sebagai apache/echarts-mcp
- Stars
- 87
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- —
- Commit terakhir
- 13 Nov 2026
- Lisensi
- Apache-2.0
Apa itu Apache ECharts MCP?
Apache ECharts adalah MCP server. Menghasilkan gambar chart ECharts dari data dan parameter yang diberikan oleh LLM, lalu mengembalikan URL gambar yang di-host di cloud.
Ringkasan dibuat dari README proyek
Tentang Apache ECharts MCP server
Fungsi utama dari server ini adalah memvisualisasikan data melalui chart Apache ECharts langsung dari interface chat AI. Server ini menerima parameter spesifik seperti series type, data, seriesName, title, dan axisName dari LLM untuk menghasilkan representasi visual. Server ini mendukung berbagai tipe series termasuk bar, line, pie, scatter, funnel, tree, treemap, dan sunburst.
Developer dapat menggunakan tool ini dengan cara menginstallnya via npm dan melakukan konfigurasi pada file environment. Anda memerlukan akun baidubce/bce-sdk-js untuk menangani cloud storage bagi gambar yang dihasilkan. Setelah chart dibuat, server akan mengembalikan URL gambar yang di-host di cloud langsung ke client. Meskipun implementasinya menggunakan tema default tertentu, developer dapat memodifikasi logika storage di src/storage.js atau menyesuaikan tema dan font di dalam source code.
Apa yang bisa Anda lakukan dengannya
- 1Menghasilkan tipe chart tertentuMinta AI untuk membuat bar atau pie chart menggunakan dataset yang tersedia.
- 2Membuat visualisasi data yang stabilMinta chart menggunakan parameter minimal untuk memastikan output yang konsisten dan andal.
- 3Menyimpan chart di cloud storageMengunggah gambar chart yang dihasilkan secara otomatis ke cloud provider dan menerima URL-nya.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Pengecekan otomatis
Berjalan 15 Nov 2026Laporan lengkap →Belum diverifikasi. Sebuah server memerlukan skor 80, tidak ada temuan serius, dan data yang cukup untuk kami periksa. Cara kerja checks · Yang perlu diperbaiki untuk menambah poin
- Source repository terhubung dan dapat dijangkauapache/echarts-mcp is public and reachablegithub.com/apache/echarts-mcp ↗Lolos
- Nama paket mencantumkan repositori ini sebagai sumbernyaTidak diperiksa
- Provenance build (atestasi Sigstore)Tidak diperiksa
- Lisensi open source (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-13github.com/apache/echarts-mcp ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerTidak diperiksa
- Tidak ada advisory kritis pada paket atau dependensinyaTidak diperiksa
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote merespons handshake MCPTidak diperiksa
README
Lihat di GitHubECharts MCP
This project shows how to implement an MCP (Model Context Protocol) server of Apache ECharts.
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.
Supported ECharts series types: 'bar', 'line', 'pie', 'scatter', 'funnel', 'tree', 'treemap', 'sunburst'.
Setup
npm install
Create an .env file. See .env.example for reference. You need to have the access to a baidubce/bce-sdk-js account to store the images on the cloud.
Run
# Run the MCP server
npm run dev
# Run the inspector in another terminal
npm run inspect
FAQ
How to change image cloud storage?
By default, it uses 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.
How to change ECharts theme?
See registerTheme and registerFont comments in src/chart.js.
How to support more series types?
- Change
inputSchemainsrc/index.js - Normalize
datainsrc/chart.js
You are welcomed to make a pull request.
Discussion of Implementation
To make an MCP server of Apache ECharts, there are 3 common ways to do:
- Ask LLM to provide a full ECharts option
- Ask LLM to provide pre-fined parameters including chart themes
- Ask LLM to provide pre-fined minimal parameters
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.
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.
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.
Pertanyaan tentang Apache ECharts MCP
Bagaimana cara menggunakan penyedia cloud storage yang berbeda untuk gambar tersebut?
Anda dapat mengubah implementasi storage dengan memodifikasi kode di src/storage.js.
Bagaimana cara memodifikasi tema ECharts?
Modifikasi tema dapat dilakukan dengan mengikuti komentar registerTheme dan registerFont yang ada di src/chart.js.
Tipe chart apa saja yang didukung oleh server ini?
Server ini mendukung tipe series bar, line, pie, scatter, funnel, tree, treemap, dan sunburst.