Chuk MCP Chart
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chuk MCP Chart make a bar chart of Q1-Q4 revenue: 42000, 51000, 48000, 55000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chuk MCP Chart
Interactive data visualisation via MCP — paste a CSV, describe your data, ask for a chart. Bar, pie, line, doughnut, radar, polar, and area charts rendered instantly.
This is a demonstration project provided as-is for learning and testing purposes.
Features
Three tools that turn raw data into beautiful charts:
1. Show Chart (show_chart)
Create a chart from explicit data. Provide labels, one or more datasets, and optional configuration:
Chart types: bar, line, pie, doughnut, radar, polar, area
Axis labels, legend position, stacked mode
Custom colours per dataset
Auto-assigned colour-blind-friendly palette
2. Chart from CSV (chart_from_csv)
Paste raw CSV text and get a chart — zero configuration required:
First non-numeric column becomes category labels
Every numeric column becomes a dataset (series)
If all columns are numeric, row numbers are used as labels
Perfect for spreadsheet data
3. Chart from JSON (chart_from_json)
Pass a JSON array of objects and get a chart automatically:
First string field becomes category labels
Every numeric field becomes a dataset
Great for API responses or structured data
Related MCP server: Table Charts
Installation
Using uvx (Recommended - No Installation Required!)
uvx chuk-mcp-chartThis automatically downloads and runs the latest version. Perfect for Claude Desktop!
Using uv (Recommended for Development)
# Install from PyPI
uv pip install chuk-mcp-chart
# Or clone and install from source
git clone https://github.com/IBM/chuk-mcp-chart.git
cd chuk-mcp-chart
uv sync --devUsing pip (Traditional)
pip install chuk-mcp-chartUsage
With Claude Desktop
Option 1: Run Locally with uvx
{
"mcpServers": {
"chart": {
"command": "uvx",
"args": ["chuk-mcp-chart"]
}
}
}Option 2: Run Locally with pip
{
"mcpServers": {
"chart": {
"command": "chuk-mcp-chart"
}
}
}Standalone
# With uvx (recommended - always latest version)
uvx chuk-mcp-chart
# With uvx in HTTP mode
uvx chuk-mcp-chart http
# Or if installed locally
chuk-mcp-chart
chuk-mcp-chart httpOr with uv/Python:
# STDIO mode (default, for MCP clients)
uv run chuk-mcp-chart
# or: python -m chuk_mcp_chart.server
# HTTP mode (for web access)
uv run chuk-mcp-chart http
# or: python -m chuk_mcp_chart.server httpSTDIO mode is for MCP clients like Claude Desktop and mcp-cli. HTTP mode runs a web server on http://localhost:8000 for HTTP-based MCP clients.
Example Prompts
Once configured, try asking:
"Chart my monthly expenses" (then paste your data)
"Show Python vs JavaScript popularity as a pie chart"
"Turn this CSV into a line chart showing trends over time"
"Create a bar chart of Q1-Q4 revenue: 42000, 51000, 48000, 55000"
"Show a radar chart comparing three products across speed, quality, and price"
"Make a doughnut chart of browser market share"
Tool Reference
show_chart
Create a chart from explicit labels and datasets.
Parameters:
Parameter | Type | Default | Description |
| string |
| One of: bar, line, pie, doughnut, radar, polar, area |
| string |
| Chart title |
| string | — | Comma-separated category labels (e.g. |
| string | — | JSON array of dataset objects (see below) |
| string | — | X axis label |
| string | — | Y axis label |
| string | — | Legend position: top, bottom, left, right, none |
| bool |
| Stack bar/area datasets |
Dataset format (JSON string):
[
{"label": "Revenue", "values": [12, 19, 3, 5, 2, 3]},
{"label": "Expenses", "values": [8, 14, 2, 4, 1, 2], "color": "#ef4444"}
]chart_from_csv
Parse CSV text into a chart automatically.
Parameters:
Parameter | Type | Default | Description |
| string | — | Raw CSV text with header row |
| string |
| Chart type |
| string |
| Chart title |
Example input:
Month,Revenue,Expenses
Jan,4200,3800
Feb,5100,4200
Mar,4800,4100chart_from_json
Parse a JSON array into a chart automatically.
Parameters:
Parameter | Type | Default | Description |
| string | — | JSON array of objects |
| string |
| Chart type |
| string |
| Chart title |
Example input:
[
{"language": "Python", "popularity": 28.1},
{"language": "JavaScript", "popularity": 21.3},
{"language": "TypeScript", "popularity": 12.7}
]Development
Setup
# Clone the repository
git clone https://github.com/IBM/chuk-mcp-chart.git
cd chuk-mcp-chart
# Install with uv (recommended)
uv sync --dev
# Or with pip
pip install -e ".[dev]"Running Tests
make test # Run tests
make test-cov # Run tests with coverage
make coverage-report # Show coverage reportCode Quality
make lint # Run linters
make format # Auto-format code
make typecheck # Run type checking
make security # Run security checks
make check # Run all checksBuilding
make build # Build package
make docker-build # Build Docker imageDeployment
Fly.io
Deploy to Fly.io with a single command:
# First time setup
fly launch
# Deploy updates
fly deployThe server will be available via HTTP at your Fly.io URL.
Docker
# Build the image
docker build -t chuk-mcp-chart .
# Run the container
docker run -p 8000:8000 chuk-mcp-chartArchitecture
Built on top of chuk-mcp-server with chart rendering via chuk-view-schemas:
Decorator-driven: Tools defined with
@chart_tool— handles view metadata, structured content, and text fallback automaticallyType-safe: All chart data uses Pydantic v2 models (
ChartContent,ChartDataset,AxisConfig,LegendConfig)Smart parsing: CSV and JSON tools auto-detect labels vs data columns
Async native: All tools are async for optimal performance
Dual transport: STDIO for MCP clients, HTTP for web access
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
Apache License 2.0 - See LICENSE file for details.
Acknowledgments
Chart.js for the chart rendering engine
chuk-mcp-server for the MCP framework
Model Context Protocol for the MCP specification
Anthropic for Claude and MCP support
Available Tools
3 toolschart_from_csvBRead-only
Create a chart from CSV text. Best when the user pastes or provides CSV data. The first non-numeric column becomes labels; numeric columns become datasets. Example csv_data: "Name,Score\nAlice,85\nBob,92\nCarol,78"
Inputs: csv_data (required), title, chart_type.
chart_from_jsonARead-only
RECOMMENDED — the easiest way to create a chart. Pass a JSON array of objects; the first string field becomes labels, every numeric field becomes a dataset. Example: [{"name":"Python","score":28},{"name":"JS","score":21}]. chart_type: bar, line, pie, doughnut, radar, polar, or area.
Inputs: json_data (required), title, chart_type.
show_chartARead-only
Advanced chart tool with full control over axes, legend, and stacking. Prefer chart_from_json for simple charts — use this only when you need axis labels, legend position, stacking, or multiple overlaid datasets. labels: comma-separated (e.g. 'Jan,Feb,Mar'). datasets: JSON array of {"label":"Name","values":[1,2,3]}.
Inputs: title, labels, stacked, datasets, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools are mostly distinguishable by input format and complexity level: chart_from_json for simple JSON, chart_from_csv for pasted CSV, and show_chart for advanced chart configuration. There is still some overlap because show_chart can also create simple charts, but the description explicitly steers agents toward chart_from_json for that case.
All names use snake_case, but the patterns are mixed: show_chart is verb_noun while chart_from_csv and chart_from_json use noun_from_format. The names are readable and domain-focused, but they do not follow a single predictable convention.
Three tools is well-scoped for a chart-generation server. Each tool corresponds to a distinct data input or control mode, keeping the surface small without obvious redundancy.
The server covers the core chart-creation workflows: simple JSON input, CSV input, and advanced chart customization. Minor gaps remain, such as unclear chart-type support for CSV input and no explicit export/save operation, but the main use cases are covered.
Maintenance
Related MCP Connectors
Chart images (bar, line, pie, doughnut, sparkline) as SVG with a permanent public URL.
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
- ChartPaneDeprecatedcom.chartpane.mcp
Renders interactive Chart.js charts and dashboards inline in AI conversations. Supports bar, line, area, pie, doughnut, scatter, and radar charts with multi-chart dashboard grids.
Render pie, donut, and bar charts as SVG URLs or parse messy text and tables into chart slices.
Related MCP Servers
- AlicenseAqualityDmaintenanceA MCP server for data visualization. It exposes tools to render charts (line, bar, pie, scatter, heatmap, etc.) from data and returns plots as either image/text/mermaid diagram.24MIT
- AlicenseAqualityCmaintenanceTableCharts MCP Server gives any LLM assistant the ability to instantly convert tabular data into beautiful, hosted, interactive dashboards. Simply provide JSON rows, raw CSV text, or a public URL (Notion page, Google Sheet, or Salesforce report), and get back a shareable dashboard URL plus an embeddable iframe code — all in one tool call. Supports 6 chart types: bar, line, area, pie, scatter, a210 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server that renders interactive Chart.js charts (bar, line, pie, doughnut, etc.) inline in Claude's UI.1MIT
- AlicenseCqualityDmaintenanceMCP server that renders bar, line, and pie charts from data using QuickChart, returning PNG file paths.111 npmMIT