Skip to main content
MCP server CX Codex

ChartQuery — Claude Code MCP server: charts and setup

The ChartQuery MCP server for Claude Code creates charts, diagrams, QR codes, barcodes, and thermal labels. It responds to requests for visuals or printer-ready label data.

MIT updated 2026-11-11

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcp
Open on GitHub

What ChartQuery does

ChartQuery provides tools that create chart and diagram images, QR codes, barcodes, and thermal labels. Outputs include PNG, SVG, and PDF. The server can also render saved charts and diagrams by ID or show them as HTML pages.

Local use requires Node.js 20 or later and a ChartQuery API key stored in CHARTQUERY_API_KEY. Connect to the hosted server over HTTP, or run the package locally over stdio; the hosted endpoint receives the key in the x-api-key header. Label tools can compile, parse, validate, and convert printer commands.

What it helps with

  • create a chart image from a description
  • generate a QR code or barcode
  • render a saved diagram by ID
  • convert label data into printer commands

Example prompts for the agent

  • Create a bar chart from these values and return it as PNG.
  • Make an SVG QR code for this text.
  • Convert these label commands from tsc to zpl.

How to install ChartQuery

1Platform CLI

claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcp

Replace <…> with your own values

2Platform CLI: remote server

claude mcp add --transport http chartquery https://mcp.chartquery.com/

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about ChartQuery

How do I install ChartQuery in Claude Code?

For a local connection, run claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcp. Replace the placeholder with a ChartQuery API key.

What does ChartQuery do?

It exposes tools for making charts, diagrams, QR codes, barcodes, and thermal labels. Other tools handle saved visuals and printer command data.

What does ChartQuery need to run?

Local use requires Node.js 20 or later and a ChartQuery API key. The hosted endpoint accepts the key through the x-api-key header.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open