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
claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcpWhat 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
tsctozpl.
How to install ChartQuery
1Platform CLI
claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcpReplace <…> with your own values
2Platform CLI: remote server
claude mcp add --transport http chartquery https://mcp.chartquery.com/1Platform CLI: remote server
codex mcp add chartquery --url https://mcp.chartquery.com/2Platform CLI
codex mcp add chartquery --env CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"chartquery": {
"url": "https://mcp.chartquery.com/"
}
}
}{
"mcpServers": {
"chartquery": {
"command": "npx",
"args": [
"-y",
"@chartquery/mcp"
],
"env": {
"CHARTQUERY_API_KEY": "<CHARTQUERY_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"chartquery": {
"type": "http",
"url": "https://mcp.chartquery.com/"
}
}
}{
"servers": {
"chartquery": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@chartquery/mcp"
],
"env": {
"CHARTQUERY_API_KEY": "<CHARTQUERY_API_KEY>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http chartquery https://mcp.chartquery.com/2Platform CLI
gemini mcp add -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> chartquery npx -y @chartquery/mcpReplace <…> with your own values
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.