# microcharts [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/ganapativs/microcharts  
**GitHub Stars:** 209  
**npm Downloads (last month):** 493  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/microcharts

## Description
Find, wire, and render microcharts — word-sized React charts — from an AI assistant.

## Tools
Capabilities this server exposes over MCP:

- **find_microchart** — Rank microcharts chart types against a plain-language question about data ("is it trending?", "error budget", "part to whole"). Returns candidates with the reason each matched. Start here when you know the question, not the chart.
- **get_microchart** — Full wiring detail for one chart by slug: import paths, its props plus the shared props, data shape, best/avoid guidance, a copy-runnable example, and `sample` — the example as JSON props you can pass straight to render_microchart.
- **render_microchart** — Render a chart to a finished, self-contained SVG (styles embedded) plus its generated alt text — for surfaces that can't run React. Pass the series as `data`; put other props (value, target, curve, color, width) in `props`. Each chart takes its own data shape — get_microchart returns a valid `sample` to adapt.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "microcharts": {
    "command": "npx",
    "args": ["-y","@microcharts/mcp"]
  }
}
```

## Documentation

## What the microcharts MCP server does

The microcharts MCP server gives an AI assistant a direct way to work with the `@microcharts/react` chart library. It helps the assistant select an appropriate chart for a question, inspect the exact API for that chart, and produce a rendered result rather than relying only on documentation text.

The underlying library contains 106 chart types designed for compact interface locations such as sentences, table cells, KPI cards, tabs, and AI responses. Charts use data-driven React components, and the library provides static and interactive imports.

## How it works

The server runs on the developer's machine as a local Model Context Protocol process using standard input and output. An MCP-compatible assistant sends tool calls to the process, which uses the microcharts library to answer them.

Its three tools cover separate stages of chart selection and use:

- `find` helps identify a chart type that answers a stated question.
- `get` returns the selected chart's exact props and a sample that is ready to render.
- `render` creates a self-contained SVG and includes the generated alternative text.

This arrangement lets an assistant move from a natural-language requirement to a documented component shape and then to visual output. The rendered chart's accessible description comes from the chart data, matching the accessibility behavior documented for the React library.

## Setup and configuration

Run the package with `npx` using the package's executable configuration:

```json
{
  "mcpServers": {
    "microcharts": {
      "command": "npx",
      "args": ["-y", "@microcharts/mcp"]
    }
  }
}
```

The package used by the process is `@microcharts/mcp`; the chart implementation it accesses is `@microcharts/react`.

## Tools and capabilities

The microcharts MCP server supports chart discovery, precise API inspection, and SVG generation. `find` is useful when the assistant knows the information need but not the chart name. `get` is appropriate when the assistant needs the import details, accepted properties, data shape, and an example. `render` is useful for obtaining a standalone SVG representation with alternative text attached.

The chart library itself uses small, individual chart imports and supports static rendering without client JavaScript.

## Limitations and notes

That qualification also matters when evaluating generated chart output in a particular React application.

It does not identify named MCP clients, provide hosted operation, list authentication options, or define environment variables. It also does not describe tool-specific flags beyond the three tool names and their stated roles. Chart types intentionally excluded from the library include pie, needle gauges, battery, waffle, and violin charts; the documentation points to alternatives within the catalog.

_Full upstream README: https://allmcps.com/mcp/microcharts/readme_

