Chart-Output MCP Server
This MCP server renders charts from JSON specs or natural-language descriptions and returns either inline images or CDN URLs.
Render Chart.js-style charts: line, bar, pie, doughnut, radar, and polarArea.
Configure title, labels, datasets, colors, dimensions, and output format (PNG, JPEG, WebP, SVG).
Use
render_chartto return an inline image.Use
render_chart_urlto return a public CDN URL for embedding or sharing.Use
render_chart_aito generate a chart from a natural-language description plus optional JSON/CSV data; requires a Pro or Business API key.
Allows rendering charts as PNG, SVG, or WebP images using Chart.js specifications, with tools for generating charts from natural language descriptions and data.
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., "@Chart-Output MCP Server show me a bar chart of monthly sales data"
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.
Chart-Output MCP Server
Render charts as PNG, SVG, WebP, or PDF directly from Claude, Cursor, Windsurf, or any MCP-compatible AI agent.
Ask your AI: "Generate a bar chart showing Q1–Q4 revenue" — it calls Chart-Output and returns the image inline.
What it produces
Ask your AI agent to generate a chart. This is what comes back.

(If the image does not load in your viewer, open the file on GitHub.)
Related MCP server: Quick Chart MCP Server
Examples
Ready-to-use chart configs in /examples.
Copy any file, swap in your data, POST to the API.
Examples are 1200 px at scale 1 so they run on a Free key. On Pro or Agency you can set scale to 2. Free renders carry a small watermark.
Install
Add to your mcp.json:
{
"mcpServers": {
"chart-output": {
"command": "npx",
"args": ["@chartoutput/mcp"],
"env": {
"CHART_OUTPUT_API_KEY": "pk_test_YOUR_KEY"
}
}
}
}Get a free API key at chart-output.com — no credit card required.
Tools
Tool | Description |
| Shipped example spec ids — use before hand-writing |
| Return full |
| Chart.js-style labels/datasets → inline image. Datasets keep |
| Same as |
| Full card composition JSON → inline image; the spec is POSTed once, exactly as given, to |
| Same full card composition → public CDN link |
| Natural language + data → image (Pro or Agency plan required). Optional |
| "What changed between two periods": a waterfall chart plus a summary of the drivers. States what changed, never why. |
| Saved brand kits on your account. Pass a slug as |
| Draft a brand kit from a website (draft only unless |
| Ready-made chart designs for common business questions, grouped by job. No key needed |
| One gallery chart's data shape, sample data and runnable request; can render it in the same call |
MCP resources expose the example files as application/json at chart-output://examples/<id> (e.g. mrr-breakdown), and a field reference at chart-output://reference/request-fields. Prefer get_chart_example or a resource read over guessing the schema.
Gallery charts are not the same as the API's template ids (/api/v1/templates). A name such as mrr-growth can exist in both places and they are different charts. A guide for agents is at chart-output.com/llms.txt.
Example
Once installed, just ask your AI agent:
"Create a line chart showing monthly active users growing from 12k in January to 28k in December"
The agent calls render_chart, render_card, or render_chart_ai and returns
the image directly in chat. No code required. Use render_card for branded dashboard layouts (dark theme, KPI row, footer), render_card_url when you need an openable/shareable link, and render_waterfall to explain a change between two periods.
API Key
Sign up at chart-output.com
Go to Dashboard → API Keys → Create key
Add it to your
mcp.jsonas shown above
Plans and limits
Plans are Free, Pro and Agency. Free plan: 1,000 renders a month, no credit card. Free renders carry a small watermark. See https://www.chart-output.com/pricing for what each plan includes.
The longest edge of an image (max(width, height) × scale) must fit your plan: 1200 px on Free, 3000 px on Pro and Agency. The API accepts width and height up to 4000; the plan decides.
When a call is refused
Errors come back as plain text with the API's own details, so an agent can act on them:
402 — the monthly allowance is used up. The text has the reset date and an upgrade link. Do not retry.
403 — your plan does not include what the request asked for (for example PDF, a size above your plan's limit, plain-English charts, waterfall explanations). Do not retry the same request.
400 — the spec is invalid; every failing field is listed with its path.
404 — an unknown
brandslug; the text lists the slugs that exist.429 — too many requests (100 per 15 minutes per key). The server waits at most 10 seconds for
Retry-After; if the wait is longer it stops and says how long to wait.
Successful results can also carry a usage line (Usage: 412 of 1,000 renders this period), warnings, and alt text when you ask for alt_text.
Keep labels and every dataset's data the same length. The API only checks this when you set repair ("safe" or "off").
Environment variables
Variable | Default | Purpose |
| — | Your API key (stdio). |
|
| API host, for self-hosting or tests. |
|
| Site host for the gallery tools (read-only, no key sent). Same rule as above. |
|
| Timeout for renders. |
|
| Timeout for |
|
| Retries for 429 and 502/503/504 and network errors. |
|
| Backoff base. |
|
| HTTP server port. |
|
| HTTP server: allowed browser origins, comma separated. |
| unset | HTTP server: set to |
Run it as an HTTP server
Besides stdio, the package contains a stateless Streamable HTTP server (src/http.ts, built to build/http.js):
PORT=3000 node build/http.jsEndpoint:
POST /mcp./sseand/messagereturn 410.Send the caller's Chart-Output key as
Authorization: Bearer <key>orx-chart-output-api-key: <key>.Request bodies up to 2 MB are accepted.
Do not set
CHART_OUTPUT_API_KEYon a public host. Without a key in the request, tool calls fail with a 401 message. The server's own key is used only whenMCP_ALLOW_SERVER_KEY=true; with that on, anyone who can reach/mcpcan spend your renders. Use it only on a private network.The plain-English chart tool can take up to 60 seconds, so a serverless function needs a matching time limit (on Vercel,
maxDurationof 60 forsrc/http.ts, if your plan allows it).
Glama
Registry listing and quality card:
Development
npm install
npm test # builds, then runs the offline tests against a fake API (no key, no network)
npm run smoke # probes the built server over stdioLinks
Available Tools
3 toolsrender_chartCInspect
Render a chart from a Chart.js JSON specification. Returns the chart as an inline image. Supports line, bar, pie, doughnut, radar, and polarArea chart types.
Inputs: type (required), labels (required), datasets (required), width, +3 more.
render_chart_aiBInspect
Generate a chart from a natural language description and optional raw data. Chart-Output's AI layer builds the chart spec automatically. Requires a Pro or Business API key.
Inputs: description (required), data, width, height, +1 more.
render_chart_urlAInspect
Render a chart and return a CDN URL instead of image bytes. Use this when you need a stable URL to embed in HTML, email, or pass to another tool. Same inputs as render_chart.
Inputs: type (required), labels (required), datasets (required), width, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: render_chart for direct JSON specification rendering, render_chart_ai for AI-generated charts from natural language, and render_chart_url for URL-based output. However, render_chart and render_chart_url share the same input format, which could cause minor confusion about when to use each, though their different outputs (inline image vs. URL) help differentiate them.
All tool names follow a consistent verb_noun pattern with 'render_chart' as the base, extended with suffixes (_ai, _url) to indicate variations. This predictable naming makes it easy for an agent to understand the tool relationships and select the appropriate one based on the suffix.
With only 3 tools, this server is well-scoped for its purpose of chart rendering. Each tool serves a distinct use case (direct rendering, AI generation, URL output), and there are no extraneous tools. The count is appropriate for covering the core functionalities without being overwhelming or insufficient.
The tool set covers the main chart rendering workflows: direct specification, AI-assisted generation, and URL-based output. A minor gap is the lack of tools for chart editing, deletion, or management (e.g., updating or deleting rendered charts), but for a rendering-focused server, the provided tools are sufficient for most agent tasks.
Related MCP Connectors
Renders interactive Chart.js charts and dashboards inline in AI conversations.
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.
Charts and dashboards as images for AI agents. No browser, same data same bytes. Local and free.
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
Related MCP Servers
- AlicenseAqualityDmaintenanceThis Model Context Protocol (MCP) server provides powerful visualization tools using QuickChart.io APIs. With this MCP, AI assistants can create charts, diagrams, barcodes, QR codes, word clouds, tables, and more.1266 npm2MIT
- 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
- 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
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to generate beautiful, presentation-ready charts (SVG + PNG) with zero setup, supporting various chart types and styling options.25 npmMIT