# ChartPNG

> ChartPNG is a freemium MCP server for design and media. Draw Chart.js charts as PNG images or shareable image URLs, built for AI output. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://chartpng.dev/docs
- **MCP Registry name:** dev.chartpng/chartpng
- **Categories:** design and media, analytics and data
- **Listing updated:** 2026-11-15

## About

Charts that can be pasted anywhere an image can: an img tag, an email, Markdown or a Slack message. You send a Chart.js 4 configuration as JSON to a single /chart endpoint and get a PNG back, either from a GET URL or a POST body up to 20 KB. The config is never executed, so function values are stripped, and typical near-JSON mistakes from language models are repaired and reported in a response header.

Chart types are bar, line, pie, doughnut, radar, polarArea, scatter and bubble. Report presets (kpi, ranking, comparison, funnel, gauge) and output presets for email and Slack tune layout, and there are named themes and custom palettes. A companion endpoint returns the public URL with alt text built from the data, ready-made Markdown and HTML, and POST /c stores a chart for 90 days behind a short URL.

The MCP package runs over stdio via npm and reads an optional CHARTPNG_API_KEY. Without a Pro key images carry a small watermark and free renders are capped at 4 megapixels. QuickChart's parameter names are accepted on GET, with some others refused.

## Features

- **Single chart endpoint:** Turns a Chart.js JSON config into a PNG via GET or POST.
- **Lenient parsing:** Repairs common model slips and lists the fixes.
- **Report presets:** Offers kpi, ranking, comparison, funnel and gauge layouts.
- **Email and Slack presets:** Sets size and margins suited to those destinations.
- **Generated alt text:** Builds alt text from the data without a model.
- **Short URLs:** Stores a chart for 90 days behind a short image link.

## Good for

- Embed a bar chart in a Slack message from an agent
- Put a KPI image in an email report
- Return a shareable chart link from a chat answer
- Migrate image-chart URLs from QuickChart

## Install

### Claude Code (Terminal)

```sh
claude mcp add chartpng --env CHARTPNG_API_KEY='<CHARTPNG_API_KEY>' -- npx -y @chartpng/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "chartpng": {
      "command": "npx",
      "args": [
        "-y",
        "@chartpng/mcp"
      ],
      "env": {
        "CHARTPNG_API_KEY": "<CHARTPNG_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "chartpng": {
      "command": "npx",
      "args": [
        "-y",
        "@chartpng/mcp"
      ],
      "env": {
        "CHARTPNG_API_KEY": "<CHARTPNG_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "chartpng": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chartpng/mcp"
      ],
      "env": {
        "CHARTPNG_API_KEY": "<CHARTPNG_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "chartpng": {
      "command": "npx",
      "args": [
        "-y",
        "@chartpng/mcp"
      ],
      "env": {
        "CHARTPNG_API_KEY": "<CHARTPNG_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "chartpng": {
      "command": "npx",
      "args": [
        "-y",
        "@chartpng/mcp"
      ],
      "env": {
        "CHARTPNG_API_KEY": "<CHARTPNG_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Do I need a key?

No. Without a Pro key, images carry a small watermark.

### Can configs contain JavaScript functions?

No. Configs never run as code; functions are removed.

### What size limits apply?

GET configs are up to 16 KB, POST bodies up to 20 KB, and free renders are limited to 4 megapixels.

### Which chart types are available?

Bar, line, pie, doughnut, radar, polarArea, scatter and bubble.

### Is ChartPNG free?

ChartPNG has a free plan, with paid plans for more usage or features.

### How do I add ChartPNG to Claude Code?

Run this command in your terminal: claude mcp add chartpng --env CHARTPNG_API_KEY='<CHARTPNG_API_KEY>' -- npx -y @chartpng/mcp

### What are the best alternatives to ChartPNG?

The closest alternatives to ChartPNG are HyperFrames by HeyGen, Agent-Native Analytics, ffmpeg-skill, Google Ads + Meta Ads + SEO/GEO MCP and Tapetide - Indian Stock Market MCP.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [AvatarSay — Fictional Character & Talking Video MCP](https://ai-powered.com/mcp/avatarsay-fictional-character-and-talking-video-mcp): AvatarSay — Fictional Character & Talking Video MCP is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/chartpng
