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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。