Skip to content

D2B for Agents

D2B is “Spreadsheets for AI Agents”. It takes messy, human-made Excel at the door, hands your agent typed, row-identified, versioned, governed tables, and returns results in a form humans can read (xlsx, or the original file’s own formatting). Not just answers — every number is traceable to where it came from.

PathBest forFirst call
MCPMCP hosts — Claude Code / Claude Desktop / Cursor / VS Codeclaude mcp add d2b --transport http https://d2b.dev/mcp/ --header "Authorization: Bearer $PAT"
CLIShell-driving agents, CI, humanspipx install d2b-sdk && d2b login
SDK / APIYour own agents and apps (Python / TypeScript / HTTP)pip install d2b-sdk → Quickstart. PyPI / npm / GitHub

All three are the same surface on the same backend. MCP tools, CLI subcommands, SDK methods and REST endpoints map one-to-one — start anywhere and switch freely.

  • Traceable: derived tables are built with transforms (SQL / Python); {{ arg }} bindings keep lineage. A code interpreter answers but can’t be traced or reproduced.
  • Revertible: snapshots, named versions, an op log and undo. Built for agents that make mistakes — restore any point in time.
  • Governed: column-tag × role mask / deny enforced in the data layer. The same policy applies to SQL, export and MCP alike.
  • Deliverable: xlsx / csv, write-back into the original workbook with only value cells replaced, live per-row formulas, export = branch → re-import = 3-way merge.
  • Lives in git: pull transforms, sheets, charts and base tables into a repository, review them in a PR, push them back (Your workbook in git).
  1. Quickstart — mint a PAT and make your first call in five minutes
  2. Core concepts — Workbook / Source / Table / Sheet / Version, optimistic locking, idempotency, governance
  3. Pick a path: MCP / Coding agents / CLI / SDKs / Webhooks
  4. Reading errors — problem+json and suggested_fix
  5. API reference — generated from the OpenAPI spec

Agent-facing indexes: llms.txt / llms-full.txt / openapi.json