Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Highcharts

БесплатноПоддерживается

Enables AI agents to render interactive Highcharts visualizations directly within VS Code chat conversations. It supports over 17 chart types with GitHub Primer

GitHubEmbed

Описание

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

Render interactive Highcharts charts inline in AI chat — VS Code, GitHub Copilot, Claude Desktop, or any MCP client with MCP Apps support.

Install in VS Code Install in VS Code Insiders npm

Code_-_Insiders_15uBYM8FHt

Setup

Click a badge above, or add to your MCP config:

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

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "highcharts": {
      "command": "npx",
      "args": ["-y", "mcp-highcharts@latest"]
    }
  }
}
HTTP mode
npx mcp-highcharts@latest --http          # http://localhost:3001/mcp
PORT=8080 npx mcp-highcharts@latest --http  # custom port

Tools

Tool Description
render_chart Any chart type — line, bar, pie, scatter, heatmap, sankey, gauge, treemap, wordcloud, and 60+ more
render_stock_chart Financial charts with navigator, range selector, and 40+ technical indicators
render_dashboard Multi-component layouts with charts, KPIs, and data grids
render_map Choropleth maps, map bubbles, map points (auto-fetches map data from CDN)
render_gantt Project timelines with tasks, dependencies, and milestones
render_grid Standalone data tables with sorting, pagination, and formatting

All tools accept the full Highcharts Options API.

Prompts

Prompt What it does
chart_from_data Paste data → get the best chart
dashboard_layout Scaffold a dashboard
stock_analysis Candlestick + volume + indicators
comparison_chart Side-by-side comparison patterns
project_timeline Gantt with dependencies
live_chart Live-updating chart from a data URL

Configuration

Theming

Charts auto-adapt to host light/dark mode. Override with environment variables:

{
  "env": {
    "HIGHCHARTS_THEME": "dark-unica",
    "HIGHCHARTS_OPTIONS": "./my-theme.json"
  }
}

HIGHCHARTS_OPTIONS accepts .json, .js, .mjs, .ts, or inline JSON.

Built-in themes: adaptive (default), avocado, brand-dark, brand-light, dark-blue, dark-green, dark-unica, gray, grid, grid-light, high-contrast-dark, high-contrast-light, sand-signika, skies, sunset

Schema depth

Controls how much type information is sent to the LLM:

{ "env": { "SCHEMA_DEPTH": "1" } }
Depth Description
0 Property names only — zero context overhead
1 (default) Top-level types + descriptions + examples
2 One level of typed children
3 Two levels deep — complete recursive Highcharts type tree

Data sources

For live-updating charts, use the Highcharts data module with data.csvURL and data.enablePolling: true.

Image export (non-app fallback)

For MCP clients that don't support MCP Apps, enable server-side image export to include a PNG screenshot of each chart in the tool response:

{
  "env": {
    "IMAGE_EXPORT": "true"
  }
}

Charts are rendered as PNG and returned as base64 image content blocks. The interactive MCP app is still included for capable clients.

Rendering strategy (automatic):

  1. Local (Puppeteer) — if highcharts-export-server is installed, charts render locally via a headless browser. No network calls, fastest option.
  2. Remote fallback — if local isn't available, chart config is POSTed to the Highcharts Export Server.

To enable local rendering, install the optional peer dependency:

npm install highcharts-export-server

To use a custom remote export server:

{
  "env": {
    "IMAGE_EXPORT": "true",
    "EXPORT_SERVER_URL": "https://your-export-server.example.com/"
  }
}

You can also enable it programmatically: createServer({ imageExport: true }).

Note: Image export works for standard charts, stock charts, and Gantt charts. Dashboards, data grids, and maps with string-based map keys (e.g. "custom/world") are not exportable and will return text-only results.

Development

npm install
node scripts/generate-from-tree.mjs --multi   # generate Zod schemas at depths 0, 1, 2
npm run build
npm test

Project structure

main.ts                  Entry point (stdio + HTTP transports)
server.ts                MCP server — tool registrations and handlers
src/
  export-image.ts        Server-side PNG export (local Puppeteer + remote fallback)
  input-schema.ts        Depth-based schema selection + LLM-friendly overrides
  mcp-app.ts             Client-side Highcharts rendering
  module-loader.ts       Dynamic Highcharts module loading
  generated/             Auto-generated from Highcharts API (do not edit)
    highcharts-depth-{0,1,2}.gen.ts   Zod schemas at each depth
    module-map.json                   Chart type → Highcharts module mapping
scripts/
  generate-from-tree.mjs   Generate Zod schemas from Highcharts tree.json
  generate-module-map.mjs  Generate module-map.json from Highcharts
  example-providers.mjs    Example extraction for schema generation
  measure-schema.ts        Measure tool context size at each depth

Chart types, module mappings, and schemas are auto-generated from the installed Highcharts version — just npm update highcharts and regenerate.

License

MIT

from github.com/austenstone/mcp-highcharts

Установить Highcharts в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install mcp-highcharts

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add mcp-highcharts --env EXPORT_SERVER_URL="" --env HIGHCHARTS_OPTIONS="" --env HIGHCHARTS_THEME="" --env IMAGE_EXPORT="" --env SCHEMA_DEPTH="" -- npx -y mcp-highcharts

Пошаговые гайды: как установить Highcharts

FAQ

Highcharts MCP бесплатный?

Да, Highcharts MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Highcharts?

Да, требуются переменные окружения: EXPORT_SERVER_URL, HIGHCHARTS_OPTIONS, HIGHCHARTS_THEME, IMAGE_EXPORT, SCHEMA_DEPTH. Unyly подставит их в конфиг при установке.

Highcharts — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Highcharts в Claude Desktop, Claude Code или Cursor?

Открой Highcharts на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Изменения

Версии и запрашиваемые доступы со временем.

  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована

Похожие MCP

Compare Highcharts with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории communication