Skip to content
MCP server

Klar charts

Hand-drawn React SVG chart library and MCP server for coding assistants

Runs locally

Klar charts is an open-source MCP server for ui design tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
Web, API, CLI
Runs
Locally
Version
0.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add klar -- npx -y klar-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "klar": {
      "command": "npx",
      "args": [
        "-y",
        "klar-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Klar charts

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.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

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_chartsName suggests: reads
Lists available charts.
get_chartName suggests: reads
Returns details for a chart.
install_chart
Installs a chart into the project.
searchName suggests: reads
Searches the chart and dashboard catalogue.
list_dashboardsName suggests: reads
Lists available dashboards.
get_dashboardName suggests: reads
Returns details for a dashboard.
install_dashboards
Installs dashboards into the project.

What it does

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

Pricing

Open source

Free and open source under the MIT licence.

Prices change. Check klar.run before you buy.

Klar charts 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.

How AIPoweredBot checks servers