VATBuild Developer API & MCP Documentation

VATBuild exposes a REST API and an MCP (Model Context Protocol) server so that AI agents, automation scripts, and accountancy software integrators can drive the UK construction VAT routing engine without a browser session.

What you can do

Who this is for

Quick-start

|---|---|

PathDescription
REST — POST /api/v1/check-line-itemClassify a line item with no auth
MCP — Claude Desktop configAdd VATBuild to your Claude MCP client
curl examplesShell one-liners for every major endpoint

REST quick-start


curl -s -X POST https://api.vatbuild.com/api/v1/check-line-item \
  -H "Content-Type: application/json" \
  -d '{
    "context": {
      "claimantRoute": "self_build_431nb",
      "newDwelling": "yes"
    },
    "item": {
      "lineText": "Structural brickwork and blockwork",
      "netAmount": "5000.00",
      "vatCharged": "0.00",
      "supplyType": "labour"
    }
  }'

Response:


{
  "ok": true,
  "data": {
    "outcome": { "claimRoute": "zero_at_source", ... },
    "reclaimAmount": "0.00",
    "firedRuleId": "rule_4a7f3c8e2b916d05",
    "rule": {
      "label": "431NB qualifying service — zero-rated",
      "noticeRef": "Notice 708 s3.1",
      "explanation": "Contractor services on a qualifying 431NB new build are zero-rated at source — no VAT to reclaim."
    }
  }
}

MCP quick-start

See mcp/README.md for Claude Desktop configuration.

Integration paths

|---|---|---|

IntegrationAuthBest for
POST /api/v1/check-line-itemNoneStateless classification, batch pipelines
POST /mcpBearer API keyAI agents (Claude, ChatGPT, Copilot)
POST /api/v1/projects + /invoicesBearer API keyFull project automation

Files in this repository

|---|---|

FileDescription
README.mdThis file — overview and quick-start
routing-guide.mdVAT claimant routes, outcomes, and claim actions
openapi.yamlFull OpenAPI 3.1 spec for the REST API
mcp-tool-reference.mdFull MCP tool reference — input/output schemas, error codes, claimRoute values
Settings → API Keys → System PromptsPersonalised system prompts for Claude, ChatGPT, Gemini, and Copilot (auth-gated, watermarked per account)
examples/curl/examples.shcurl one-liners for every endpoint
examples/python/README.mdPython examples guide
examples/python/basic_query.pySingle line-item classification
examples/python/invoice_check.pyBatch classification with summary table
examples/javascript/README.mdJavaScript examples guide
examples/javascript/basic_query.jsSingle line-item classification (Node.js)
claude-integration.mdFull Claude Desktop / Cursor / Zed integration guide — config, agent workflow, OAuth/PKCE
chatgpt-integration.mdFull ChatGPT desktop / in-browser / Custom GPT Actions integration guide
gemini-integration.mdFull Gemini CLI / AI Studio / Vertex AI Agent Builder integration guide
mcp/claude-config.jsonClaude Desktop MCP configuration
mcp/README.mdMCP setup guide
CHANGELOG.mdAPI changelog (Keep a Changelog format)

Authentication

Public endpoints (POST /api/v1/check-line-item, GET /api/v1/reference/routes) require no authentication.

Authenticated endpoints require a Bearer API key:


Authorization: Bearer vb_live_<64 hex characters>

API keys are created and managed in the VATBuild dashboard under Settings → API Keys.

Rate limits

|---|---|

EndpointLimit
POST /api/v1/check-line-item60 req/min per IP
GET /api/v1/reference/*20 req/min per IP
POST /api/v1/projects, POST /api/v1/invoices10 req/min per key
POST /mcp (all MCP tools)60 req/min per key
route_line_item, answer_vat_complex_question (MCP)10 req/min per key

All 429 responses include a Retry-After header.

Support