klar-mcp
OfficialThis server helps discover, inspect, and install Klar React charts and dashboards into a project.
List all 110 charts with filters by collection, kind, tag, or fuzzy query, and get the tag/kind/collection vocabulary.
Search fuzzy across charts and dashboards together.
Get full details for a chart, including props, data types, usage example, dependencies, and standalone status.
Install one or more charts into a project, rewriting imports, generating an index, and reporting missing npm packages, CSS setup, and usage snippets; supports dry runs and overwrite control.
List and inspect the 12 example dashboards, including their chart IDs, files, and previews.
Install whole dashboards with the shared Klar kit, rewriting imports and generating setup steps.
List reusable kit components and read kit/dashboard source files for study or adaptation.
Get guides for chart workflow, setup, and dashboard design.
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.
Related MCP server: microcharts
Install
Pick the way that fits your project. All three install the same charts.
npm
npm i klar-chartsimport '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/:
npx shadcn@latest add https://klar.run/r/fin-candlestick.jsonEvery chart page in the atlas shows its command. Whole dashboards install the
same way, e.g. https://klar.run/r/dashboard-halo.json.
Your AI assistant (MCP)
# 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/klarWorks 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 →
Twelve example dashboards
Complete dashboards built from the charts, with layout, navigation and sample data. Install one as source and swap in your data.
What's in the box
Collection | Charts |
Line, area, stacked and grouped bar, pie, scatter, bubble, funnel, waterfall, box plot, timeline, KPI cards | |
Candlestick, order-book depth, yield curve, volatility surface, drawdown, correlation matrix, market treemap | |
Kaplan–Meier, forest plot, regression with bands, raincloud, hexbin, histogram + KDE, spectrogram, parallel coordinates | |
Bullet, bump, slope, dumbbell, Marimekko, Pareto, calendar heatmap | |
Flame graph, Sankey, chord, network graph, dependency Gantt, radial dendrogram, wind rose | |
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 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 or write to hello@qtech.ee.
License
MIT. Every company, person and number in the examples is fictional.
Available Tools
11 toolsget_chartGet one Klar chartARead-only
Everything needed to use one chart: description, tags, its props (with comments) and data types taken from the component source, a usage example, the files and npm packages it needs, whether it is standalone, and for a bespoke chart the dashboard it belongs to. Accepts an id from list_charts, a short id ("candlestick"), a component name ("KaplanMeier") or a name.
Inputs: id (required), target_dir.
get_dashboardGet a Klar dashboardARead-only
Details for one dashboard: summary, signature charts, the ids of the charts it contains (each installable on its own with install_chart), its files with line counts, the kit modules it imports, and a preview screenshot. Accepts a slug ("meridian"), a product name ("Meridian Freight") or a description ("freight control tower").
Inputs: slug (required), preview.
get_guideGet a Klar guideCRead-only
"charts": the end-to-end workflow for finding, choosing, installing and wiring a chart, with data-shaping tips. "setup": requirements, CSS wiring and rendering. "design": how to adapt a dashboard (brand, data, copy) and build new screens in the same style.
Inputs: topic (required).
install_chartInstall Klar charts into a projectAIdempotent
Copies one or more charts into the project (default /src/klar): each chart component plus exactly the files it imports, klar.css and ThemeScope. Rewrites imports to relative paths, never overwrites existing files unless overwrite is true, and adds the charts to the generated index.ts. Returns the files written, the npm packages still missing, the CSS import step, and an import line and usage snippet per chart. Does not copy the rest of the kit or any dashboard.
Inputs: ids (required), project_dir (required), dry_run, overwrite, +1 more.
install_dashboardsInstall whole Klar dashboards into a projectAIdempotent
Copies the Klar kit and the chosen dashboards into the project (default /src/klar), rewriting imports to relative paths and generating an index.ts. Dashboards can be given as slugs or names. Never overwrites existing files unless overwrite is true. Returns the files written and the remaining setup steps (packages to install, CSS import, render snippet). For a single chart use install_chart instead.
Inputs: project_dir (required), dry_run, overwrite, dashboards, +2 more.
list_chartsList Klar chartsARead-only
Lists Klar's 110 charts, one line each: id · name · collection (or the dashboard a bespoke chart belongs to) · kind · tags. With no arguments it returns ALL of them, compact enough to scan and choose from. Filters narrow the list; "query" is a fuzzy search over names, tags and descriptions (typos and partial words are fine). Start here when the user wants a chart.
Inputs: tag, kind, limit, query, +2 more.
list_chart_tagsList chart tags, kinds and collectionsARead-only
The vocabulary for list_charts: every tag with the number of charts carrying it, plus the kinds, collections and dashboards with counts.
Inputs: no named parameters.
list_componentsList Klar kit componentsARead-only
Lists the reusable kit modules (shell, UI, charts, lib) and what each file exports. For charts prefer list_charts, which has descriptions and tags.
Inputs: no named parameters.
list_dashboardsList Klar dashboardsARead-only
Lists the 12 example dashboards built from the charts: product, purpose, category, default theme, accent and signature charts. Optional "query" (fuzzy over name, title, summary, category, signature charts) and "category" narrow the list.
Inputs: query, category.
read_fileRead a Klar source fileARead-only
Returns the source of one kit or dashboard file, e.g. "components/charts/finance/Candlestick.tsx", "dashboards/orbit/index.tsx" or "klar.css". Imports use the "@/" alias for the kit root; the install tools rewrite them to relative paths. Use it to study or adapt a file, not to copy it by hand.
Inputs: path (required).
searchSearch charts and dashboardsARead-only
One fuzzy search across every chart and every dashboard, ranked together. Use it when you do not know whether the user means a single chart or a whole dashboard, e.g. "freight", "retention", "latency heatmap".
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Find and install React charts from your coding agent: search 132 chart types by the question your data answers (100 free and MIT), get each type's props and the JSON Schema of its data, the component files and the design tokens. No auth needed; a Chartory registry token unlocks the code of the paid types.
Search free React, Tailwind, and shadcn components, blocks, and dashboards; get installable source.
React + Tailwind UI components and recipes your AI coding tool can search and install.
React + Tailwind UI components and recipes your AI coding tool can search and install.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides documentation and component references for the Reacticx React Native library, including props, code examples, and installation guides. It enables users to search through over 90 components and retrieve setup commands for project dependencies.517 npm2MIT
- AlicenseAqualityBmaintenanceRenders word-sized charts — sparklines, bars, bullets and 100+ more types — to self-contained SVG with generated alt text, small enough to sit inline in a model's reply or a table cell. Three tools: find the right chart for a question, get its wiring, and render it.34,695 npm209MIT
- AlicenseAqualityBmaintenanceGenerates pure CSS and SVG charts for web pages and markdown docs, eliminating the need for chart libraries, and provides injection guidance.3197 npm1MIT
- AlicenseNot gradedqualityBmaintenanceDeterministic chart engine for AI agents. A small JSON spec renders locally to PNG or SVG with no headless browser. 47 chart types, tiled dashboards and 8 scientific plots (Kaplan-Meier, volcano, Bland-Altman, Q-Q).1AGPL 3.0