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.
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.
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., funnel3d → highcharts-3d → cylinder) 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_OPTIONSto 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_OPTIONSenv 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.