Docs · MCP server
Set up TinyPivot in a minute.
One command configures every harness on your machine. Ask your agent to chart something and the result opens as an interactive chart and pivot.
Quick start
npx @smallwebco/tinypivot-mcp@latest initDetects Claude Code, Claude Desktop, Cursor, Antigravity, OpenCode, Codex and pi.
- Run the command above.
- Restart your harness so it picks up the new MCP server.
- Ask:
Open TinyPivot and show me sample revenue by region.
Setup by harness
Prefer to edit config files yourself? Pick your harness.
Claude Code, OpenCode, pi, Codex
Unicode charts and pivot cards in the terminal, plus a live Data IDE on localhost.
# Wire every harness it finds:
npx @smallwebco/tinypivot-mcp@latest init
# Or add it to Claude Code by hand:
claude mcp add tinypivot -- npx -y @smallwebco/tinypivot-mcp@latest --openClaude Desktop
Inline interactive charts and pivots in the chat. Restart Claude Desktop after saving.
{
"mcpServers": {
"tinypivot": {
"command": "npx",
"args": [
"-y",
"@smallwebco/tinypivot-mcp@latest"
]
}
}
}Cursor
Agents can open CSVs, JSON logs or SQL exports as charts and pivots.
{
"mcpServers": {
"tinypivot": {
"command": "npx",
"args": [
"-y",
"@smallwebco/tinypivot-mcp@latest"
]
}
}
}Antigravity
Side pane, sidebar view and inline widgets in chat.
{
"mcpServers": {
"tinypivot": {
"command": "npx",
"args": [
"-y",
"@smallwebco/tinypivot-mcp@latest"
],
"env": {
"TINYPIVOT_LICENSE_KEY": "optional-pro-key"
}
}
}
}Direct Postgres (Pro)
Read-only connector with SQL validation and a table allowlist. Every other database works by piping CSV or JSON.
{
"mcpServers": {
"tinypivot": {
"command": "npx",
"args": [
"-y",
"@smallwebco/tinypivot-mcp@latest"
],
"env": {
"DATABASE_URL": "postgresql://readonly:pass@localhost:5432/analytics",
"TINYPIVOT_ALLOWED_TABLES": "orders,customers,products",
"TINYPIVOT_LICENSE_KEY": "TP-MCP…"
}
}
}
}Prompts to try
Tools
open_tinypivotOpen the Data IDE- Opens the Chart / Pivot / Data view. With no arguments it loads sample data.
load_fileLocal files- Loads a CSV, TSV or JSON file, including exports from BigQuery, Snowflake, MySQL, DuckDB or Databricks. Rows stay out of context.
load_dataRows from other tools- Takes JSON rows from Stripe, GitHub, an API or another SQL MCP server and renders a chart and pivot.
configure_pivotExact pivots- Sums, averages, medians and totals computed by TinyPivot, not by the model.
configure_chartChart types- Bar, stacked bar, line, area, pie, donut, scatter, heatmap or radar.
query_postgresPro · Postgres- Read-only, validated SQL against an allowlisted Postgres database.
Token savings, with the caveats.
Move the sliders to match your own work. The model counts what you avoid sending: the raw rows, their re-reads on follow-ups, and the tables the model would otherwise rewrite.
- Tokens saved / analysis
- 114k
- Saved / month · Claude Sonnet 5.5
- $21
- Analyses / month
- 87
Monthly savings by model┊ Pro $19/mo
Does Pro pay for itself? · Claude Sonnet 5.5
Assumes ~5 tokens per cell, cached re-reads billed at 10% of input price, ~600 output tokens per rewritten table, and a ~200-token schema summary with TinyPivot. If you already aggregate down to a handful of rows in SQL before the model sees them, the raw-row savings shrink; you still skip the re-prompting for every new chart or slice.
Privacy
Rows, column names, SQL and file paths never leave your machine. The MCP server sends a small anonymous usage ping (tool name, row-count bucket, harness name, OS and a random local ID). Turn it off with TINYPIVOT_TELEMETRY=0 or DO_NOT_TRACK=1.