CSV Insights MCP
Click 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., "@CSV Insights MCP show me revenue by product from sales.csv"
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.
CSV Insights MCP
Private, local spreadsheet analysis for Grok Bot and Cursor. Ask questions about your sales exports, bank statements or any CSV and get real numbers: profiles, filtered queries, group-bys, pivots, cleaned copies and charts. Your data never leaves your machine: no network calls, no accounts, no API keys, no telemetry.
Why
Pasting a spreadsheet into chat is lossy, slow, and leaks data to wherever the transcript goes. CSV Insights lets the agent compute over the file locally and only return the aggregates it needs. Ideal for solopreneur sales and finance questions: "revenue by product last quarter", "who are my top 10 customers", "dedupe this export".
Related MCP server: mix_server
Tools
Tool | What it does | Writes? |
| List | no |
| Row count; per column: inferred type, empties, distinct, samples, min/max/mean | no |
| SQL-like SELECT: | no |
| Sum/mean/median/std/quartiles for numbers, top values for text, plain-language highlights | no |
| GROUP BY 1–5 columns with | no |
| Rows × columns cross-tab of an aggregated value (≤50 columns) | no |
| Preview trim / collapse spaces / drop empty rows / dedupe / case / number normalisation; optional | new file only |
| Aggregate + render a bar or line chart to SVG | new file only |
Numbers are parsed robustly: $1,200.00 → 1200, (45) → −45, 12% → 12, R 99 → 99.
Install
Local (recommended: data stays on your computer)
Requires Node.js 20+.
Grok Bot / Cursor plugin: add this plugin from the marketplace, or add to your .mcp.json:
{
"mcpServers": {
"csv-insights": {
"command": "npx",
"args": ["-y", "https://github.com/ppiotis/csv-insights-mcp/archive/refs/tags/v1.0.0.tar.gz"],
"env": { "CSV_INSIGHTS_DIR": "/absolute/path/to/your/csv/folder" }
}
}
}If CSV_INSIGHTS_DIR is not set, the server uses its working directory (your workspace in Cursor).
From source:
git clone https://github.com/ppiotis/csv-insights-mcp && cd csv-insights-mcp
npm ci && npm run build
CSV_INSIGHTS_DIR=./examples node dist/stdio.jsRemote (Streamable HTTP)
The same server speaks Streamable HTTP at /mcp (stateless, JSON responses). Because it reads files from its own disk, host it next to the data (your machine, a NAS, or a private team server) rather than on a public multi-tenant host.
CSV_INSIGHTS_DIR=/data MCP_AUTH_TOKEN=change-me PORT=3000 node dist/serve-http.js
# or
docker build -t csv-insights-mcp . && docker run -p 3000:3000 -v "$PWD/examples:/data" -e CSV_INSIGHTS_DIR=/data -e MCP_AUTH_TOKEN=change-me csv-insights-mcpClient config: {"url": "https://your-host/mcp", "headers": {"Authorization": "Bearer change-me"}}. GET /health returns {"ok":true}.
Configuration
Env var | Default | Purpose |
| working directory | The only folder files are read from |
| 52428800 (50 MB) | Max file size |
| 500000 | Max rows |
| unset | HTTP only: require |
|
| HTTP bind address |
Security & privacy
No network. The server makes zero outbound requests and has no telemetry. Dependencies: the MCP SDK,
zod,papaparse.Allowlisted folder. Every path is resolved inside
CSV_INSIGHTS_DIR;.., absolute paths and symlinks that escape are rejected (unit-tested). Only.csv,.tsvand.txtfiles are read.Least privilege writes. Source files are never modified. Cleaned copies and charts go only to
csv-insights-output/inside the folder, file names are sanitised, and existing files are never overwritten.Resource limits. File-size and row caps, result caps (≤1000 rows, ≤50 pivot columns), 1 MB HTTP body cap.
No secrets. Nothing to configure for normal use. The optional HTTP bearer token is compared in constant time. HTTP binds to
127.0.0.1by default.Accurate annotations. Read tools are
readOnlyHint: true; the two file-producing tools arereadOnlyHint: false, destructiveHint: false.
Reviewer test plan
Setup: add the plugin with CSV_INSIGHTS_DIR pointing at this repo's examples/ folder (contains sales.csv, 11 orders with one duplicate row, one padded value and one blank cell).
Explore. Ask: "What's in sales.csv?" → Expect the bot to call
list_csv_files+profile_csvand report 11 rows, 6 columns,revenueas a number column (max 1200) anddateas a date column (2026-07-01 to 2026-09-12).Business question. Ask: "Which region made the most revenue?" → Expect
group_byand the answer South, $1,212.00, followed by East ($1,159.99), West and North.Pivot. Ask: "Units by region and product as a table." → Expect
pivot_table; North × Planner PDF = 8.Clean. Ask: "Are there duplicates? Give me a cleaned copy." → Expect a preview first (1 duplicate, 1 trimmed cell), then after you confirm,
csv-insights-output/<name>.csvwith 10 data rows.examples/sales.csvis unchanged.Chart + security. Ask: "Chart revenue over time (by date) as a line chart" → an SVG appears in
csv-insights-output/. Then ask: "Profile ../../etc/passwd" → Expect a clear refusal: "Path is outside the allowed directory".
Development
npm ci
npm test # build + unit tests + e2e (stdio and HTTP)
npm audit --omit=devThe e2e suite spawns the real server over stdio and over Streamable HTTP (with bearer auth) and calls every tool through an MCP client.
License
MIT © Paris Piotis
Available Tools
8 toolsclean_previewClean / dedupe previewA
Preview cleaning (trim whitespace, collapse spaces, drop empty rows, dedupe, case normalisation, number normalisation) without touching the source. Set save_as to write the cleaned copy to csv-insights-output/ (never overwrites).
Inputs: file (required), case, dedupe, save_as, +5 more.
create_chartCreate chart (SVG)A
Aggregate a CSV and render a bar or line chart as an SVG file in csv-insights-output/. Returns the file path and the plotted data.
Inputs: x (required), file (required), type (required), output_name (required), +6 more.
group_byGroup by and aggregateBRead-onlyIdempotent
GROUP BY one or more columns with aggregations (count, sum, mean, min, max, median, count_distinct). Sorted by the first metric descending unless 'sort' is given.
Inputs: by (required), file (required), metrics (required), sort, +2 more.
list_csv_filesList CSV filesARead-onlyIdempotent
List .csv/.tsv files inside the allowed directory (recursive, max depth 4).
Inputs: subdirectory.
pivot_tablePivot tableBRead-onlyIdempotent
Cross-tabulate: one column as rows, another as columns, aggregating a value column. Max 50 output columns.
Inputs: file (required), rows (required), columns (required), agg, +2 more.
profile_csvProfile CSV schemaARead-onlyIdempotent
Return row count and, per column: inferred type (number/date/boolean/string), empty count, distinct count, samples and min/max/mean.
Inputs: file (required).
query_csvQuery CSV (SQL-like)ARead-onlyIdempotent
SQL-like SELECT over a CSV: choose columns, WHERE conditions, ORDER BY, DISTINCT, LIMIT/OFFSET. Numeric-aware comparisons. Returns at most 1000 rows.
Inputs: file (required), limit, where, offset, +3 more.
summarize_csvSummarize CSVBRead-onlyIdempotent
Descriptive statistics: sum/mean/median/std/quartiles for numeric columns, top values for text columns, plus plain-language highlights.
Inputs: file (required), columns.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes (list, query, group_by, pivot_table, clean_preview, create_chart), but summarize_csv and profile_csv both return per-column statistics and could be confused. Descriptions help distinguish them (plain-language highlights vs. type inference/samples), so overlap is manageable.
Consistent snake_case throughout, but verb placement varies: verb_noun (list_csv_files, summarize_csv, query_csv, create_chart) mixed with noun-style names (group_by, pivot_table) and an awkward clean_preview. Still readable and predictable enough.
Eight tools is well-scoped for a CSV insight server, and each tool covers a distinct analysis capability (profiling, stats, querying, grouping, pivoting, cleaning, charting). No filler tools.
Strong coverage of the read/analyze lifecycle (list, profile, summarize, query, group, pivot, clean, chart). Minor gaps: no way to export query/group results and no cross-file join, but the core analysis surface is solid.
Maintenance
Related MCP Connectors
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Ask questions about a CSV in plain English and get answers, charts and cleaned data back.
The all-in-one data stack for agents. Upload files, run SQL, evolve tables, and render charts.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables Claude to directly access, query, and analyze local CSV files using natural language, keeping data private and local.41-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with local CSV and Parquet data files through natural language queries, facilitating tasks like summarizing datasets or retrieving specific information.4-
- AlicenseNot gradedqualityBmaintenanceQuery local CSV, Parquet, JSON and TSV files with real SQL via DuckDB. Gives your AI coding tool ground-truth data access instead of hallucinated answers.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to analyze large CSV files locally by importing them into SQLite, profiling columns, and running read-only SQL queries without data leaving the machine.MIT