# Klar charts

> Klar charts is an open-source MCP server for ui design tools. Hand-drawn React SVG chart library and MCP server for coding assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Web, API, CLI, VS Code
- **Website:** https://klar.run/mcp
- **Repository:** https://github.com/klar-run/klar
- **MCP Registry name:** io.github.klar-run/klar
- **Categories:** [ui design tools](https://ai-powered.com/categories/ui-design-tools)
- **Listing updated:** 2026-11-28

## About

Klar is a collection of 110 React chart components drawn directly in SVG, with no charting library underneath. Each chart ships as source you can import from npm or copy into your project, and includes light and dark themes controlled by a single wrapper component.

Beyond everyday line, bar and pie charts, the catalogue covers specialised views such as candlestick with volume, Kaplan–Meier curves, flame graphs, Sankey diagrams and dependency Gantt charts. Twelve complete example dashboards with sample data are also available to install and adapt.

An MCP server lets an AI coding assistant search the catalogue, pick a chart that suits your data, install it and map your fields to its props. It works with Claude Code, Cursor, VS Code, Windsurf and Claude Desktop. The project is free and open source under the MIT licence.

## Features

- **110 hand-drawn charts:** Covers basic, finance, science, BI and engineering chart types plus sparklines, gauges and radars.
- **No chart library dependency:** Each chart is written in plain React and SVG, so the installed code is the code that renders.
- **Light and dark theming:** Design tokens are scoped to a wrapper so they do not affect the rest of the application's styles.
- **Accessibility and export:** Keyboard navigation, screen reader descriptions, data table views and SVG, PNG and CSV export.
- **Install via npm or shadcn:** Import the package or copy a single chart and only its required files into your project.
- **AI assistant integration:** An MCP server with search, install and dashboard tools lets coding assistants add charts for you.

## Good for

- Add a finance chart such as a candlestick or yield curve to a dashboard
- Plot clinical survival data with Kaplan–Meier curves in a React app
- Start a dashboard from a prebuilt layout and replace the sample data
- Ask a coding assistant to pick and wire up a chart for a given dataset

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add klar -- npx -y klar-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "klar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "klar-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add klar -- npx -y klar-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.klar]
command = "npx"
args = ["-y", "klar-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user klar npx -- -y klar-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "klar": {
      "command": "npx",
      "args": [
        "-y",
        "klar-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

From the tool list in its README, going by the names, 5 of 7 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_charts` (name suggests: reads): Lists available charts.
- `get_chart` (name suggests: reads): Returns details for a chart.
- `install_chart`: Installs a chart into the project.
- `search` (name suggests: reads): Searches the chart and dashboard catalogue.
- `list_dashboards` (name suggests: reads): Lists available dashboards.
- `get_dashboard` (name suggests: reads): Returns details for a dashboard.
- `install_dashboards`: Installs dashboards into the project.

## FAQ

### Is Klar free to use?

Yes. The charts are free and open source under the MIT licence.

### Do I need a chart library installed?

No. Each chart is hand-written SVG in React with no dependency on D3, Recharts or canvas frameworks.

### Which AI tools can use the MCP server?

Claude Code, Cursor, VS Code, Windsurf, Claude Desktop and any MCP client are mentioned as supported.

### Can I install a single chart without the whole package?

Yes. The shadcn CLI copies one chart and only the files it needs into your components folder.

### How do I add Klar charts to Claude Code?

Run this command in your terminal: claude mcp add klar -- npx -y klar-mcp

### What are the best alternatives to Klar charts?

The closest alternatives to Klar charts are Specimo, ArtCraft · FigCraft, Flowstep, UI Shots and Glibiq Icons.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Specimo](https://ai-powered.com/mcp/specimo): Specimo is a freemium MCP server for ui design tools.
- [ArtCraft · FigCraft](https://ai-powered.com/mcp/artcraft-figcraft): ArtCraft · FigCraft is an open-source MCP server for design and media.
- [Flowstep](https://ai-powered.com/mcp/flowstep): Flowstep is a freemium MCP server for 3d modeling.
- [UI Shots](https://ai-powered.com/mcp/ui-shots): UI Shots is a freemium MCP server for ui design tools.
- [Glibiq Icons](https://ai-powered.com/mcp/glibiq-icons): Glibiq Icons is a freemium MCP server for ui design tools.
- [UX lens of Dennis Jansen](https://ai-powered.com/mcp/ux-lens-of-dennis-jansen): UX lens of Dennis Jansen is a freemium MCP server for ui design tools.

---
Source: https://ai-powered.com/mcp/klar-charts
