70,677npm downloads

TinyPivot · the data-analysis sidecar for AI agents

Ask your AI about your data. Get answers you can check.

TinyPivot runs alongside Claude, Cursor, Codex and other AI agents as a sidecar for data work. It works with any data your agent can reach: spreadsheets and files, Snowflake, BigQuery, Postgres, APIs or another MCP server. It catches the math mistakes AI quietly makes and shows the SQL behind every number.

  • Catches the quiet mistakes. 91% → 100% correct across 5 AI models on 18 analysis tasks with hidden traps. See the tests →
  • Twice as fast on hard questions. A/B tests, regressions and cohorts run in one step, not rounds of trial-and-error code. See the timings →
  • Costs less to run. 39% off Claude Opus's bill on the same tasks, and up to half the output tokens on smaller models. See the costs →
  • Your raw data stays put. Queries run on your machine or in your database. The AI sees results, not raw rows. What stays local →

Get started · paste in your terminal

npx @smallwebco/tinypivot-mcp@latest init

Sets up Claude Code, Claude Desktop, Cursor, Codex, OpenCode, Antigravity and pi. Other ways to install ↓

  • Free · unlimited rows
  • runs on your machine
  • no signup
  • no API key
TinyPivot Studio127.0.0.1

Map 2026 MRR by region

asked in pi · Amber CRT theme

North America leads with $17.12M, 35.5% of the total; LATAM is smallest at $5.34M.

✓ 3 of 3 numbers found in the data

  • 44,714rows read on your machine
  • 0raw rows sent to the model
  • ✓every number checked against the data
Trusted in production70,677 npm downloads
01 / 03
TinyPivot has been a great addition to our analytics platform, giving our customers intuitive, interactive data grid and pivot table capabilities without the overhead of building our own solution. Small Web Co has been incredibly responsive — actively listening to our use cases and shipping improvements quickly. It’s a high-quality, well-maintained library that delivers real value at a fraction of the cost of alternatives.
Kevin TetzCIOvesselscale.com ↗

What your agent gets

Three things AI analysis usually lacks.

  1. 01

    A second pair of eyes

    A query can run without errors and still be wrong: a join that double-counts revenue, a month that is only half over, an average of percentages. TinyPivot checks every query and stays quiet unless something is actually off.

  2. 02

    Statistics in one step

    A/B tests, regressions, cohort retention and anomaly detection run as single, tested tools. No improvised Python, no guessing at the method.

  3. 03

    Work you can check

    Every chart and number links to its SQL and the rows behind it, in a Studio window beside your agent. Pro also remembers your data between sessions, so repeat questions cost fewer tokens.

See it work · recorded sessions

Answers in the chat, the proof one click away.

Real sessions in each agent. The Studio opens beside the terminal with every step and its SQL, and checks each number in the answer against the data.

Terminal
Desktop apps
Loading the recorded session…
0:00 / 0:00

pi + Studio · real session, thinking time fast-forwarded

A map, a slope and a bullet chart, each from one sentence.

Three questions to pi, two of them asked in the Studio. Each answer comes with its chart, and the Studio checks every number in it against the data.

3
chart types from three questions
13
numbers in the last answer, all found in the data

The evidence · measured, with the method published

More accurate, faster, and cheaper to run.

Checking work usually costs extra tokens. Here it saves them: one tested tool call replaces several rounds of trial-and-error code. Tap any result to see how it was measured.

Head to head · 5 models × 18 data tasks

Same models, same tasks. With and without TinyPivot.

Each model got the same 18 data-analysis tasks, every one hiding a common trap: a join that double-counts, a month that is only half over, an uneven A/B split. It ran them once on its own and once with TinyPivot Pro. We measured how many answers were right, how long each task took, and what it cost.

  • 78% → 100%Inkling 2 Mini, a small model on a Mac, answered every task correctly
  • 43% less timeper task for the same model, with no cloud bill at all
  • under 4% of the costHaiku 5.5 with TinyPivot matched Opus 5.5's 100% for 8.3¢, vs $2.32 for Opus 5.5 alone
ModelAccuracytasks answered correctlyTimeseconds per taskCostAPI price, all 18 tasks
Inkling 2 MiniSmall local (Mac)
Accuracy
78%
100%
+22 pts
Time
46.1s
26.0s
43% less
Cost
2.7¢†
4.6¢†
70% more
DeepSeek V4.1Local cluster (DGX Spark)
Accuracy
94%
100%
+6 pts
Time
25.7s
15.6s
39% less
Cost
5.9¢†
5.5¢†
6% less
Haiku 5.5Fast cloud
Accuracy
83%
100%
+17 pts
Time
13.1s
12.5s
4% less
Cost
7.4¢
8.3¢
12% more
Sonnet 5.5Balanced frontier
Accuracy
100%
100%
already 100%
Time
20.0s
18.8s
5% less
Cost
$1.22
$1.01
17% less
Opus 5.5Flagship frontier
Accuracy
100%
100%
already 100%
Time
21.5s
22.0s
2% more
Cost
$2.32
$1.41
39% less

Small and open-weight models gain the most: TinyPivot does the exact maths and the checking, so the model only has to reason. Opus and Sonnet were already at 100% and stayed there. Cost is the API price for all 18 tasks. †Inkling and DeepSeek ran on our own hardware for $0; their cost is what the same tokens would cost at each model's API rates. Every run, task and prompt →

Direct connections · Free

Ask the warehouse. Skip the export.

TinyPivot queries your warehouse where the data lives — included in Free. The warehouse adds up every row, the agent sees only the answer, and every step in the Studio reruns against the same tables.

  • BigQuery
  • Snowflake
  • Databricks
  • ClickHouse
  • MySQL & MariaDB
  • Postgres
  1. 01

    Totals over every row

    The warehouse does the maths on the whole table. No 100-row command-line preview, no sampled export, nothing quietly cut off.

  2. 02

    1-call schema & trap brief

    profile() reads 0-scan metadata plus one aggregate probe per table to surface schemas, filter values, date ranges, join fan-out, NULL shares and mixed currencies before the first query.

  3. 03

    The sign-in you already have

    Reuses gcloud, the Snowflake and Databricks CLIs, and your MySQL and ClickHouse client settings. Setup saves a pointer to them, never a password.

  4. 04

    Read-only, with a spend cap

    Checked by the warehouse's own dry run or query plan before it runs, with a scan cap, a table allowlist, batched queries[] and a tag on every query.

  • 46% fasterper question than the bq command line on Claude (20–25% less API spend)
  • 71% fasterthan exporting to a file first and analysing that locally
  • 88% → 100%on small local models (Inkling 2 Mini & DeepSeek V4.1 Flash, 32/32 correct vs 28/32 bare SQL, turns cut in half)

Already signed in to a warehouse? This finds the sign-in and switches it on:

npx @smallwebco/tinypivot-mcp@latest init --connect

Measured with Claude Haiku and Claude Sonnet on 8 questions over 2.7 million rows in BigQuery, two runs each. Time is the average per question; cost is at API prices. Every connector is tested against a live warehouse. Method and results → · Setup for each warehouse →

Where TinyPivot runs

Built for your agent. Also available for your app.

For AI agents · the main product

TinyPivot MCP + Studio

Install once and Claude Code, Cursor, Codex, Antigravity or pi can analyze any data they can reach, from spreadsheets and files to Snowflake, BigQuery and Postgres, with built-in checks, one-step statistics, and a Studio window that shows every chart and the SQL behind it.

Free to start · Pro from $149/yr

Also available · for your web app

TinyPivot UI for React & Vue 3

An Excel-like data grid with pivot tables, charts and an optional AI analyst (bring your own API key), ready to drop into your product. One-time license, no per-seat fees.

Free tier · licenses from $49

Install once. Every agent gets it.

npx @smallwebco/tinypivot-mcp@latest init

Detects Claude Code, Claude Desktop, Cursor, Antigravity, OpenCode, Codex and pi.