API & MCP
Everything a person can do on CSV/Excel Chart Studio, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://csvexcelchartstudio.usefulweb.site/api/v1/calculate– run CSV/Excel Chart StudioGET https://csvexcelchartstudio.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
CSV/Excel Chart Studio
Upload a CSV, TSV or XLSX file (up to 20 MB) or paste a table. The studio detects numbers, dates and categories, lets you pick the chart type, X/Y columns, a grouping column, aggregation (sum, average, count …), sorting and top-N, and returns an accessible SVG chart with SVG and PNG downloads plus the data table behind it.
| Field | Type | Default | Description |
|---|---|---|---|
file | file | — | CSV, TSV or Excel file. CSV/TSV/TXT or .xlsx, max 20 MB. The format is detected from the content. Old .xls files: save as .xlsx first. |
data | textarea | — | Or paste data. Comma-, semicolon-, tab- or pipe-separated, first row = headers. Used when no file is uploaded. |
sheet | text | — | Excel sheet. Sheet name or number; default: the first sheet. |
hasHeader | boolean | true | First row contains column names |
chartType | select (auto, line, area, bar, stacked, scatter, pie, donut, histogram) | "auto" | Chart type |
x | text | — | X column (categories or dates). Column name, letter (A, B …) or number. Empty: first date or text column. |
y | text | — | Y columns (values). One or more column names, comma-separated. Empty: the numeric columns. No numeric column: rows are counted. |
group | text | — | Group / series column. Optional: split the first Y column into one series per value of this column (e.g. Region) – ideal for stacked bars. |
aggregation | select (auto, sum, avg, count, min, max, median, none) | "auto" | Combine repeated X values |
sort | select (auto, none, x, value-desc, value-asc) | "auto" | Sort |
topN | integer | 0 | Top N categories. 0 = all (very long category lists are cut automatically). |
otherBucket | boolean | true | Combine the rest into "Other" |
bins | integer | 0 | Histogram bins. 0 = automatic (Sturges’ rule). |
title | text | — | Chart title |
png | boolean | true | Also create a PNG image |
Example request
Revenue by month, stacked by region
curl -X POST https://csvexcelchartstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"data":"Month,Region,Revenue,Orders\n2026-01,North,12400,310\n2026-01,South,9800,250\n2026-02,North,13900,342\n2026-02,South,10150,262\n2026-03,North,15100,371\n2026-03,South,11800,290\n2026-04,North,14650,355\n2026-04,South,12900,301","chartType":"stacked","x":"Month","y":"Revenue","group":"Region","png":false}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://csvexcelchartstudio.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
csv_excel_chart_studio - Local stdio connector:
node src/mcp-stdio.ts --tool=csv-excel-chart-studio
{
"mcpServers": {
"csv-excel-chart-studio": { "type": "http", "url": "https://csvexcelchartstudio.usefulweb.site/mcp" }
}
}