mcpField
S
saudi-vat-pro

saudi-vat-pro

Local
github.com/Morouna1Finance0Updated 8w ago

About saudi-vat-pro

Saudi VAT Pro’s MCP server lets AI agents work with ZATCA-compliant Saudi e-invoices through its API. It covers invoice and credit-note operations, retries and status explanations, with validation and safeguards for submissions.

Key features

  1. 01List and inspect invoices
  2. 02Create standard and simplified invoices
  3. 03Issue idempotent credit notes
  4. 04Retry failed invoices with explanations
  5. 05Check merchant and certificate readiness
  6. 06Review dashboard summaries

Use cases

  1. 01Create ZATCA invoices from an agent
  2. 02Issue credit notes for refunds
  3. 03Investigate and retry failed invoices
  4. 04Check certificate readiness

MCP support

The server exposes Saudi VAT Pro API operations to MCP clients, including invoice creation and management, credit notes, failure handling, merchant details and dashboard data. It validates invoice fields and reports actual lifecycle status.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"morouna1-saudi-vat-pro": {
"command": "npx",
"args": [
"-y",
"saudi-vat-pro-mcp"
],
"env": {
"SAUDI_VAT_PRO_API_KEY": "<SAUDI_VAT_PRO_API_KEY>"
}
}
}
}
Run commandnpx -y saudi-vat-pro-mcp
Environment variables to set
SAUDI_VAT_PRO_API_KEYSecretSaudi VAT Pro API key from https://saudivatpro.com/settings

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmsaudi-vat-pro-mcp1.0.1

Tools

9

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
pageintegerNoPage number (default: 1)
searchstringNoSearch by invoice number, buyer name, or order reference
statusstringNoFilter by status, for example: pending, pending_submission, generated, signed, reported, cleared, failed, needs_data, or awaiting_buyer_data
pageSizeintegerNoResults per page (default: 20, max: 100)
invoiceTypestringNoFilter by type. Use 'standard' for B2B or 'simplified' for B2C (consumer) invoices

Details

From the project README

Saudi VAT Pro

Saudi VAT Pro — ZATCA Phase 2 E-Invoicing

License: GPL v2 Platform ZATCA Phase 2

saudivat.pro automates ZATCA Phase 2 e-invoicing for Saudi Arabian businesses — WooCommerce stores, Shopify merchants, and custom integrations via REST API.

Every paid order becomes a ZATCA-compliant invoice. Every refund becomes a credit note. No developers required.


What's in this repo

FolderContents
woocommerce-plugin/GPLv2 WooCommerce plugin — automatic ZATCA invoicing for every WooCommerce order
zatca-qr-helpers/Open-source TLV encode/decode library behind the free ZATCA QR Tool
docs/Support guides: ZATCA Phase 2 overview, QR code explained, common errors
mcp-server/MCP server for Claude, Cursor, Windsurf, and other AI agents

The Platform

→ Sign up free at saudivat.pro

Saudi VAT Pro handles the complexity of ZATCA Phase 2 compliance so you don't have to:

  • CSID onboarding — generate your Cryptographic Stamp Identifier in 5 minutes with the free CSID wizard
  • B2B clearance — standard invoices cleared with ZATCA in real time before delivery
  • B2C reporting — simplified invoices reported within 24 hours
  • Credit notes — refunds automatically generate ZATCA-compliant credit notes
  • Issue dashboard — plain-language explanations of every ZATCA rejection, with suggested fixes
  • Retry & repair — re-submit failed invoices without touching code
Supported platforms
PlatformHow
WooCommercePlugin in this repo — install, enter API key, done
ShopifyWebhook integration — documented at saudivat.pro/docs
Custom / ERPREST API — see API documentation
AI agentsSaudi VAT Pro MCP — Claude, Cursor, Windsurf, and generic MCP clients

AI Agents & Model Context Protocol

The Saudi VAT Pro MCP server lets MCP-compatible AI assistants create and manage ZATCA invoices through the Saudi VAT Pro API.

{
  "mcpServers": {
    "saudi-vat-pro": {
      "command": "npx",
      "args": ["saudi-vat-pro-mcp"],
      "env": {
        "SAUDI_VAT_PRO_API_KEY": "svp_live_YOUR_KEY_HERE"
      }
    }
  }
}

Available tools cover invoice listing and details, standard and simplified invoice creation, idempotent credit notes, failed-invoice retries and explanations, merchant details, dashboard summaries, and ZATCA certificate readiness.

The server gives agents explicit ZATCA safeguards:

  • Standard B2B invoices require buyer name, city, and a valid 15-digit VAT number
  • VAT categories, rates, VATEX exemption reasons, and line discounts are validated before submission
  • Sandbox and production environments are clearly distinguished
  • Credit-note retries require an idempotency key to prevent duplicate refunds
  • Every result exposes its actual lifecycle status instead of assuming clearance or reporting succeeded

Canonical links


Free Tools

ZATCA QR Tool

Decode and inspect any ZATCA Phase 1 or Phase 2 QR code, or generate a valid Phase 1 QR from invoice fields. No sign-up required.

  • Paste a base64 QR string → see every TLV field decoded
  • Fill invoice fields → get a valid QR code instantly
  • Validation errors shown in plain English
  • Download as PNG or copy base64

The TLV encode/decode logic is open-sourced in zatca-qr-helpers/.

Free CSID Wizard

Get your ZATCA Cryptographic Stamp Identifier (CSID) in 5 minutes — no account required. Step-by-step: enter your VAT number, generate a CSR, get your OTP from the Fatoora portal, download your certificate.

VAT Calculator

Instant VAT calculation for Saudi invoices — 15%, 5%, and 0% rates, with support for all four VAT treatment categories (S/Z/E/O).


Pricing

SAR 999 per 10,000 invoices — pay only for what you use.

  • 60-day free trial, no credit card required
  • Unlimited merchants per account
  • No monthly fees

→ See full pricing


Knowledge Center

Free guides for Saudi merchants and developers:

→ Full Knowledge Center


WooCommerce Plugin

The woocommerce-plugin/ folder contains the full GPLv2 source of the Saudi VAT Pro WooCommerce integration.

Quick install:

  1. Download or clone this repo
  2. Upload the woocommerce-plugin/ folder to /wp-content/plugins/saudi-vat-pro-woocommerce/
  3. Activate the plugin in WordPress → Plugins
  4. Go to WooCommerce → Settings → Saudi VAT Pro and paste your Webhook URL and API Key from the Saudi VAT Pro dashboard

Requires WooCommerce 7.0+, PHP 8.0+. Full documentation: saudivat.pro/docs


ZATCA QR Helpers (open source)

The zatca-qr-helpers/ folder contains a zero-dependency JavaScript/TypeScript library for encoding and decoding ZATCA TLV QR codes.

import { encodeTlvPhaseOne, decodeTlv, validateQr } from './zatca-qr-helpers/index.js';

// Generate a Phase 1 QR code
const base64 = encodeTlvPhaseOne({
  sellerName: 'Riyadh Gadgets Trading Co.',
  vatNumber:  '310000000000006',
  timestamp:  '2024-01-15T10:30:00Z',
  invoiceTotal: '1725.00',
  vatAmount:    '225.00',
});

// Decode any QR string
const parsed = decodeTlv(base64);
parsed.fields.forEach(f => console.log(f.tag, f.label, f.rawValue));

// Validate
const { valid, errors } = validateQr(base64);

See zatca-qr-helpers/README.md for full API reference.


Support & Issues


License


Built by Morouna Business Services • saudivat.pro

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.