ApexCharts MCP Server

The apexcharts-mcp server gives AI assistants like Claude expert-level help with the whole ApexCharts ecosystem: charts, Gantt, tree, Sankey, grid, stock, and maps. One MCP, seven products. It generates valid configs, catches common mistakes, and serves the official knowledge base for each product on demand, so the AI gets your visualization right the first time.

GitHub: apexcharts/apexcharts-mcp


Install

Pick your editor or client. You only need to do this once.

Claude Code

claude mcp add apexcharts -- npx -y apexcharts-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "apexcharts": {
      "command": "npx",
      "args": ["-y", "apexcharts-mcp"]
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "apexcharts": {
      "command": "npx",
      "args": ["-y", "apexcharts-mcp"]
    }
  }
}

After installing, restart the client. Your AI assistant will have the tools for every ApexCharts product available automatically, no further commands needed.

To load only a subset of products, set the APEXCHARTS_MCP_PRODUCTS environment variable to a comma-separated list of product ids (charts, gantt, tree, sankey, grid, stock, maps).


What you can ask the AI

Once installed, the assistant uses the server's tools automatically. Examples:

  • "Build me a stacked area chart of monthly revenue across three regions."
  • "Here's my pie chart config, why isn't it rendering?" (paste the config)
  • "Map unemployment by US state as a choropleth with ApexMaps."
  • "Give me an ApexGantt config with two tasks and a finish-to-start dependency."
  • "What chart type should I use for OHLC stock data?"
  • "Explain plotOptions.bar.horizontal and give me an example."

Tools

Tools are namespaced per product (apexcharts_*, apexgantt_*, apextree_*, apexsankey_*, apexgrid_*, apexstock_*, apexmaps_*) so you can use any combination together in one conversation.

ProductTools
metaapexcharts_list_products
ApexChartsapexcharts_generate_config, apexcharts_validate_config, apexcharts_list_types, apexcharts_get_reference
ApexGanttapexgantt_generate_config, apexgantt_validate_config, apexgantt_get_reference
ApexTreeapextree_generate_config, apextree_validate_config, apextree_get_reference
ApexSankeyapexsankey_generate_config, apexsankey_validate_config, apexsankey_get_reference
ApexGridapexgrid_generate_config, apexgrid_validate_config, apexgrid_get_reference
ApexStockapexstock_generate_config, apexstock_validate_config, apexstock_get_reference
ApexMapsapexmaps_generate_config, apexmaps_validate_config, apexmaps_get_reference

Every product exposes generate_config (build a valid config from a short spec), validate_config (check a config against that product's rules and return structured issues with fix hints), and get_reference (read that product's knowledge base on demand; call with no arguments to list the available docs). The chart tools add apexcharts_list_types, a typed catalog of the 20 supported chart types including the v6 additions violin, funnel, pyramid, and gauge; apexcharts_generate_config covers all 20 and apexcharts_validate_config checks against 24 rules. apexcharts_list_products is a meta tool that lists the products this server exposes, their tool names, and the upstream library version each product's guidance targets.


Knowledge base

The server's knowledge comes from the per-product skill packages on npm, one source of truth each: apexcharts-skill, apexgantt-skill, apextree-skill, apexsankey-skill, apexgrid-skill, apexstock-skill, and apexmaps-skill. Each ships SKILL.md plus per-topic reference docs; apexcharts_list_products reports the library version each product's guidance was verified against.

See also: the AI overview for the full skill list, and the ApexCharts Skill page, with install instructions for Claude Code, Cursor, Copilot, and ChatGPT.