mcp-server-chart: Empowering Chart Generation and Data Analysis with AntV

Summary
mcp-server-chart is a powerful Model Context Protocol (MCP) server from AntV, specializing in chart generation and data analysis. It provides over 25 diverse chart types, enabling users to create rich visualizations through various MCP tools and integrations. This TypeScript-based solution simplifies complex data representation, making it accessible for a wide range of analytical needs, including LLM-powered applications.
Repository Info
Tags
Click on any tag to explore related repositories
Introduction
The mcp-server-chart repository by AntV introduces a robust Model Context Protocol (MCP) server designed for advanced chart generation and data analysis. Leveraging the extensive capabilities of the AntV visualization library, this server empowers users to create over 25 distinct visual charts. It serves as a crucial tool for transforming raw data into insightful visualizations, supporting applications from data exploration to integration with large language models (LLMs).
Installation
Getting started with mcp-server-chart is straightforward, offering multiple deployment options.
Global npm Installation:
For direct execution, install the package globally:
npm install -g @antv/mcp-server-chart
Then, run the server with your preferred transport option (SSE or Streamable):
mcp-server-chart --transport sse
# Access at http://localhost:1122/sse
Docker Deployment:
For containerized environments, use Docker Compose:
cd docker
docker compose up -d
# Access at http://localhost:1123/sse (SSE) or http://localhost:1122/mcp (Streamable)
Desktop Application Integration (npx):
Integrate mcp-server-chart with desktop applications like Claude, VSCode, or Cursor by adding it to your MCP server configuration.
On Mac systems:
{
"mcpServers": {
"mcp-server-chart": {
"command": "npx",
"args": ["-y", "@antv/mcp-server-chart"]
}
}
}
On Windows systems:
{
"mcpServers": {
"mcp-server-chart": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@antv/mcp-server-chart"]
}
}
}
Examples
mcp-server-chart provides a versatile set of tools for generating various chart types. Once installed and configured, you can leverage its capabilities through compatible MCP clients or by accessing its HTTP endpoints.
For instance, after running the server with SSE transport, you can interact with it via http://localhost:1122/sse. The server supports generating a wide array of charts, including:
generate_area_chartgenerate_bar_chartgenerate_line_chartgenerate_pie_chartgenerate_scatter_chartgenerate_treemap_chart
And many more, covering statistical, relational, and geographical visualizations.
It can also be used with platforms like Dify and other online MCP marketplaces.
Why Use It
mcp-server-chart stands out as an essential tool for anyone needing powerful and flexible data visualization.
- Comprehensive Chart Library: With support for over 25 chart types, it covers almost every visualization need, from basic bar and line charts to complex network graphs and geographical maps.
- LLM Integration: Designed with Model Context Protocol (MCP) in mind, it seamlessly integrates with LLMs and AI clients, enabling intelligent chart generation based on natural language queries.
- Flexibility in Deployment: Whether you prefer local desktop integration, global npm installation, Docker, or cloud platforms like Aliyun and ModelScope,
mcp-server-chartoffers diverse deployment options. - Private Deployment Support: For organizations with specific security or data residency requirements, it supports private deployment of chart generation services using
VIS_REQUEST_SERVER. - TypeScript-based: Built with TypeScript, it offers type safety and maintainability, appealing to developers.
Links
- GitHub Repository: https://github.com/antvis/mcp-server-chart
- npm Package: https://www.npmjs.com/package/@antv/mcp-server-chart
- AntV Official Website: https://github.com/antvis/
- Dify Marketplace: https://marketplace.dify.ai/plugins/antv/visualization