1. Conduid
  2. Browser
  3. Chart JS Generator MCP
MCP server · Browser

Chart JS Generator MCP

Chart-JS-Generator-MCP is an ASP.NET Core server that renders Chart.js charts to PNG images on demand. It accepts chart data via a REST API or as an MCP (Model Context Protocol) server tool, builds the corresponding Chart.js JavaScript using ChartJSCore, and renders it in a headless Chromium browser via PuppeteerSharp.

Unclaimed browser
34Low

Scored 6 months ago · breakdown

About Chart JS Generator MCP

Chart JS Generator MCP is an MCP server in the Browser category: chart-JS-Generator-MCP is an ASP.NET Core server that renders Chart.js charts to PNG images on demand. It accepts chart data via a REST API or as an MCP (Model Context Protocol) server tool, builds the corresponding Chart.js JavaScript using ChartJSCore, and renders it in a headless Chromium browser via PuppeteerSharp.

Install

From source
git clone https://github.com/sjoerdteunisse/Chart-JS-Generator-MCP

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (2)

generate_bar_chartRenders a bar chart from comma-separated labels and values

Parameters not published.

generate_line_chartRenders a line chart with optional fill and curve smoothing

Parameters not published.

Ask AI

✦

Ask AI about Chart JS Generator MCP

Powered by Claude · Grounded in docs

I know everything about Chart JS Generator MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Chart-JS-Generator-MCP

An ASP.NET Core server that renders Chart.js charts to PNG images using a headless Chromium browser. It exposes chart generation both as a REST API and as an MCP (Model Context Protocol) server, making it usable directly from MCP-compatible AI clients.

How it works

Chart data is accepted as a request, converted to Chart.js JavaScript via the ChartJSCore .NET library, injected into a minimal HTML page, and rendered in a headless Chromium browser via PuppeteerSharp. The canvas is captured and returned as a data:image/png;base64,... string.

MCP Tools

Tool Description
generate_bar_chart Renders a bar chart from comma-separated labels and values
generate_line_chart Renders a line chart with optional fill and curve smoothing

Both tools accept colors as hex (#36A2EB) or rgba (rgba(54, 162, 235, 0.5)) strings and return a base64-encoded PNG.

REST API

POST /api/charts/bar
POST /api/charts/line

Both endpoints accept a JSON body and return { "base64Image": "data:image/png;base64,..." }.

Bar chart request:

{
  "labels": ["Jan", "Feb", "Mar"],
  "datasets": [
    {
      "label": "Sales",
      "data": [10, 20, 30],
      "backgroundColor": "#36A2EB",
      "borderColor": "#2980B9",
      "borderWidth": 1
    }
  ],
  "title": "Monthly Sales",
  "width": 800,
  "height": 400
}

Line chart request:

{
  "labels": ["Jan", "Feb", "Mar"],
  "datasets": [
    {
      "label": "Revenue",
      "data": [65, 59, 80],
      "borderColor": "#36A2EB",
      "backgroundColor": "rgba(54, 162, 235, 0.2)",
      "fill": false,
      "tension": 0.1,
      "borderWidth": 2,
      "pointRadius": 3
    }
  ],
  "title": "Revenue Trend",
  "width": 800,
  "height": 400
}

Running locally

Requires .NET 10 SDK. On first run, Chromium is downloaded automatically.

dotnet run --project chart-server.csproj

The server starts on the default ASP.NET Core port (check console output). The MCP endpoint is mounted at /mcp.

Running with Docker

docker build -t chart-server .
docker run -p 8080:8080 chart-server

The Docker image installs system Chromium and sets PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium. The server listens on port 8080.

Environment variables

Variable Description
PUPPETEER_EXECUTABLE_PATH Path to a Chromium/Chrome executable. If not set, PuppeteerSharp downloads Chromium automatically (local dev only).

Tests

dotnet test chart-server.Tests/chart-server.Tests.csproj

Tests launch a real Chromium process. A shared ChartJsEngineFixture ensures only one browser instance is used across the test run.

Dependencies

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Chart JS Generator MCP

How do I install Chart JS Generator MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Chart JS Generator MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Chart JS Generator MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.