VChart logo

VChart

Organization
VisActor

A Model Context Protocol (MCP) server for the @visactor/vchart that enables AI assistants to generate interactive charts and visualizations.

PublisherVisActor
Repositoryvchart-mcp-server
LanguageTypeScript
Forks
6
Stars
52
Available tools
10
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    VChart exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 10 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    52 stars and 6 forks from the linked repository.

A Model Context Protocol (MCP) server for the @visactor/vchart that enables AI assistants to generate interactive charts and visualizations.

MCP Server npm Version npm License smithery badge

English | 简体中文

Table of Contents

Features

Chart Output Formats

Each chart can be generated in multiple formats:

  • Image - PNG/JPG image format for embedding (default)
  • Spec - VChart spec object for programmatic use
  • HTML - Interactive HTML chart for web display

Common Parameters Supported by All Charts

ParameterDescriptionType/OptionsDefault
outputOutput format"spec" | "image" | "html""image"
widthChart widthNumber500
heightChart heightNumber500
titleChart titleStringOptional
subTitleChart subtitleStringOptional
titleOrientTitle positionStringOptional
chartThemeChart themeStringOptional
backgroundBackground colorStringOptional
colorsColor paletteArray/StringOptional

Supported Chart Types and Tools

generate_cartesian_chart

Generates Cartesian coordinate system charts, including area, bar, line, waterfall, funnel, and animated ranking bar charts.

ParameterDescriptionTypeRequired
dataTableData object arrayArrayYes
chartTypeChart type"line" | "area" | "bar" | "waterfall" | "funnel" | "ranking_bar"Yes
xFieldX axis field namestringYes
yFieldY axis field namestringYes
colorFieldColor mapping fieldstringOptional
timeFieldTime field for animated ranking bar chartstringOptional
stackOrPercentStack or percent mode"stack" | "percent"Optional
transposeDisplay bar chart horizontally (as bar chart)booleanOptional
xAxisTypeX axis type"band" | "linear"Optional
xAxisOrientX axis position"top" | "bottom"Optional
xAxisTitleX axis titlestringOptional
xAxisHasGridShow X axis grid linesbooleanOptional
xAxisHasLabelShow X axis labelsbooleanOptional
xAxisHasTickShow X axis ticksbooleanOptional
yAxisTypeY axis type"band" | "linear"Optional
yAxisOrientY axis position"left" | "right"Optional
yAxisTitleY axis titlestringOptional
yAxisHasGridShow Y axis grid linesbooleanOptional
yAxisHasLabelShow Y axis labelsbooleanOptional
yAxisHasTickShow Y axis ticksbooleanOptional

generate_polar_chart

Generates polar coordinate system charts, including radar, rose, and pie charts.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayArrayYes
chartTypeChart type"radar" | "rose" | "pie"Yes
categoryFieldCategory field namestringYes
valueFieldValue field namestringYes
colorFieldColor mapping fieldstringOptional
angleAxisTitleAngle axis titlestringOptional
angleAxisHasGridShow angle axis grid linesbooleanOptional
angleAxisHasLabelShow angle axis labelsbooleanOptional
angleAxisHasTickShow angle axis ticksbooleanOptional
angleAxisTypeAngle axis type"band" | "linear"Optional
radiusAxisTitleRadius axis titlestringOptional
radiusAxisHasGridShow radius axis grid linesbooleanOptional
radiusAxisHasLabelShow radius axis labelsbooleanOptional
radiusAxisHasTickShow radius axis ticksbooleanOptional
radiusAxisTypeRadius axis type"band" | "linear"Optional

generate_hierarchical_chart

Generates hierarchical charts, including treemap, circle packing, and sunburst charts.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayArrayYes
chartTypeChart type"sunburst" | "treemap" | "circle_packing"Yes
colorFieldColor mapping fieldstringYes
valueFieldValue mapping fieldstringYes

generate_progress_chart

Generates progress charts, including circular, linear, gauge, and liquid charts.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayArrayYes
chartTypeChart type"linear_progress" | "circular_progress" | "gauge" | "liquid"Yes
valueFieldProgress value field namestringYes
colorFieldColor mapping field (optional for liquid, required otherwise)stringOptional

generate_wordcloud_venn

Generates word cloud or Venn diagrams, suitable for displaying keywords and frequencies in text data.

Parameters:

ParameterDescriptionType/OptionsRequired
dataTableData object arrayArrayYes
chartTypeChart type"wordcloud" | "venn"Yes
colorFieldText field or Venn set field namestringYes
valueFieldValue field name (required for Venn)stringOptional

generate_range_column_chart

Generates horizontal range bar charts, suitable for displaying data ranges and comparisons.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayany[]Yes
xFieldCategory field namestringYes
yFieldValue field names[string, string]Yes
colorFieldColor mapping fieldstringOptional
xAxisTypeX axis type"band" | "linear"Optional
xAxisOrientX axis position"top" | "bottom"Optional
xAxisTitleX axis titlestringOptional
xAxisHasGridShow X axis grid linesbooleanOptional
xAxisHasLabelShow X axis labelsbooleanOptional
xAxisHasTickShow X axis ticksbooleanOptional
yAxisTypeY axis type"band" | "linear"Optional
yAxisOrientY axis position"left" | "right"Optional
yAxisTitleY axis titlestringOptional
yAxisHasGridShow Y axis grid linesbooleanOptional
yAxisHasLabelShow Y axis labelsbooleanOptional
yAxisHasTickShow Y axis ticksbooleanOptional

generate_dual_axis_chart

Combination chart with two Y axes, for comparing two metrics with different units.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayany[]Yes
xFieldX axis field namestringYes
yFieldTwo Y axis field names[string, string]Yes
colorFieldColor mapping fieldstringOptional
stackOrPercentStack or percent mode"stack" | "percent"Optional
xAxisOrientX axis position"top" | "bottom"Optional
xAxisTitleX axis titlestringOptional
xAxisHasGridShow X axis grid linesbooleanOptional
xAxisHasLabelShow X axis labelsbooleanOptional
xAxisHasTickShow X axis ticksbooleanOptional
leftYAxisTitleLeft Y axis titlestringOptional
leftYAxisHasGridLeft Y axis grid linesbooleanOptional
leftYAxisHasLabelLeft Y axis labelsbooleanOptional
leftYAxisHasTickLeft Y axis ticksbooleanOptional
rightYAxisTitleRight Y axis titlestringOptional
rightYAxisHasGridRight Y axis grid linesbooleanOptional
rightYAxisHasLabelRight Y axis labelsbooleanOptional
rightYAxisHasTickRight Y axis ticksbooleanOptional

generate_scatter_chart

Displays the relationship between two variables, suitable for discovering patterns and outliers.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayany[]Yes
xFieldX axis field namestringYes
yFieldY axis field namestringYes
colorFieldColor mapping fieldstringOptional
sizeFieldSize mapping fieldstringOptional
xAxisTypeX axis type"band" | "linear"Optional
xAxisOrientX axis position"top" | "bottom"Optional
xAxisTitleX axis titlestringOptional
xAxisHasGridShow X axis grid linesbooleanOptional
xAxisHasLabelShow X axis labelsbooleanOptional
xAxisHasTickShow X axis ticksbooleanOptional
yAxisTypeY axis type"band" | "linear"Optional
yAxisOrientY axis position"left" | "right"Optional
yAxisTitleY axis titlestringOptional
yAxisHasGridShow Y axis grid linesbooleanOptional
yAxisHasLabelShow Y axis labelsbooleanOptional
yAxisHasTickShow Y axis ticksbooleanOptional

generate_sankey_chart

Generates Sankey diagrams.

ParameterDescriptionTypeRequired
dataTableData object arrayany[]Yes
sourceFieldSource node fieldstringYes
targetFieldTarget node fieldstringYes
valueFieldValue fieldstringYes

generate_heatmap_chart

Generates heatmaps, suitable for displaying data density and distribution.

ParameterDescriptionType/OptionsRequired
dataTableData object arrayany[]Yes
xFieldX axis field namestringYes
yFieldY axis field namestringYes
sizeFieldValue field namestringYes
xAxisTypeX axis type"band" | "linear"Optional
xAxisOrientX axis position"top" | "bottom"Optional
xAxisTitleX axis titlestringOptional
xAxisHasGridShow X axis grid linesbooleanOptional
xAxisHasLabelShow X axis labelsbooleanOptional
xAxisHasTickShow X axis ticksbooleanOptional
yAxisTypeY axis type"band" | "linear"Optional
yAxisOrientY axis position"left" | "right"Optional
yAxisTitleY axis titlestringOptional
yAxisHasGridShow Y axis grid linesbooleanOptional
yAxisHasLabelShow Y axis labelsbooleanOptional
yAxisHasTickShow Y axis ticksbooleanOptional

Usage

To use in desktop applications (such as Trae, Claude, VSCode, Cline, Cherry Studio, Cursor, etc.), add the following MCP server configuration:

MacOS

json
{
  "mcpServers": {
    "vchart-mcp-server": {
      "command": "npx",
      "args": ["-y", "@visactor/vchart-mcp-server"]
    }
  }
}

Windows

json
{
  "mcpServers": {
    "vchart-mcp-server": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@visactor/vchart-mcp-server"]
    }
  }
}

Installing via Smithery

To install vchart-mcp-server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @VisActor/vchart-mcp-server --client claude

Running with SSE or Streamable Transport

Install and Start

Install @visactor/vchart-mcp-server globally:

bash
npm install -g @visactor/vchart-mcp-server

Start the server:

bash
# For SSE transport (default endpoint: /sse)
mcp-server-chart --transport sse

# For Streamable transport (default endpoint: /streamable)
mcp-server-chart --transport streamable

Then you can access the server at:

  • SSE transport: http://localhost:3001/sse
  • Streamable transport: http://localhost:3001/streamable

Other CLI Options

Options:
  -t, --transport <type>   Transport type (stdio, sse, streamable) [default: stdio]
  -p, --port <port>        Port number for HTTP-based transports [default: 3000]
  -e, --endpoint <path>    Endpoint path for HTTP-based transports [default: /message]
  -h, --help               Show this help message

Examples:
  node index.js                                    # Start with stdio transport
  node index.js -t sse -p 3000                     # Start with SSE transport on port 3000
  node index.js -t sse -p 3000 -e /api/sse         # Start with SSE transport on custom endpoint
  node index.js -t streamable -p 3001 -e /stream   # Start with streamable transport on custom endpoint

Example Usage in AI Conversations

Once configured, you can ask your AI assistant to create charts:

"Create an area chart showing monthly sales data"

The assistant will use the generate_cartesian_chart tool with parameters:
- chartType: "area"
- dataTable: your sales data
- xField: "month"
- yField: "sales"

"Generate a dual-axis chart comparing revenue and user growth"

The assistant will use the generate_dual_axis_chart tool with parameters:
- dataTable: your business data
- xField: "time"
- yField: ["revenue", "userGrowth"]

"Show me an interactive HTML bar chart of quarterly performance"

The assistant will use the generate_cartesian_chart tool with parameters:
- chartType: "bar"
- dataTable: your quarterly data
- xField: "quarter"
- yField: "performance"
- output: "html"

"Create a pie chart of product sales share"

The assistant will use the generate_polar_chart tool with parameters:
- chartType: "pie"
- dataTable: your sales data
- categoryField: "product"
- valueField: "sales"

"Draw a scatter plot of height and weight"

The assistant will use the generate_scatter_chart tool with parameters:
- dataTable: your body data
- xField: "height"
- yField: "weight"
- colorField: "gender" (optional)

"Create a radar chart for team skill assessment"

The assistant will use the generate_polar_chart tool with parameters:
- chartType: "radar"
- dataTable: your assessment data
- categoryField: "skill"
- valueField: "score"

"Generate a Sankey diagram showing data flow"

The assistant will use the generate_sankey_chart tool with parameters:
- dataTable: your flow data
- sourceField: "from"
- targetField: "to"
- valueField: "amount"

"Create a heatmap showing data distribution"

The assistant will use the generate_heatmap_chart tool with parameters:
- dataTable: your distribution data
- xField: "x_category"
- yField: "y_category"
- sizeField: "value"

Development

Prerequisites

  • Node.js version >= 22.7.5

Build

bash
npm run build

Development Mode (Auto Rebuild)

bash
npm run watch

Testing

bash
# Test chart generation
npm run test-tool

# Run MCP Inspector for debugging
npm run inspector

Debugging

Since the MCP server communicates via stdio, debugging can be challenging. Use MCP Inspector for development:

bash
npm run inspector

Testing in AI Editors

To test the MCP server in an AI editor, use the following configuration:

json
{
  "mcpServers": {
    "vchart-mcp-server": {
      "command": "node",
      "args": ["/Users/path/to/your/project/vchart-mcp-server/build/index.js"]
    }
  }
}

Environment Variables

Private Deployment

Currently, images and HTML generated by vchart-mcp-server are produced via https://vmind.visactor.com/export. For private deployment, set the VIMD_IMAGE_SERVER environment variable to specify your own image generation server.

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

Image generation service can be deployed privately refer to https://github.com/VisActor/vchart-mcp-server-export.

Star History

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Related Projects

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • generate_cartesian_chart

    Generates Cartesian charts: line (trends over time), area (cumulative totals), bar (category comparison), waterfall (incremental changes), ranking bar (ordered categories), and funnel (visualizes stages in a process or conversion rates).

  • generate_polar_chart

    Generate a polar chart (rose, radar, pie) to display numerical differences among different categories using radius and angle in polar coordinates.

  • generate_hierarchical_chart

    Generate a chart for hierarchical visualization of multi-level categorical data proportions, include sunburst, treemap, circle_packing.

  • generate_progress_chart

    Generates a progress chart for visualizing quantitative values normalized between 0 and 1. Ideal for representing progress, completion rates, or proportional metrics. The gauge chart and liquid chart currently only supports displaying data for a single dimension.

  • generate_wordcloud_venn

    Generate a word cloud to visualize word frequency or importance, or a Venn diagram to show relationships such as intersections and unions between sets.

  • generate_scatter_chart

    Generate a scatter chart to visually display the distribution, clustering trends, and correlations of data points in two-dimensional or multi-dimensional space. Suitable for analyzing relationships between variables, outlier detection, and similar scenarios.

  • generate_range_column_chart

    Generate a range column chart to display the value range (such as minimum and maximum) for each category, suitable for comparing the range distribution across different categories.

  • generate_dual_axis_chart

    Generate a dual-axis chart for visualizing two quantitative variables using a combination of bar and line series. Ideal for comparing trends and magnitudes across two metrics with distinct y-axes.

  • generate_sankey_chart

    Generate a Sankey diagram to visualize the flow relationships between nodes in complex networks, suitable for displaying the distribution and flow paths of source and target data.

  • generate_heatmap_chart

    Generates a heatmap chart based on a Cartesian coordinate system. It is used to visualize the intensity or density of values at the intersection of two discrete variables, suitable for revealing association patterns and distribution characteristics between variables.

Use VChart MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once VChart is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add VChart as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the VChart MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "vchart": {
      "command": "npx",
      "args": [
        "-y",
        "@visactor/vchart-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the VChart MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the VChart MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use VChart to help me with this task?
VChart
Sure. I read it.
Here is what I found using VChart.

Frequently asked questions

What is the VChart MCP server used for?

VChart is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use VChart MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use VChart with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use VChart MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With VChart connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect VChart MCP to TypingMind?

VChart runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does VChart MCP provide in TypingMind?

VChart exposes 10 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use VChart MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If VChart requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇