# ChartQuery

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: chartquery
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/chartquery/chartquery-mcp
- Updated: 2026-11-11
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/chartquery

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.chartquery.com/`
- Environment variables: `CHARTQUERY_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI**
```bash
claude mcp add mcp -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcp
```
Replace <…> with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http chartquery https://mcp.chartquery.com/
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add chartquery --url https://mcp.chartquery.com/
```

2. **Platform CLI**
```bash
codex mcp add chartquery --env CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> -- npx -y @chartquery/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "chartquery": {
            "url": "https://mcp.chartquery.com/"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "chartquery": {
            "command": "npx",
            "args": [
                "-y",
                "@chartquery/mcp"
            ],
            "env": {
                "CHARTQUERY_API_KEY": "<CHARTQUERY_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "chartquery": {
            "type": "http",
            "url": "https://mcp.chartquery.com/"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "chartquery": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@chartquery/mcp"
            ],
            "env": {
                "CHARTQUERY_API_KEY": "<CHARTQUERY_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http chartquery https://mcp.chartquery.com/
```

2. **Platform CLI**
```bash
gemini mcp add -e CHARTQUERY_API_KEY=<CHARTQUERY_API_KEY> chartquery npx -y @chartquery/mcp
```
Replace <…> with your own values

## When to use it
- 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
- 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`.

## Similar
- [Context7](https://affpapa.org/en/nevibecode/mcp/context7.md) — MCP server · 5563 installs
- [Search Google Flights](https://affpapa.org/en/nevibecode/mcp/search-google-flights.md) — MCP server · 2595 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [pipeworx gateway](https://affpapa.org/en/nevibecode/mcp/pipeworx-gateway.md) — MCP server · 419019 installs
- [SparkForge](https://affpapa.org/en/nevibecode/mcp/sparkforge.md) — MCP server · 219896 installs
- [OpenWebSearch](https://affpapa.org/en/nevibecode/mcp/openwebsearch.md) — MCP server · 494 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
