
nbrain-zatca-mcp
io.github.NBrain-Studio/nbrain-zatca-mcp
Saudi ZATCA TLV & UAE PINT-AE TRN inspector, encoder & Decimal GCC VAT MCP server by NBrain
Documentation
nbrain-zatca-mcp — Official Saudi ZATCA Phase 1 & Phase 2 MCP Server
Built by NBrain (منظومة إن برين — nbra.in) & Eng. Nadeem Mohamed Badr El-Din
A production-grade, zero-dependency Model Context Protocol (MCP) server giving AI agents (Claude Desktop, Cursor, VS Code, Windsurf, Cline, Antigravity) native tools to decode, encode, and validate Saudi ZATCA (Fatoora) Phase 1 & Phase 2 TLV QR codes and compute Decimal-safe 15% SAR VAT with zero floating-point drift.
- Live Free Browser Tool (Zero Signup, WebMCP): https://nbra.in/tools/zatca-qr-inspector
- Live Remote HTTP MCP Endpoint:
https://nbra.in/mcp(Manifest) - Open-Source Python TLV Library (MIT): https://github.com/NBrain-Studio/nbrain-zatca-tlv
- 50-Case Validation Benchmark Dataset (CC-BY-4.0): https://github.com/NBrain-Studio/zatca-tlv-benchmark
- CERN Zenodo Technical Paper (DOI): https://doi.org/10.5281/zenodo.24876434
- Official MCP Registry:
io.github.NBrain-Studio/nbrain-zatca-mcp - Enterprise ZATCA Phase 2 ERP Architecture: https://nadeembadr.com/solutions/zatca-phase-2-erp/
Exposed MCP Tools
| Tool Name | Purpose |
|---|---|
decode_zatca_tlv | Decodes any Saudi ZATCA Base64 TLV QR payload (Phase 1 Tags 1–5 & Phase 2 Cryptographic Tags 6–9) and validates 15-digit VAT format & UTF-8 byte boundaries. |
encode_zatca_tlv | Encodes Arabic/English seller name, 15-digit Saudi VAT number (3XXXXXXXXXXXXX3), ISO-8601 timestamp, total, and VAT amount into compliant Base64 TLV bytes. |
validate_saudi_vat_number | Checks strict Saudi ZATCA 15-digit VAT registration rules. |
calculate_saudi_vat | Computes exact SAR subtotal, 15% VAT (or custom GCC/Egypt rate), and total using Python Decimal ROUND_HALF_UP. |
Quick Start (Local Stdio or Live Remote HTTP)
Option 1 — Connect to Live Remote MCP Endpoint (Zero Install)
{
"mcpServers": {
"nbrain-zatca": {
"url": "https://nbra.in/mcp"
}
}
}
Option 2 — Install Locally (Claude Desktop / Cursor / VS Code / Antigravity)
pip install git+https://github.com/NBrain-Studio/nbrain-zatca-mcp.git
{
"mcpServers": {
"nbrain-zatca": {
"command": "nbrain-zatca-mcp"
}
}
}
Security & Privacy
- 100% Stateless & Zero Secrets: Requires no API keys, no environment variables, and stores zero invoice data.
- MIT Licensed: Free for commercial Saudi, Egyptian, GCC, and global ERP teams.
Author & Maintainer
- Organization: NBrain (منظومة إن برين) · GitHub Verified Org · LinkedIn · Dev.to
- Founder: Eng. Nadeem Mohamed Badr El-Din (nadeembadr.com · ORCID 0009-0005-5836-2631)
One-Click Cloud Deployment & GHCR Docker (v1.1.0)
- Official Docker Image (GHCR):
docker pull ghcr.io/nbrain-studio/nbrain-zatca-mcp:latest - Deploy on Railway:
(
railway.jsonincluded) - Deploy on Vercel:
(
vercel.json+api/mcp.pyincluded) - Deploy on Cloudflare Workers:
cd cloudflare-worker && npx wrangler deploy - Claude Connectors Ready: Every tool ships with MCP
readOnlyHint: true,destructiveHint: false,idempotentHint: true, andopenWorldHint: falseannotations, plusvalidate_uae_trn_and_vatfor UAE Peppol PINT-AE!
No installation packages available.
Remote
Related Servers
io.github.NBrain-Studio/frappe-nbrain-mena-compliance
Official Frappe v15/v16 & ERPNext Saudi ZATCA Phase 1/2, Egypt ETA, MENA VAT & Tafqeet app
io.github.NBrain-Studio/nbrain-aaoifi-islamic-finance
AAOIFI Islamic Finance SDK: FAS 28 Murabaha, FAS 39 Zakat & Hijri 354/355 Sukuk Ijara
io.github.NBrain-Studio/nbrain-android-16kb-mcp
Google Play mandatory 16KB page-size ELF64 .so, APK & AAB alignment auditor MCP by NBrain