Skip to content
MCP server

ChartPNG

Draw Chart.js charts as PNG images or shareable image URLs, built for AI output

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
API, CLI
Runs
Locally
Version
0.2.0
Listing updated
2 days ago

About ChartPNG

ChartPNG is a freemium MCP server for design and media. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • CHARTPNG_API_KEYOptional Pro key. Without it the images carry a small watermark.
  • CHARTPNG_BASE_URLAPI base URL. Default https://chartpng.dev

What it does

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

Pricing

Freemium

Free with watermark; Pro key removes it, prices not published

Prices change. Check chartpng.dev before you buy.

ChartPNG 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 to ChartPNG

  1. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 85.3K GitHub stars
    • Design and media
  2. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  3. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 6.9K GitHub stars
    • Design and media
  4. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  5. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  6. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data