ZATCA e-invoices MCP server
LiveCreate and validate Saudi VAT invoices from a conversation.
Build a VAT-correct invoice (seller, buyer, line items, 15% standard rate) and validate totals and required fields. Returns UBL-style XML and a Phase-1 TLV QR. Phase 2 clearance (CSID, signing, reporting) is not included.
ZATCA e-invoices is a hosted MCP server with 2 tools. The Claude Code command is on this page. Steps for Cursor and ChatGPT, and which clients we have tested, are in the client guides.
Connect / 2 tools
Server URL
https://toolcargo.com/mcp/zatcaClaude Code
claude mcp add --transport http --scope user toolcargo-zatca https://toolcargo.com/mcp/zatca \
--header "Authorization: Bearer YOUR_API_KEY"Create a key in your dashboard. Other clients: setup guides.
What it helps you do
- VAT totals computed consistently
- Required-field validation
- UBL-style XML and Phase-1 QR
Built for: Small Saudi businesses and freelancers who invoice from their assistant.
Example requests
Draft an invoice
“Create a ZATCA invoice 2026-104 dated 2026-09-28: seller Halawa Studio VAT 300000000000003 in Riyadh, buyer Acme, one line Design work × 1 at 1000 SAR.”
Validated totals (subtotal 1000, VAT 150, total 1150) plus XML and a TLV QR.
Check totals
“Validate this invoice JSON before I send it.”
A list of field problems, or computed SAR totals if it is consistent.
Tools
| Tool | What it does | Access |
|---|---|---|
validate_invoiceValidate a Saudi VAT invoice | Check seller VAT number, required fields, line quantities and that VAT is 0% or 15%. Returns issues and computed totals. Does not submit to ZATCA. | Read-only |
create_invoiceCreate a Saudi VAT invoice | Same checks as validate_invoice, then return UBL-style XML and a Phase-1 TLV QR payload. Does not clear or sign with ZATCA. | Writes a document (not a third-party API) |
Requirements
- • A ToolCargo account with Site Audit activated (free).
- • Seller 15-digit VAT number (starts and ends with 3).
Limitations
- • Does not submit invoices to ZATCA Phase 2 clearance or sign with a CSID.
- • The QR is a Phase-1 TLV payload, not a clearance stamp.
- • VAT rate is 0 or 15% only.
Supported clients
“Tested” means we connected that client to this endpoint and ran a tool call ourselves. Recorded client-specific tests currently cover Site Audit. Other connectors use the documented setup until tested in that client.
| Claude Code | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| Claude (claude.ai) | OAuth sign-in | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| Cursor | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| VS Code (Copilot agent mode) | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| ChatGPT (developer mode) | OAuth sign-in | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
| MCP Inspector | API key header | Documented, not yet tested | This endpoint has not yet been tested in this client. See the setup guide. |
More in Invoicing
Pricing
Included with Site Audit. create_invoice counts as one call; validate_invoice does not.
Free
$0Try hosted tools with a shared monthly allowance.
50 shared calls/month
Pro
$12/moProposed larger shared allowance; see checkout status on the pricing page.
5,000 shared calls/month
Proposed test price. See the pricing page for checkout status.
Agency
$39/moProposed larger shared allowance; see checkout status on the pricing page.
20,000 shared calls/month