Skip to main content
Glama
klar-mcp

klar-mcp

Official
README.md
<p align="center">
  <a href="https://klar.run"><img src="public/favicon.svg" width="64" height="64" alt="Klar" /></a>
</p>

<h1 align="center">Klar</h1>

<p align="center">
  <strong>110 React charts, drawn by hand in plain SVG.</strong><br />
  No chart library underneath. Light and dark. Free and open source.
</p>

<p align="center">
  <b>Website:</b> <a href="https://klar.run">https://klar.run</a>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/klar-charts"><img src="https://img.shields.io/npm/v/klar-charts?label=klar-charts&color=3366ff" alt="npm version" /></a>
  <a href="https://www.npmjs.com/package/klar-mcp"><img src="https://img.shields.io/npm/v/klar-mcp?label=klar-mcp&color=8b5cf6" alt="MCP server on npm" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22a33a" alt="MIT license" /></a>
  <a href="https://klar.run/r/registry.json"><img src="https://img.shields.io/badge/shadcn-registry-111" alt="shadcn registry" /></a>
</p>

<p align="center">
  <a href="https://glama.ai/mcp/servers/klar-run/klar"><img src="https://glama.ai/mcp/servers/klar-run/klar/badges/score.svg" alt="Klar MCP server on Glama" /></a>
</p>

<p align="center">
  <a href="https://klar.run/charts"><b>Chart atlas</b></a> ·
  <a href="https://klar.run/docs"><b>Docs</b></a> ·
  <a href="https://klar.run/dashboards"><b>Dashboards</b></a> ·
  <a href="https://klar.run/mcp"><b>Use with AI</b></a>
</p>

<p align="center">
  <a href="https://klar.run"><img src="public/og.png" alt="Klar: 110 charts, drawn by hand" /></a>
</p>

## Why Klar

- **The charts other libraries don't have.** Candlestick with volume, order-book depth, yield curve,
  volatility surface, Kaplan–Meier with log-rank test, forest plot, raincloud, spectrogram, flame graph,
  dependency Gantt, chord, Sankey and more, next to the everyday line, bar, area, pie and funnel.
- **Zero chart dependencies.** Every chart is hand-written SVG in React: no D3, no Recharts, no canvas
  framework. What you install is what renders.
- **Light and dark, one prop.** Design tokens are scoped to `<ThemeScope>`, so they never touch the rest
  of your app or your shadcn/ui theme.
- **Accessible and exportable.** Keyboard navigation, screen-reader descriptions, data-table views, and
  SVG/PNG/CSV export built in.
- **Yours to own.** Import from npm, or copy any chart's source into your project with the shadcn CLI.
- **Built for AI assistants.** An MCP server and a Claude Code plugin let your coding assistant pick the
  right chart for your data and install it.

<table>
  <tr>
    <td><a href="https://klar.run/charts/c/fin-candlestick"><img src="public/previews/charts/fin-candlestick-light-sm.jpg" alt="Candlestick with volume" /></a></td>
    <td><a href="https://klar.run/charts/c/sci-kaplan-meier"><img src="public/previews/charts/sci-kaplan-meier-light-sm.jpg" alt="Kaplan–Meier survival" /></a></td>
  </tr>
  <tr>
    <td><a href="https://klar.run/charts/c/tech-flame-graph"><img src="public/previews/charts/tech-flame-graph-light-sm.jpg" alt="Flame graph" /></a></td>
    <td><a href="https://klar.run/charts/c/fin-vol-surface"><img src="public/previews/charts/fin-vol-surface-light-sm.jpg" alt="Volatility surface" /></a></td>
  </tr>
  <tr>
    <td><a href="https://klar.run/charts/c/tech-sankey"><img src="public/previews/charts/tech-sankey-light-sm.jpg" alt="Sankey diagram" /></a></td>
    <td><a href="https://klar.run/charts/c/sci-raincloud"><img src="public/previews/charts/sci-raincloud-light-sm.jpg" alt="Raincloud plot" /></a></td>
  </tr>
</table>

<p align="center"><a href="https://klar.run/charts">See all 110 charts live →</a></p>

## Install

Pick the way that fits your project. All three install the same charts.

### npm

```bash
npm i klar-charts
```

```tsx
import 'klar-charts/styles.css' // or, with Tailwind v4: @import 'klar-charts/tailwind.css';
import { ThemeScope, LineChart } from 'klar-charts'

export function Revenue() {
  return (
    <ThemeScope theme="light" accent="#3366ff">
      <LineChart
        x={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']}
        series={[{ id: 'mrr', label: 'MRR', values: [42, 47, 51, 58, 63, 71] }]}
        unit="currency"
        ariaLabel="Monthly recurring revenue"
      />
    </ThemeScope>
  )
}
```

### shadcn

Copies one chart, and only the files it needs, into `components/klar/`:

```bash
npx shadcn@latest add https://klar.run/r/fin-candlestick.json
```

Every chart page in the [atlas](https://klar.run/charts) shows its command. Whole dashboards install the
same way, e.g. `https://klar.run/r/dashboard-halo.json`.

### Your AI assistant (MCP)

```bash
# Claude Code
claude mcp add klar -- npx -y klar-mcp

# or as a plugin, with a Klar skill included
/plugin install klar --marketplace klar-run/klar
```

Works with Cursor, VS Code, Windsurf, Claude Desktop and any MCP client. Then just ask: *"add a
Kaplan–Meier chart of survival by arm to the trial page"*. [Setup for every tool →](https://klar.run/mcp)

## Twelve example dashboards

Complete dashboards built from the charts, with layout, navigation and sample data. Install one as
source and swap in your data.

<table>
  <tr>
    <td><a href="https://klar.run/d/halo"><img src="public/previews/halo-light-sm.jpg" alt="Halo: campaign performance" /></a><br /><sub><b>Halo</b> · Campaign performance</sub></td>
    <td><a href="https://klar.run/d/synapse"><img src="public/previews/synapse-dark-sm.jpg" alt="Synapse: model operations" /></a><br /><sub><b>Synapse</b> · Model operations</sub></td>
  </tr>
  <tr>
    <td><a href="https://klar.run/d/meridian"><img src="public/previews/meridian-light-sm.jpg" alt="Meridian Freight: control tower" /></a><br /><sub><b>Meridian Freight</b> · Control tower</sub></td>
    <td><a href="https://klar.run/d/sentinel"><img src="public/previews/sentinel-dark-sm.jpg" alt="Sentinel: service health" /></a><br /><sub><b>Sentinel</b> · Service health</sub></td>
  </tr>
</table>

<p align="center"><a href="https://klar.run/dashboards">All twelve dashboards →</a></p>

## What's in the box

| Collection | Charts |
|---|---|
| [Basics](https://klar.run/charts/basic) | Line, area, stacked and grouped bar, pie, scatter, bubble, funnel, waterfall, box plot, timeline, KPI cards |
| [Finance](https://klar.run/charts/finance) | Candlestick, order-book depth, yield curve, volatility surface, drawdown, correlation matrix, market treemap |
| [Science](https://klar.run/charts/science) | Kaplan–Meier, forest plot, regression with bands, raincloud, hexbin, histogram + KDE, spectrogram, parallel coordinates |
| [BI](https://klar.run/charts/bi) | Bullet, bump, slope, dumbbell, Marimekko, Pareto, calendar heatmap |
| [Engineering](https://klar.run/charts/tech) | Flame graph, Sankey, chord, network graph, dependency Gantt, radial dendrogram, wind rose |
| [Kit](https://klar.run/charts/kit) | Sparklines, gauges, radars, rings, dot matrices, hatched columns, waffles |

Plus 42 charts drawn for the example dashboards: Sankeys, hex maps, lane maps, cohort triangles,
streamgraphs and more.

## Contributing

Issues and pull requests are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) covers the repository layout,
how the npm package, shadcn registry and MCP server are built, and how to run the tests.

Questions or ideas: [open an issue](https://github.com/klar-run/klar/issues) or write to
[hello@qtech.ee](mailto:hello@qtech.ee).

## License

[MIT](LICENSE). Every company, person and number in the examples is fictional.

TDQS

A3.7/5.0

Scored across 11 tools

Disambiguation5/5

Each tool maps to a distinct resource and action: list/get/install for charts and dashboards, separate kit-module/file tools, and search is explicitly scoped as the cross-entity fallback. Descriptions route ambiguous discovery cases clearly, so an agent can select the right tool without guessing.

Naming Consistency5/5

All names are lowercase snake_case and verb-led (list_, get_, install_, search, read_, get_guide), with no mixed casing or style. The noun-less 'search' is a conventional exception and remains unambiguous.

Tool Count5/5

Eleven tools is well within the ideal 3-15 range for a chart/dashboard kit server. Each tool covers a distinct phase—discovery, inspection, installation, or guidance—and none feels redundant.

Completeness4/5

The surface covers discovery, detailed inspection, installation, source reading, and guidance for both charts and dashboards. Minor lifecycle gaps remain, such as no explicit uninstall/remove or installed-state inspection, but agents can work around these with normal file operations.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues