npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

apexcharts-mcp

v0.4.0

Published

Model Context Protocol server exposing the ApexCharts ecosystem (charts, gantt, tree, sankey, grid, stock) as tools for AI assistants

Readme

apexcharts-mcp

A Model Context Protocol server that gives AI assistants like Claude expert-level help with the ApexCharts ecosystem: charts, gantt, tree, sankey, grid, and stock. 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.

One MCP, six products. Tools are namespaced per product (apexcharts_*, apexgantt_*, apextree_*, apexsankey_*, apexgrid_*, apexstock_*) so you can use any combination together.

Install

Pick your editor / 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 now have tools for every ApexCharts product available — no further commands needed.

What you can ask the AI

Once installed, the assistant uses the server's tools automatically. Things you can ask:

  • "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)
  • "What data format does ApexGantt expect for dependencies?"
  • "Show me the recursive node shape ApexTree uses."
  • "How do I configure layer ordering in ApexSankey?"
  • "Explain cellTemplate in apex-grid and give me an example."

The AI decides which tool to call. You don't invoke them directly.

Tools

| Product | Tools | |-----------|-------| | meta | apexcharts_list_products | | apexcharts | apexcharts_generate_config, apexcharts_validate_config, apexcharts_list_types, apexcharts_get_reference | | apexgantt | apexgantt_generate_config, apexgantt_validate_config, apexgantt_get_reference | | apextree | apextree_generate_config, apextree_validate_config, apextree_get_reference | | apexsankey | apexsankey_generate_config, apexsankey_validate_config, apexsankey_get_reference | | apexgrid | apexgrid_generate_config, apexgrid_validate_config, apexgrid_get_reference | | apexstock | apexstock_generate_config, apexstock_validate_config, apexstock_get_reference |

Every product exposes generate_config (build a valid config from a short spec) and validate_config (check a config against its skill's rules and return structured issues), plus get_reference to read that product's knowledge base on demand. The chart tools add apexcharts_list_types (a typed catalog of the 16 supported chart types); apexcharts_generate_config covers all 16 and apexcharts_validate_config checks against 15 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.

Limiting which products load

By default, all six products' tools are registered. To load only a subset, set APEXCHARTS_MCP_PRODUCTS to a comma-separated list of product ids:

{
  "mcpServers": {
    "apexcharts": {
      "command": "npx",
      "args": ["-y", "apexcharts-mcp"],
      "env": { "APEXCHARTS_MCP_PRODUCTS": "charts,gantt" }
    }
  }
}

Valid ids: charts, gantt, tree, sankey, grid, stock. Unknown ids are skipped with a stderr warning; the server still starts.

Knowledge base

Authoritative guidance comes from the per-product skill packages on npm:

  • apexcharts-skill — SKILL.md + cartesian/bar/financial/circular/grid/radar references + tree-shaking, SSR, framework wrappers
  • apexgantt-skill — task data, dependencies, columns/toolbar, events, framework wrappers
  • apextree-skill — data format, graph API, framework wrappers
  • apexsankey-skill — data format, styling/interaction, framework wrappers
  • apexgrid-skill — columns/templates, data pipeline, sort/filter, framework integration, vanilla JS
  • apexstock-skill: OHLC data format, technical indicators, streaming/appendData, trading overlays, theming, framework wrappers

They're regular dependencies — bump the version in this repo's package.json to pick up upstream improvements. Each skill repo is the source of truth for its own docs.


Contributing

For working on apexcharts-mcp itself.

git clone https://github.com/apexcharts/apexcharts-mcp.git
cd apexcharts-mcp
npm install
npm run build

This is an npm workspace monorepo:

apexcharts-mcp/
  src/index.ts            # bootstrap — reads APEXCHARTS_MCP_PRODUCTS, wires up products
  packages/
    mcp-core/             # shared types and the reference-reader factory
    mcp-charts/           # apexcharts_* tools
    mcp-gantt/            # apexgantt_* tools
    mcp-tree/             # apextree_* tools
    mcp-sankey/           # apexsankey_* tools
    mcp-grid/             # apexgrid_* tools

The build runs tsc -b across all workspaces, then bundles src/index.ts (plus all workspace packages) into a single dist/index.js via esbuild. Skill packages stay external because they resolve file paths via import.meta.url.

Run the server directly (for manual testing):

node dist/index.js

Point your client at the local build instead of the published package:

claude mcp add apexcharts -- node /absolute/path/to/apexcharts-mcp/dist/index.js

Common scripts:

npm run dev        # tsc -b --watch
npm test           # vitest
npm run typecheck  # tsc -b
npm run clean      # remove all dist/ output

License

MIT