# tinypivot [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/Small-Web-Co/tinypivot  
**GitHub Stars:** 19  
**npm Downloads (last month):** 8751  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tinypivot

## Description
Interactive Data IDE for AI Agents (MCP App) + Lightweight React & Vue 3 Data Grid, Pivot Tables, Charts & BYOK AI Analyst

## Tools
Capabilities this server exposes over MCP:

- **open_tinypivot** — Open the TinyPivot Studio (grid, pivot, chart). Shows sample data when nothing is loaded.
- **load_file** — Chart or pivot a local CSV, TSV, JSON or JSONL file without reading it: the rows stay out of your context.
- **load_data** — Chart or pivot rows you already have, up to about 50. Every row you pass is billed as output; for more, write a file and use load_file.
- **configure_pivot** — Pivot the active dataset. Aggregations are exact; percentOfTotal divides by the grand total.
- **configure_chart** — Chart the active dataset.
- **query** — Run one read-only DuckDB SELECT over local CSV, Parquet or JSON files (FROM 'path') and loaded datasets (tables named by dataset id), then chart or pivot the result. Rows stay out of your context.
- **profile** — Describe each column of a loaded dataset: empty share, number and date ranges, commonest values.
- **history** — List data pulled in earlier sessions, or reopen one by id at no cost: nothing is re-queried.
- **list_datasets** — List loaded datasets with their row counts and columns.
- **clear_datasets** — Unload all datasets.
- **set_visual_theme** — Set the theme for charts, tables and the Studio.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tinypivot": {
    "command": "npx",
    "args": ["-y","@smallwebco/tinypivot-mcp@latest"]
  }
}
```

## Documentation

## What tinypivot does

tinypivot turns tabular data into interactive charts, pivot tables, data grids, and drill-through views for AI-assisted analysis. Its MCP package is aimed at data analysts and AI users, while the broader project also includes React and Vue 3 data-grid packages.

The MCP experience can show results inside compatible agent interfaces and provides terminal-friendly output for command-line workflows. Supported visualizations include bar, stacked bar, line, area, pie, and donut charts. Pivot functionality includes sum aggregation in the free tier, with additional aggregations available through the paid tier.

## How it works

Data can reach tinypivot through a file loaded with `load_file`, rows sent through `load_data`, standard-input pipelines, or CLI exports from systems such as BigQuery, Snowflake, MySQL, DuckDB, Databricks, SQLite, ClickHouse, and PostgreSQL. A DuckDB CSV query, for example, can pipe its output into the package and open the resulting analysis view.

For local analysis, the agent receives a compact schema and summary while full rows are streamed to the local interface. Charts, sorting, filtering, pivoting, and drill-through actions then happen locally. The project states that row data, column names, SQL, and file paths remain on the user's machine.

An optional `query_postgres` capability provides direct, read-only PostgreSQL access with AST validation. It requires the Pro feature set and uses a database connection URL plus an optional table allowlist.

Terminal users can run the TUI command to open a live, split-pane interface with SSE updates. Terminal Cards print Unicode charts and sparkline-style pivot tables in supported terminal harnesses, and a localhost Companion Data IDE is also available.

## Setup and configuration

The package can initialize detected harnesses with:

```bash
npx @smallwebco/tinypivot-mcp@latest init
```

The initialization flow is described for Claude Code, Claude Desktop, Cursor, Antigravity, OpenCode, Codex CLI, and pi. A bundled Claude plugin can also be installed from the package directory. To run the live terminal interface, use:

```bash
npx @smallwebco/tinypivot-mcp@latest tui
```

Data can be piped directly into the server, for example:

```bash
duckdb -csv -c "SELECT * FROM 'sales.parquet'" | npx @smallwebco/tinypivot-mcp@latest --open
```

Set `TINYPIVOT_LICENSE_KEY` to unlock Pro or Team features. `DATABASE_URL` and `TINYPIVOT_ALLOWED_TABLES` configure the optional direct PostgreSQL connector. Anonymous telemetry can be disabled with `TINYPIVOT_TELEMETRY=0` or `DO_NOT_TRACK=1`.

## Tools and capabilities

- Load files with `load_file`, including a compact schema and summary for the agent.
- Send in-memory rows through `load_data` without requiring an intermediate CSV for smaller datasets.
- Query PostgreSQL directly with the optional read-only `query_postgres` connector.
- Render bar, stacked bar, line, area, pie, and donut charts.
- Build pivots with totals, calculated fields, expandable groups, and value filters.
- Use local sorting, filtering, search, pagination, drill-through, and data-grid views.
- Export CSV in the available grid workflow; styled XLSX export is a paid feature.

## Limitations and notes

The free tier limits datasets to 2,500 rows and includes core charts, basic sum pivots, Terminal Cards, the live TUI, and the Companion Data IDE. Larger datasets produce visible interface and agent warnings rather than being silently truncated. Pro and Team features add unlimited rows, more aggregations, additional themes, drill-through, styled XLSX export, and the AI Data Analyst.

The direct PostgreSQL connector is optional and read-only; other databases are accessed through CLI exports, standard input, or data-pipeline methods. The embedded AI Data Analyst is a paid feature and uses a bring-your-own-key model for OpenAI or Anthropic access. React and Vue 3 integrations are separate packages from the MCP package.

_Full upstream README: https://allmcps.com/mcp/tinypivot/readme_

