MCP Server Chart
Lets your AI agent generate more than 25 kinds of charts, maps and diagrams from your data using AntV.
4.4k stars on GitHubby AntVLicense MITUpdated 3 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add chart -- npx -y @antv/mcp-server-chart
What to fill in
| Name | What it is | Required |
|---|---|---|
VIS_REQUEST_SERVER | Custom chart generation service URL for private deployment | No |
SERVICE_ID | Service identifier for chart generation records | No |
DISABLED_TOOLS | Comma-separated list of tool names to disable | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Make a line chart of my monthly sales from this table.
Draw a flowchart of our customer sign-up process.
What it is
This server connects your agent to AntV chart generation. You give it data or describe what you want, and it creates a chart such as a line, bar, pie, funnel, mind map or flowchart. By default it uses a free chart service run by AntV, and you can point it at your own service.
What it can do
generate_line_chart: show a trend over timegenerate_bar_chartandgenerate_column_chart: compare categoriesgenerate_pie_chart: show proportionsgenerate_flow_diagram: draw the steps of a processgenerate_mind_map: show hierarchical ideasgenerate_sankey_chart: show how volume flows between nodesgenerate_word_cloud_chart: show word frequencygenerate_spreadsheet: show a table or pivot table
When to use
- βΊWhen you have a table of numbers and want a quick chart for a report.
- βΊWhen you need a flowchart, org chart or mind map made from a short description.
- βΊWhen you want your AI agent to analyze data and show the result as a picture.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
excalidraw-diagram-generatorHas your agent create visual diagrams from descriptions. It can generate flowcharts, mind maps, and system architectures in a format that can be opened in drawing software.chartLets your agent draw a bar, line, pie, scatter or similar chart when you ask for one, using a chart tool that renders the data.baoyu-diagramTeaches your agent to draw flows, org charts and system maps as SVG diagrams, with dark and light theme versions.Frequently asked questions
Is it free?
The readme says it provides a free chart generation service by default. The server itself is open source.
Do I need an API key?
No. A service ID is optional and only used to view chart generation records.
How many chart types are there?
The readme says it supports 26+ charts, including area, bar, boxplot, funnel, histogram, radar, treemap, venn and violin charts.
Can I run it privately?
Yes. Set the VIS_REQUEST_SERVER variable to your own chart service, for example one deployed with AntV's GPT-Vis-SSR.
Do the map charts work everywhere?
No. The map tools use the AMap service and only support maps within China. They are not supported in private deployment.
Can I turn some charts off?
Yes. Use the DISABLED_TOOLS variable with a comma-separated list of tool names.
If it does not work
- βΊOn Windows, use the cmd /c npx configuration shown in the readme.
- βΊAfter changing the config, restart your AI client fully and check that the server connected.
- βΊIf chart generation fails in a private setup, check that
VIS_REQUEST_SERVERpoints to a working service.
5 new skills a week. 1 minute to read.