For AI agents

An AI agent can use boardplot in three ways: a plugin for Claude Code and Codex, an MCP server (MCP, the Model Context Protocol, is how AI agents call outside tools) or the command line (CLI). The agent sends a JSON spec and gets the chart back with its warnings. boardplot runs on the machine where the agent runs and needs Node.js 22.12 or newer.

Claude Code and Codex

Install the plugin. It adds the MCP server and a chart skill.

claude plugin marketplace add boardplot/boardplot
claude plugin install boardplot@boardplot
codex plugin marketplace add boardplot/boardplot
codex plugin add boardplot@boardplot

The plugin installs the boardplot npm package, at the plugin's own version, into a boardplot cache folder. PNG output then needs no browser. For a machine without access to the npm registry, each release also has an offline ZIP with the runtime bundled. The ZIP route needs Chrome or Chromium for PNG.

Any other MCP client

Install the package globally. Run the same command again later to update.

npm install -g boardplot

Then add the server boardplot-mcp to the configuration of your MCP client. It is a stdio server: the client starts it and talks to it through standard input and output.

{
  "mcpServers": {
    "boardplot": { "command": "boardplot-mcp" }
  }
}

Claude Code and Codex also take the server without the plugin: claude mcp add boardplot -- boardplot-mcp or codex mcp add boardplot -- boardplot-mcp.

The six MCP tools

ToolUse it to
boardplot_listSee which chart types exist: each type with its summary, use cases, aliases and size floor, plus the theme presets.
boardplot_describeWrite a spec for one type: the data fields, the options with values and defaults, a minimal spec and the fixture ids.
boardplot_fixturesStart from a complete example: runnable specs with realistic data, by type or id.
boardplot_measureFit a chart to a known width: the minimum, natural and comfortable size, or a refusal with the pixels it needs.
boardplot_renderDraw a spec: the derived numbers, the labels placed and left out, the warnings, and the SVG or PNG.
boardplot_feedbackDraft a problem report for the maintainers, with a link to a prefilled GitHub issue. The tool sends nothing.

Errors with a fix

A spec error comes back as JSON with the path and the value received, and with a JSON Patch fix (a list of edits to the spec) when there is one repair. This is the CLI output for an option name with a typo, varient for variant, shortened:

{
  "ok": false,
  "errors": [
    {
      "code": "unknown-option",
      "message": "unknown option 'varient' — try: variant",
      "path": "/options/varient",
      "received": {
        "type": "string",
        "value": "stacked"
      },
      "fix": [
        {
          "op": "remove",
          "path": "/options/varient"
        },
        {
          "op": "add",
          "path": "/options/variant",
          "value": "stacked"
        }
      ],
      "suggest": "Rename 'varient' to 'variant'."
    }
  ]
}

Design advice in the render result flags weak design choices, for example too many pie slices or a missing message title. The warning codes reference lists every code.

The CLI

The same spec works from a shell or a script. boardplot render validates the spec first, so it is also the validate step.

npx boardplot list
npx boardplot describe waterfall
npx boardplot fixtures --type waterfall
npx boardplot render spec.json --format png --out charts

Example prompt

For example: “Use boardplot to draw an EBIT bridge from this data.” Use cases has prompts for a deck, a report and a dashboard. llms.txt is a short index of this site for coding tools and language models. The llms.txt in the repository indexes the manual and the chart reference.