mcp-server-chart is a TypeScript Model Context Protocol (MCP) server that turns AntV’s visualization stack into agent-callable tools for automatic chart generation and lightweight data analysis. Out of the box it exposes more than 20–25 chart generators—covering staples like bar, line, area, histogram and pie, plus advanced visuals such as dual-axes, heatmaps, radar, flow and fishbone diagrams—so an AI client can request a chart and receive an image URL in return. The server can run over stdio for desktop IDEs or via SSE/“streamable” HTTP transport, making it easy to plug into MCP-capable clients and platforms (including Dify) without custom glue code. A simple CLI and environment variables control behavior, including disabling specific tools, selecting a visualization request service, or tagging a service instance for multi-tenant setups. The README documents private deployment, record generation, and tool filtering, giving teams a path from local experimentation to managed usage.
Features
- 25+ ready-to-use chart tools powered by AntV (bar, line, dual-axes, heatmap, radar, flow, fishbone, etc.)
- Multiple transports: stdio and SSE/streamable HTTP for easy IDE or service integration
- One-command install via npm or Homebrew with Node 18+ compatibility
- Configurable via env vars and CLI flags, including tool disabling and service identifiers
- Returns hosted image URLs for generated charts, suitable for embedding in agent outputs and reports
- Deployment guidance for private use, plus utilities for record generation and tool filtering