AI NewsOpen sourceAnnouncement
ztd-charts is 47 React charts with an MCP server for AI agents
ztd-charts is a React chart library with 47 chart types. It also has a CLI and an MCP server for AI agents. The repository has 401 stars at 23 days old.
Image: GitHub
Why it mattersA team can point an AI agent at a dataset. The agent picks, checks and renders the chart through one tool.
A developer who wants a chart library that an AI agent can call directly has a new one to try. ztd-charts is a React charting package. It also offers a command-line tool and an MCP server. The author is Junhan2. The repository is 23 days old. It has 401 stars, 60 forks and an MIT licence.
What is in the box
The library covers 47 chart types in nine groups. Proportion charts include pie, donut and waffle. Comparison charts include bar, waterfall and dumbbell. Trend charts include line, area, streamgraph and candlestick. The full list also covers hierarchy, flow, distribution, relationship, map and KPI charts. Every chart is rendered in pure SVG with no runtime dependency. React is the only peer dependency. The README says each chart weighs "about 12 to 26 kB Brotli".
Accessibility is stated as part of the design. The README names keyboard navigation and a screen reader description for every chart. There is a data table for every chart too. It also claims reduced motion and WCAG AA contrast on every label. Localisation covers English and Korean.
The MCP server
The MCP server is the piece that matters for an AI coding agent. The README names five tools it offers. It lists the charts. It returns a chart's schema and an example. It validates a spec and suggests fixes for wrong fields. It renders a spec to PNG, SVG or React code. It can also suggest a chart from a CSV, a row set, or a URL. An agent that is handed a CSV asks the server which chart fits. The agent then writes the JSON spec and sends it back. The server checks it and returns the image or the React code.
The command-line tool ztd-charts-cli covers the same jobs from a terminal: list the charts, validate a spec, render it, start a project, and suggest a chart from data.
How it is used
A developer installs the React package and imports a chart. An agent in Claude Code or Cursor connects to the MCP server and goes through the four steps. Either path ends in a chart rendered from the same JSON spec. The output stays the same whether a person or a model wrote the spec.
The limit the README does not state is traction in production. The repository has 60 forks on 401 stars. That is high for 23 days of life. But no company is named using the charts in a product yet. The first commit was 5 November. Last push was 28 November. The schema and the chart list are the parts a buyer can read before adopting.
For a team building a product that lets a user ask an AI for a report, this closes a gap. The model picks a chart with the schema in front of it. The server refuses a spec with wrong fields. The output is code the app can keep. The alternative is a free-form prompt and no check.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.
