mcp-highcharts

mcp-highcharts

Enables AI agents to render interactive Highcharts visualizations directly within VS Code chat conversations. It supports over 17 chart types with GitHub Primer styling and advanced features like drilldown and WebGL rendering.

Category
Visit Server

README

mcp-highcharts

Render interactive Highcharts charts inline in AI chat — right inside VS Code, GitHub Copilot, Claude Desktop, or any MCP client that supports MCP Apps.

Just ask your AI to make a chart. It does the rest.

Install in VS Code

Code_-_Insiders_15uBYM8FHt

Quick Start

Add to your MCP config (.vscode/mcp.json, Claude Desktop, etc.):

{
  "servers": {
    "highcharts": {
      "command": "npx",
      "args": ["-y", "mcp-highcharts@latest", "--stdio"]
    }
  }
}

That's it. No API keys, no build steps, no config.

Usage

Ask your AI agent to render a chart in natural language:

  • "Show a bar chart of Q1-Q4 revenue"
  • "Pie chart of browser market share"
  • "Line chart comparing 2025 vs 2026 sales with a trend line"
  • "Render a sankey diagram of our deployment pipeline"
  • "Heatmap of commits by day of week and hour"

The LLM calls the render_chart tool with Highcharts options, and the chart renders inline in chat.

50+ Chart Types

All Highcharts modules are bundled into a single self-contained HTML file at build time via a custom Vite plugin. Every extension module is loaded in the correct dependency order — no extra config needed. The LLM just sets chart.type or series[].type and it works.

Category Types
Core line, area, spline, areaspline, column, bar, scatter, pie
More arearange, areasplinerange, boxplot, bubble, columnrange, columnpyramid, errorbar, gauge, packedbubble, polygon, waterfall
Maps map, mapbubble, mapline, mappoint, flowmap, geoheatmap, tiledwebmap
Flow sankey, dependency-wheel, arc-diagram, organization
Specialized wordcloud, timeline, treegraph, treemap, sunburst, networkgraph, funnel, solid-gauge, venn, variwide, heatmap, histogram, bellcurve, bullet, dumbbell, lollipop, streamgraph, tilemap, xrange, pictorial, pareto, item-series, windbarb, vector

Modules with dependencies (e.g., funnel3dhighcharts-3dcylinder) are auto-resolved. You can also limit which modules are included by setting HIGHCHARTS_MODULES at build time:

# Only include what you need (dependencies are auto-added)
HIGHCHARTS_MODULES=sankey,heatmap,funnel npm run build

By default, all modules are included (~1.5 MB inlined HTML).

Mix Chart Types

Set type per-series to combine different visualizations:

// The LLM generates this — you just ask for it
{
  "chart": { "type": "column" },
  "title": "Revenue vs Trend",
  "series": [
    { "name": "Revenue", "data": [10, 20, 30], "type": "column" },
    { "name": "Trend", "data": [12, 18, 28], "type": "spline" }
  ]
}

Tool Schema

The render_chart tool accepts any valid Highcharts Options object. Key properties:

Property Type Description
chart object { type, height } — chart type and dimensions
title string | object Chart title (string shorthand or { text, style })
subtitle string | object Chart subtitle
series array [{ type?, name, data, color? }] — the data
xAxis object Categories, datetime, labels, title
yAxis object Title, format ({value}%, ${value}), min/max
tooltip object { valueSuffix, valuePrefix, shared }
plotOptions object Stacking (normal, percentage), data labels
legend object Position, layout, enabled
colors string[] Custom color palette
colorAxis object For heatmaps, choropleth
pane object For gauges, polar charts
drilldown object Click-to-drill sub-category data

Any valid Highcharts config property works — the schema is intentionally open to give the LLM full access to the Highcharts API.

Features

  • Adaptive theme — Automatically matches your VS Code color scheme (light/dark) using Highcharts' built-in adaptive theme
  • 15 built-in themes — Set HIGHCHARTS_OPTIONS to any theme name
  • Dark/light mode — Syncs with VS Code's theme via the MCP Apps host context
  • Global options — Customize any Highcharts.setOptions() via HIGHCHARTS_OPTIONS env var

Configuration

Set HIGHCHARTS_OPTIONS to customize the chart defaults. Accepts a built-in theme name, inline JSON, or a file path:

{
  "servers": {
    "highcharts": {
      "command": "npx",
      "args": ["-y", "mcp-highcharts@latest", "--stdio"],
      "env": {
        "HIGHCHARTS_OPTIONS": "dark-unica"
      }
    }
  }
}

Built-in Themes

Theme Description
adaptive (default) Auto light/dark based on OS/VS Code preference
dark-unica Dark theme with blue accents
dark-blue Dark blue background
dark-green Dark green background
brand-dark Highcharts brand colors on dark
brand-light Highcharts brand colors on light
high-contrast-dark High contrast dark mode
high-contrast-light High contrast light mode
avocado Green-toned light theme
gray Neutral gray theme
grid Grid-focused layout
grid-light Light grid theme
sand-signika Warm sand tones
skies Sky blue gradient
sunset Warm sunset colors

Custom Options

Pass any valid Highcharts.setOptions() config as inline JSON or a file path:

{
  "env": {
    "HIGHCHARTS_OPTIONS": "{\"colors\":[\"#ff6384\",\"#36a2eb\",\"#ffce56\"],\"chart\":{\"backgroundColor\":\"#1a1a2e\"},\"plotOptions\":{\"series\":{\"animation\":true}}}"
  }
}
{
  "env": {
    "HIGHCHARTS_OPTIONS": "/path/to/my-options.json"
  }
}

Transports

Transport Usage
stdio (default) npx mcp-highcharts --stdio
Streamable HTTP npx mcp-highcharts → listens on http://localhost:3001/mcp

Set the HTTP port with PORT env var.

Development

npm install
npm run dev       # watch + HTTP server
npm run build     # production build
npm run test      # run tests
npm run test:e2e  # e2e tests

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured