Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

mcp-server-chart

MCP.Pizza Chef: antvis

mcp-server-chart is a TypeScript-based Model Context Protocol server that enables dynamic generation of visual charts using the AntV library. It integrates with MCP clients to provide rich, customizable charting capabilities, supporting various chart types for data visualization. This server is ideal for embedding real-time, interactive charts into AI workflows and applications.

Use This MCP server To

Generate bar, line, and pie charts from structured data Visualize real-time data streams with dynamic chart updates Embed interactive charts in AI-powered dashboards Convert raw data into insightful visual reports Support multi-type chart rendering for diverse datasets Integrate chart generation into automated reporting pipelines

README

MCP Server Chart build npm Version smithery badge npm License

A Model Context Protocol server for generating charts using AntV.

This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.

✨ Features

Now 15+ charts supported.

mcp-server-chart preview

  • generate_area_chart - Generate a area chart, and return an image URL.
  • generate_bar_chart - Generate a bar chart, and return an image URL.
  • generate_column_chart - Generate a column chart, and return an image URL.
  • generate_dual_axes_chart - Generate a dual-axes chart, and return an image URL.
  • generate_fishbone_diagram - Generate a fishbone-diagram chart, and return an image URL.
  • generate_flow_diagram - Generate a flow-diagram chart, and return an image URL.
  • generate_histogram_chart - Generate a histogram chart, and return an image URL.
  • generate_line_chart - Generate a line chart, and return an image URL.
  • generate_mind_map - Generate a mind-map chart, and return an image URL.
  • generate_network_graph - Generate a network-graph chart, and return an image URL.
  • generate_pie_chart - Generate a pie chart, and return an image URL.
  • generate_radar_chart - Generate a radar chart, and return an image URL.
  • generate_scatter_chart - Generate a scatter chart, and return an image URL.
  • generate_treemap_chart - Generate a treemap chart, and return an image URL.
  • generate_word_cloud_chart - Generate a word-cloud chart, and return an image URL.

πŸ€– Usage

To use with Desktop APP, such as Claude, VSCode, Cline, Cherry Studio, and so on, add the MCP server config below. On Mac system:

{
  "mcpServers": {
    "mcp-server-chart": {
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-chart"
      ]
    }
  }
}

On Window system:

{
  "mcpServers": {
    "mcp-server-chart": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@antv/mcp-server-chart"
      ]
    }
  }
}

Also, you can use it on aliyun, modelscope, glama.ai, smithery.ai or others with HTTP, SSE Protocol.

πŸ“  Private Deployment

MCP Server Chart provides a free chart generation service by default. For users with a need for private deployment, they can try using VIS_REQUEST_SERVER to customize their own chart generation service.

{
  "mcpServers": {
    "mcp-server-chart": {
      "command": "npx",
      "args": [
        "-y",
        "@antv/mcp-server-chart"
      ],
      "env": {
        "VIS_REQUEST_SERVER": "<YOUR_VIS_REQUEST_SERVER>"
      }
    }
  }
}

You can use AntV's project GPT-Vis-SSR to deploy an HTTP service in a private environment, and then pass the URL address through env VIS_REQUEST_SERVER.

πŸ”¨ Development

Install dependencies:

npm install

Build the server:

npm run build

Start the MCP server:

npm run start

πŸ“„ License

MIT@AntV.

mcp-server-chart FAQ

How do I integrate mcp-server-chart with my MCP client?
You connect your MCP client to the mcp-server-chart server endpoint and send chart data and configuration in the MCP protocol format to generate charts.
What chart types does mcp-server-chart support?
It supports common chart types like bar, line, pie, scatter, and more via the AntV library.
Can I customize the appearance of charts generated by mcp-server-chart?
Yes, you can customize chart styles, colors, labels, and other visual properties through configuration options.
Is mcp-server-chart compatible with multiple LLM providers?
Yes, it works with MCP clients connected to models from OpenAI, Anthropic Claude, and Google Gemini, as it focuses on chart generation rather than model specifics.
What programming languages can I use to interact with mcp-server-chart?
Since it uses MCP protocol over standard APIs, you can use any language that supports HTTP or WebSocket communication with MCP clients.
Does mcp-server-chart support real-time chart updates?
Yes, it can update charts dynamically as new data arrives, enabling real-time visualization.
How do I deploy mcp-server-chart?
You can deploy it as a standalone TypeScript server or integrate it into your existing MCP server infrastructure.
Is there any licensing or usage cost for mcp-server-chart?
The server is open source under the license specified in its npm package, with no inherent usage fees.