pivotkit-mcp

v0.7.1
pivotkit-mcp Checked 8 hours ago Published 1 day ago

An MCP server for pivotkit: let an AI client describe data sources, draft and validate pivot views, render reports to files and make links; through pivotkit…

An MCP server for pivotkit. An AI client such as Claude Code, Claude Desktop or VS Code describes your data sources, writes and checks pivot views, and has reports made into Excel, HTML, CSV, JSON or SVG files or into links. Through pivotkit the client reads only what the operator's policy shows: what reaches an AI model. pivotkit is 0.x: a minor release can break things. Versioning says how each break is marked, Upgrading what to do. A configuration file, pivotkit-mcp.json:

Summary extracted from the README.

pivotkit-mcp

An MCP server for pivotkit. An AI client such as Claude Code, Claude Desktop or VS Code describes your data sources, writes and checks pivot views, and has reports made into Excel, HTML, CSV, JSON or SVG files or into links. Through pivotkit the client reads only what the operator's policy shows: what reaches an AI model.

Install

npx -y pivotkit-mcp --source sales=/path/to/sales.csv --output /path/to/reports
claude mcp add pivotkit -- npx -y pivotkit-mcp --source sales=/path/to/sales.csv --output /path/to/reports
  • Node 24 or later.
  • It brings the official MCP TypeScript SDK and pivotkit-server. pivotkit-server brings pivotkit-report, pivotkit-node's file handling, pivotkit-xlsx, ECharts and jose.
  • pivotkit-server serve runs it next to the REST service on one port.

pivotkit is 0.x: a minor release can break things. Versioning says how each break is marked, Upgrading what to do.

Example

A configuration file, pivotkit-mcp.json:

{
  "sources": {
    "sales": {
      "file": "data/sales.csv",
      "title": "Sales",
      "policy": { "fields": { "Region": "show", "Customer": "hide" } }
    }
  },
  "output": { "dir": "reports" }
}
# stdio
npx -y pivotkit-mcp --config pivotkit-mcp.json
# what a model would see
npx -y pivotkit-mcp --config pivotkit-mcp.json --check-config
# http://127.0.0.1:3333/mcp, with the token in PIVOTKIT_MCP_TOKEN
npx -y pivotkit-mcp --config pivotkit-mcp.json --http --auth token

What it does

  • Lets the operator decide per field what the model may see: names and counts, values, or nothing.
  • Talks to a local client over stdio.
  • Serves a team over Streamable HTTP, with a token or OAuth 2.1.
  • Shows your name and icon instead of pivotkit's (your own name and links).

Where in the docs

Topic Page
Set it up in Claude Code, Claude Desktop, VS Code, for a team, in PowerShell Universal Getting started: MCP server
Tools, exposure policy, configuration, errors, logging, HTTP, authentication pivotkit-mcp reference
Every name the package exports JavaScript exports
Reports as links that expire, bound to the person's sign-in, or in your own store Download links
Run it with pivotkit-server on Kubernetes, sign-in with Authentik Kubernetes
Update it together with pivotkit-server, the plugin, and what changes between releases Upgrading
What the model and its provider receive at each level, and how to set it per client What reaches an AI model
What it protects against and what not Security: the MCP server
Changes CHANGELOG

License

MIT