Guides

Agents and MCP

Run Spendyard as an MCP server, so Claude, Cursor or any other client can read receipts with it.

spendyard mcp serves Spendyard’s tools over stdio. The agent reads documents with your models and keys, as the CLI does.

Add it to a client

{
  "mcpServers": {
    "spendyard": {
      "command": "spendyard",
      "args": ["mcp"]
    }
  }
}

-e and -d after mcp pick the models, as on read.

Tools

Tool
read_document Read a document: vendor, amounts, card, seats, usage and billing, with evidence
decide_document Ask only the cheap first model what a document is
list_parts What’s in a document: the body, attachments, forwarded emails. No model calls
scan_mailbox Find and read the receipts in a signed-in mailbox since the last scan, or a date. dry_run shows what it would read

From scripts

Every command takes --json or prints JSON by default, and read exits with 0, 1 or 2 for found, not found and error, so it fits in a pipeline as well as an agent.