# flint-chart [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/microsoft/flint-chart  
**GitHub Stars:** 4619  
**npm Downloads (last month):** 10372  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/flint-chart

## Description
Flint is a visualization language that lets AI agents reliably create expressive, good-looking charts from simple, human-editable chart specs.

## Tools
Capabilities this server exposes over MCP:

- **render_chart** — Compile a Flint chart spec for a backend and render it to a STATIC image (PNG) or vector (SVG), returned inline. Rendering is local/in-process. The chartjs backend supports PNG only. Prefer validate_chart and show instead when the host supports MCP App UIs; use render_chart for a static artifact or when no App UI is available.
- **compile_chart** — Compile a Flint chart spec to a backend-native spec object (Vega-Lite / ECharts / Chart.js) without rendering. Returns the spec JSON, assembly warnings, and the computed layout size.
- **validate_chart** — Validate a Flint chart spec for a backend without rendering. Reports whether it is valid, all warnings/errors, and the computed layout size. With an interaction_spec it also reports the entries the chart would drop. With updates it rejects a malformed layer and reports, op by op, whether each will apply (✓) or why not (✗), in the same report show returns. Call it before show and fix what it reports; nothing is kept between calls.
- **list_chart_types** — List the available chart types, their encoding channels, and the interaction presets each supports in interaction_spec (Vega-Lite only), for a backend, or for all backends when none is given.
- **list_interaction_presets** — List the interaction presets for interaction_spec: what the reader does, what each needs from the chart, its reset gestures, and every option it accepts under `options`. Pass `chartType` for the presets a Vega-Lite chart type supports, or `type` for one preset. Which presets answer a request and how they combine is in get_flint_skill with skill "interaction", section "Add interactions to the chart".
- **get_flint_skill** — Return a bundled Flint skill as markdown. Read it before you write the matching spec: `chart` for a ChartAssemblyInput, `theme` for a ThemeSpec, `interaction` for an interaction_spec, ChartUpdate layers, reading a mounted chart, linking charts, or a bespoke interaction; `board` for a board spec: headline, chart choice, layout, links. Pass `section` with one "## " heading to get only that part; an unknown section lists the headings. The same text is served as the flint://agent-skill, flint://theme-skill, flint://interaction-skill, and flint://board-skill resources.
- **list_themes** — List Flint visual theme presets for `theme_spec` (for example, `theme_spec: "economist"`). Pass an `id` for preset-specific authoring guidance. To customize a preset, use an object with `extends` and a small set of overrides.
- **validate_board** — Check a board of several Flint charts without drawing it: the report gives the layout, each chart (✓/✗ per update op), what each chart sends and receives under link_spec, and a review of what the board should still fix. Nothing is kept: fix the spec, check it again if needed, then pass the same board to show. Before the first board, call get_flint_skill with skill "board".
- **show** — Put a chart or a board on screen: pass the full spec as chart or as board, after validate_chart or validate_board report nothing left to fix. The card draws it live with an editing panel; the result is the same report. A spec with errors draws nothing. Nothing is kept: to change what is on screen, change the spec and call show again; a new card shows it and earlier cards stay as they were.

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

```json
"mcpServers": {
  "flint-chart": {
    "command": "npx",
    "args": ["-y","flint-chart-mcp"]
  }
}
```

## Documentation

## What flint-chart does

flint-chart exposes Flint’s chart compiler and visualization runtime through MCP. Agents provide a Flint specification containing data, semantic types, chart structure, and optional theme or interaction settings. The server can turn that specification into a backend-native chart definition, a static image, or a live chart displayed through an MCP App UI.

Flint supports five rendering backends: Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts. The project describes 52 chart types, 14 visual themes, and 23 interaction presets. Chart specifications remain independent of a particular rendering library, allowing the same authoring model to target different backends.

## How it works

A typical workflow starts with `get_flint_skill`, which returns authoring guidance for charts, themes, interactions, or boards. Agents can then use `list_chart_types`, `list_interaction_presets`, and `list_themes` to discover supported options before writing a specification.

`validate_chart` checks a chart without rendering it and reports errors, warnings, layout size, and interaction entries that would be discarded. When updates are supplied, it also evaluates each update operation. `validate_board` performs the corresponding checks for a board containing multiple charts, including chart links and update results. Validation does not retain state between calls.

After validation, `show` displays a chart or board in a live card with an editing panel. A new call creates a new card; earlier cards remain unchanged. For static output or environments without MCP App UI support, `render_chart` produces an inline PNG or SVG. `compile_chart` instead returns the generated Vega-Lite, ECharts, or Chart.js specification, warnings, and calculated layout dimensions.

## Setup and configuration

Run the local MCP server with:

```bash
npx -y flint-chart-mcp
```

Add that command to an MCP-compatible client using its local stdio configuration. Flint also provides a hosted MCP endpoint at `https://flint.data-formulator.ai/mcp` for clients that support HTTP-based MCP connections.

The repository names Claude Code, Codex, Cursor, and GitHub Copilot as example clients. After configuration, listing the available chart types is a practical setup check. The server can also be used as the `flint-chart` npm library inside an application, but that is separate from the MCP server interface.

## Tools and capabilities

- Render validated charts to inline PNG or SVG artifacts.
- Compile chart specs to Vega-Lite, ECharts, or Chart.js JSON.
- Validate individual charts and multi-chart boards before display.
- Discover chart types, encodings, interaction presets, and themes.
- Retrieve focused authoring instructions for charts, themes, interactions, and boards.
- Display live charts or boards through `show`.

Theme presets can be selected directly or extended with a small set of overrides. Interaction specifications support behaviors such as brushing, hover readouts, and legend toggles, with semantic events for application-level responses.

## Limitations and notes

`render_chart` is intended for static artifacts and hosts without MCP App UIs. The Chart.js backend supports PNG output only. For live presentation, `show` should follow successful validation; a specification containing errors draws nothing. Charts and boards are not retained between calls, so changes require sending the updated specification again. `list_interaction_presets` describes interaction support for Vega-Lite chart types, while backend support varies by chart type and operation.

_Full upstream README: https://allmcps.com/mcp/flint-chart/readme_

