klar-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Klar is a library of 110 hand-drawn React + Tailwind v4 SVG charts (no chart library): 68 reusable charts that take data through props (basics, finance, science, BI, tech and the shared kit) and 42 bespoke charts from 12 complete example dashboards. Every chart is one component you can install on its own. To add a chart: list_charts (no arguments returns every chart on one line each; or filter by query, tag, kind, collection) → choose → get_chart(id) for props, data types and a usage example → install_chart({ project_dir, ids }) → install the packages it reports, import klar.css after tailwindcss, render the component inside , and replace the demo data with the user's data. Not sure where something lives? search(query) looks through charts and dashboards together. Whole dashboards are examples built from the charts: list_dashboards → get_dashboard (slug or name; shows a preview and the ids of its charts) → install_dashboards. Always install with install_chart / install_dashboards rather than reading and retyping files: they copy exactly the files needed and rewrite imports. Use read_file only to study or adapt a file. get_guide("charts") has the full workflow.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_chartsA | 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. |
| get_chartA | 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. |
| install_chartA | 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. |
| list_chart_tagsA | The vocabulary for list_charts: every tag with the number of charts carrying it, plus the kinds, collections and dashboards with counts. |
| searchA | 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". |
| list_dashboardsA | 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. |
| get_dashboardA | 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"). |
| install_dashboardsA | 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. |
| list_componentsA | Lists the reusable kit modules (shell, UI, charts, lib) and what each file exports. For charts prefer list_charts, which has descriptions and tags. |
| read_fileA | 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. |
| get_guideC | "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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| add_chart | Find the right Klar chart for what the user wants to show, install it into the current project, wire it up and feed it their data. |
| replicate_dashboard | Step-by-step instructions to bring one Klar dashboard into the current project and adapt it. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.