mcp-visual-chart
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-visual-chart Make a pie chart of market share: Apple 30%, Samsung 25%, Others 45%"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-visual-chart
A Model Context Protocol (MCP) server that enables AI agents to create chart visualizations using Chart.js. Charts are rendered server-side as PNG or SVG and returned inline to the agent, while also being saved to disk and optionally opened in the system viewer.
Features
10 chart types: bar, line, pie, doughnut, scatter, area, radar, bubble, polar area, histogram
PNG & SVG output: render charts as PNG (default) or SVG via
outputFormatServer-side rendering via
chartjs-node-canvas(no browser needed)Smart defaults: professional color palette, sizing, and styling out of the box
Data labels: optionally display values directly on chart elements
Smooth curves: configurable line tension for line/area charts
Logarithmic scale: support for logarithmic y-axis
Input validation: descriptive error messages for data shape mismatches and invalid configurations
Dual output: returns base64 image to the agent + saves to disk
Auto-open: optionally opens the chart in the system's default image viewer
Customizable: titles, subtitles, axis labels, colors, dimensions, stacked mode, horizontal bars
Related MCP server: QuickChart MCP Server
Installation
npm install -g mcp-visual-chartOr run directly:
npx mcp-visual-chartSetup
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"visual-chart": {
"command": "npx",
"args": ["-y", "mcp-visual-chart"]
}
}
}VS Code (GitHub Copilot / MCP extensions)
Create .vscode/mcp.json in your project:
{
"servers": {
"visual-chart": {
"command": "npx",
"args": ["-y", "mcp-visual-chart"]
}
}
}For local development
{
"servers": {
"visual-chart": {
"command": "node",
"args": ["/path/to/mcp-visual-chart/dist/index.js"]
}
}
}Tool: create_chart
Parameters
Parameter | Type | Required | Description |
| string | yes |
|
| string[] | no | Labels for data points |
| object[] | yes | Array of |
| object | no | See options below |
| string | no |
|
| string | no | Custom file path for the saved chart |
| boolean | no | Open in default viewer (default: true) |
Options
Option | Type | Description |
| string | Chart title |
| string | Chart subtitle |
| boolean | Show legend (default: true) |
| number | Image width in pixels (default: 800) |
| number | Image height in pixels (default: 600) |
| string | Background color (default: white) |
| string | X-axis label |
| string | Y-axis label |
| boolean | Stack datasets |
|
| Set to |
|
| Y-axis scale type (default: linear) |
| boolean | Force y-axis to start at zero |
| number | Line smoothing: 0 = straight (default), 0.4 = smooth. For line/area charts |
| boolean | Show data values on chart elements (default: false) |
Example prompts
"Create a bar chart showing Q1 revenue: Jan $50k, Feb $65k, Mar $70k"
"Make a pie chart of market share: Apple 30%, Samsung 25%, Others 45%"
"Generate a smooth line chart tracking website visitors over the last 7 days"
"Create a stacked bar chart comparing actual vs budget for 3 months"
"Make a horizontal bar chart of the top 5 programming languages"
"Create a bar chart with data labels showing exact values"
"Generate an SVG line chart with logarithmic y-axis for exponential growth data"
Development
git clone <repo-url>
cd mcp-visual-chart
npm install
npm run build # build to dist/
npm run dev # watch mode
npm test # run tests
npm run test:watch # tests in watch modeSystem requirements
Node.js 18+
On Linux,
canvasnative dependencies are needed:sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
License
MIT
Available Tools
2 toolscreate_chartB
Create a chart visualization. Renders a Chart.js chart as PNG or SVG, saves to disk, and returns the image. Supports: bar, line, pie, doughnut, scatter, area, radar, bubble, polarArea, histogram.
Inputs: type (required), datasets (required), labels, options, +3 more.
create_vega_chartA
Create a chart from a Vega-Lite specification. Renders a Vega-Lite spec as PNG or SVG, saves to disk, and returns the image.
Example spec: {"mark": "bar", "data": {"values": [{"a": "A", "b": 28}, {"a": "B", "b": 55}]}, "encoding": {"x": {"field": "a", "type": "nominal"}, "y": {"field": "b", "type": "quantitative"}}}
Supports all Vega-Lite mark types: bar, line, area, point, circle, square, rect, arc, text, tick, rule, geoshape, trail, boxplot, errorbar, errorband. Supports layers, facets, concatenation, and repeats.
Inputs: spec (required), width, height, autoOpen, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Both tools create charts, so there is some overlap, but the distinction between Chart.js-based charts and Vega-Lite specifications is clearly stated. An agent should be able to choose correctly based on whether it wants a simple built-in chart type or a full Vega-Lite spec.
Both names use a create_ verb prefix and identify a chart operation, which is mostly consistent. The only deviation is the added vega qualifier in create_vega_chart, but that is understandable and still readable.
Only two tools are provided, which is thin for a chart-rendering server even though each tool supports many chart types. It sits at the borderline between a tightly scoped set and an underfilled surface.
The server covers the core chart-creation workflow across two rendering backends and supports a wide range of chart types and Vega-Lite features. Minor gaps exist around listing, retrieving, updating, or deleting previously saved charts, but the primary purpose is well covered.
Maintenance
Related MCP Connectors
Renders interactive Chart.js charts and dashboards inline in AI conversations. Supports bar, line, area, pie, doughnut, scatter, and radar charts with multi-chart dashboard grids.
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
Charts and dashboards as images for AI agents. No browser, same data same bytes. Local and free.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to generate chart visualizations by interacting with QuickChart API, allowing users to create and retrieve chart image links through natural language requests.132 npm4Apache 2.0
- AlicenseBqualityDmaintenanceEnables generation of various chart types (bar, line, pie, radar, etc.) using QuickChart.io and Chart.js configurations, with options to generate chart URLs or download images locally.21MIT
- AlicenseAqualityCmaintenanceEnables AI agents to generate and render charts as PNG, SVG, or WebP images directly in chat interfaces. Supports Chart.js specifications and natural language descriptions for creating visualizations from data.31MIT
- AlicenseAqualityCmaintenanceEnables AI agents to create data visualizations like bar charts, line charts, pie charts, scatter plots, and histograms, returning inline SVG or PNG files.5MIT