MCP Server Chart

Turns data into chart images, diagrams and maps through AntV's rendering service

Official · AntV AI Visualization Team TypeScript Local · stdio Data and analyticsDesign

87 popularity score ★ 4.4k ↓ 3.6k/wk

Connect your client

Local (npm)

Add in one click

Opens the app, which asks before it adds the server.

Or add it by command or config

Claude CodeTerminal
claude mcp add chart -- npx -y @antv/mcp-server-chart
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "chart": {
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-chart"
      ]
    }
  }
}
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "chart": {
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-chart"
      ]
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "chart": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-chart"
      ]
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.chart]
command = "npx"
args = ["-y", "@antv/mcp-server-chart"]
Gemini CLITerminal
gemini mcp add --scope user chart npx -- -y @antv/mcp-server-chart
Local (from source)

Add in one click

Opens the app, which asks before it adds the server.

Or add it by command or config

FirstTerminal
git clone https://github.com/antvis/mcp-server-chart.git
cd mcp-server-chart
npm install
npm run build
Claude CodeTerminal
claude mcp add chart -- node build/index.js
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "chart": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "chart": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "chart": {
      "type": "stdio",
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.chart]
command = "node"
args = ["build/index.js"]
Gemini CLITerminal
gemini mcp add --scope user chart node -- build/index.js

Settings 3

VIS_REQUEST_SERVER Optional: URL of your own chart rendering service (e.g. GPT-Vis-SSR); defaults to https://antv-studio.alipay.com/api/gpt-vis.
SERVICE_ID Optional: Personal ID from the Alipay mini program, used to keep a chart generation history.
DISABLED_TOOLS Optional: Comma-separated tool names to hide.

What it does

MCP Server Chart comes from AntV, the Ant Group visualisation team. It offers one tool per chart type. The assistant passes data and options to a tool and gets back a link to a rendered image. Supported types include line, area, bar, column, pie, scatter, histogram, boxplot, violin, radar, funnel, sankey, treemap, venn, waterfall, liquid and word-cloud charts. It can also draw flowcharts, mind maps, fishbone diagrams, network graphs and organisation charts, as well as spreadsheets and pivot tables.

The server itself is a thin Node.js process. It sends each chart spec to a rendering endpoint, which by default is AntV's free hosted service at antv-studio.alipay.com. Point VIS_REQUEST_SERVER at a GPT-Vis-SSR instance and rendering happens on your own server instead. Three map tools (district, path and pin maps) use the AMap service and only cover China.

By default it talks to the client over stdio. It can also serve SSE or Streamable HTTP on port 1122, and the repository includes a docker-compose setup. DISABLED_TOOLS hides tools your client has trouble with. SERVICE_ID, created in an Alipay mini program, keeps a history of the charts you generate.

What it needs

RuntimeNode.js

Node.js with npx. Network access to AntV's hosted rendering service, or to your own GPT-Vis-SSR deployment set through VIS_REQUEST_SERVER. You need no account for basic use. Saving a chart history needs a SERVICE_ID made in the Alipay mini program.

Limits

The map tools (generate_district_map, generate_path_map, generate_pin_map) use AMap and only cover locations within China. They also do not work with a private GPT-Vis-SSR deployment. Charts come back as image URLs from the rendering service, not as local files. The server does not keep your results unless you set SERVICE_ID.

Who it suits

A good fit if you want an assistant to produce ready-made chart images from data it already has, with many chart and diagram types and no sign-up. Because the default setup sends chart data to AntV's hosted service, teams with sensitive data should run their own GPT-Vis-SSR and set VIS_REQUEST_SERVER. The alternative is a tool that renders charts fully on your machine. If you need maps outside China, look elsewhere.

Tools 27

generate_area_chart
Area chart showing a trend over a continuous axis
generate_bar_chart
Horizontal bar chart comparing categories
generate_boxplot_chart
Boxplot of median, quartiles and outliers
generate_column_chart
Vertical column chart comparing categories
generate_district_map
Map of administrative areas in China with values
generate_dual_axes_chart
Chart with two y-axes for series on different scales
generate_fishbone_diagram
Ishikawa diagram of a problem's causes
generate_flow_diagram
Flowchart of process steps
generate_funnel_chart
Funnel chart of drop-off between stages
generate_histogram_chart
Histogram of values grouped into bins
generate_line_chart
Line chart of values over time or another axis
generate_liquid_chart
Liquid-fill gauge showing a single percentage
generate_mind_map
Mind map of hierarchical ideas
generate_network_graph
Graph of nodes and the links between them
generate_organization_chart
Organisation chart of reporting lines
generate_path_map
Route map between points of interest in China
generate_pie_chart
Pie chart of shares of a whole
generate_pin_map
Map of points of interest in China as pins
generate_radar_chart
Radar chart comparing several dimensions
generate_sankey_chart
Sankey diagram of flows between nodes
generate_scatter_chart
Scatter plot of two variables
generate_treemap_chart
Treemap of hierarchical values as nested rectangles
generate_venn_chart
Venn diagram of set overlaps
generate_violin_chart
Violin plot of a value distribution
generate_waterfall_chart
Waterfall chart of running gains and losses
generate_word_cloud_chart
Word cloud sized by word frequency
generate_spreadsheet
Table, or a pivot table when rows or values are given

Similar servers