# chart-canvas [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/gluip/chart-canvas  
**GitHub Stars:** 1  
**npm Downloads (last month):** 269  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chart-canvas

## Description
Create interactive visualizations and query data sources (SQLite, CSV, Parquet, JSON)

## Tools
Capabilities this server exposes over MCP:

- **line** — Line charts with multiple series
- **bar** — Bar charts for comparisons
- **scatter** — Scatter plots for data distribution
- **pie** — Pie charts with labels
- **table** — Data tables with headers
- **flowchart** — Mermaid diagrams (flowcharts, sequence diagrams, Gantt charts, etc.)
- **databasePath** — Path to SQLite database file (e.g., `./data/mydb.sqlite` or absolute path)
- **query** — SQL SELECT query (read-only)
- **visualizationType** — Type of chart: `line`, `bar`, `scatter`, `pie`, or `table`
- **xColumn** — Column for X-axis (required for charts)
- **yColumns** — Array of columns for Y-axis (required for charts)
- **seriesColumn** — Column to group data into separate series (optional)
- **groupByColumn** — Alternative grouping column (optional)
- **title** — Optional title for visualization
- **description** — Optional description
- **useColumnAsXLabel** — If true, use X column values as labels instead of numbers

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "chart-canvas": {
    "command": "npx",
    "args": ["-y","@gluip/chart-canvas-mcp"]
  }
}
```

## Documentation

## What the chart-canvas MCP server does

The chart-canvas MCP server gives an MCP-connected assistant a way to create and manage visual output in a browser dashboard. It supports line, bar, scatter, and pie charts, along with tabular views. It can also display Mermaid-based diagrams, including flowcharts, sequence diagrams, and Gantt charts.

The dashboard uses a grid layout and updates as visualizations are added or removed. A browser view can be opened through the server, while the MCP client remains the interface for requesting charts, querying data, and managing the canvas.

Supported local data formats include SQLite databases, CSV files, Parquet files, JSON arrays of objects, and newline-delimited JSON. Query results are converted into visualization configuration on the server; the result data itself is not sent to the language model.

## How it works

The server exposes separate operations for creating a visualization, removing one visualization, clearing the canvas, and opening the dashboard. A visualization can contain multiple series and optional labels, titles, and descriptions. Chart requests can use a column as the horizontal axis, provide one or more value columns, and optionally group records into separate series.

For SQLite workflows, `getDatabaseSchema` returns tables, columns, types, and constraints for a database path. `queryAndVisualize` accepts a database path, a SQL statement, a visualization type, and optional column mappings. Chart mappings identify the X column and one or more Y columns; an additional series or grouping column can organize the results. X-column values can also be used as categorical labels.

SQL execution is restricted to read operations. SELECT statements and queries beginning with a WITH clause are allowed, while data-changing and schema-changing statements such as INSERT, UPDATE, DELETE, and DROP are blocked. Query results are capped at 10,000 rows.

## Setup and configuration

Install the published package globally with npm, or run it without installation through npx:

```bash
npm install -g @gluip/chart-canvas-mcp
npx @gluip/chart-canvas-mcp
```

Add the server to an MCP client configuration with a command and package argument:

```json
{
  "mcpServers": {
    "chart-canvas": {
      "command": "npx",
      "args": ["-y", "@gluip/chart-canvas-mcp"]
    }
  }
}
```

The documented Claude Desktop configuration locations are `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS and `%APPDATA%/Claude/claude_desktop_config.json` on Windows. The chart-canvas MCP server starts on port 3000, and the `showCanvas` operation opens the dashboard in the default browser.

For local development, the repository uses separate backend and frontend packages. The backend can run with the development entry point, while production builds combine the application into a single server.

## Tools and capabilities

- `addVisualization`: creates line, bar, scatter, pie, table, or Mermaid visualizations.
- `removeVisualization`: deletes a visualization by ID.
- `clearCanvas`: removes every visualization from the canvas.
- `showCanvas`: opens the dashboard in a browser.
- `getDatabaseSchema`: inspects a SQLite database structure.
- `queryAndVisualize`: runs a read-only SQLite query and renders the result as a chart or table.

Line charts accept multiple series. Bar charts support comparisons, scatter charts show distributions, pie charts include labels, and tables display headers. Mermaid content supports diagram forms documented by Mermaid, including flowcharts, sequence diagrams, and Gantt charts.

_Full upstream README: https://allmcps.com/mcp/chart-canvas/readme_

