{"schemaVersion": "1.1", "name": "io.github.NBrain-Studio/nbrain-zatca-mcp", "title": "NBrain Saudi ZATCA & UAE PINT-AE E-Invoicing MCP Server", "version": "1.1.0", "description": "Official Model Context Protocol (MCP) server by NBrain (nbra.in) & Eng. Nadeem Mohamed Badr El-Din for Saudi ZATCA Phase 1/2 TLV QR inspection, UAE Peppol PINT-AE TRN/TIN validation, and Decimal-safe GCC VAT computation.", "privacyPolicyUrl": "https://nbra.in/privacy", "documentationUrl": "https://nbra.in/tools", "openapiUrl": "https://nbra.in/openapi.json", "agentCardUrl": "https://nbra.in/.well-known/agent-card.json", "publisher": {"name": "NBrain (منظومة إن برين)", "url": "https://nbra.in/", "founder": "Eng. Nadeem Mohamed Badr El-Din (https://nadeembadr.com/about/)"}, "transport": {"type": "streamable-http", "endpoint": "https://nbra.in/mcp", "method": "POST", "protocol": "jsonrpc-2.0"}, "webTool": "https://nbra.in/tools/zatca-qr-inspector", "uaeTool": "https://nbra.in/tools/uae-peppol-einvoice-validator", "repository": "https://github.com/NBrain-Studio/nbrain-zatca-mcp", "dataset": "https://github.com/NBrain-Studio/zatca-tlv-benchmark", "tools": [{"name": "decode_zatca_tlv", "description": "Decode and validate a Saudi ZATCA Phase 1 (Tags 1-5) or Phase 2 (Tags 1-9) Base64 TLV QR payload.", "annotations": {"title": "Decode Saudi ZATCA TLV QR", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"payload": {"type": "string", "description": "Base64-encoded ZATCA TLV QR string"}}, "required": ["payload"]}}, {"name": "encode_zatca_tlv", "description": "Encode Saudi ZATCA Phase 1 invoice fields into a compliant UTF-8 Base64 TLV QR string.", "annotations": {"title": "Encode Saudi ZATCA Phase 1 TLV QR", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"seller_name": {"type": "string"}, "vat_number": {"type": "string", "description": "15-digit Saudi VAT number (3XXXXXXXXXXXXX3)"}, "timestamp": {"type": "string", "description": "ISO-8601 UTC timestamp"}, "total_with_vat": {"type": "string"}, "vat_amount": {"type": "string"}}, "required": ["seller_name", "vat_number", "timestamp", "total_with_vat", "vat_amount"]}}, {"name": "calculate_saudi_vat", "description": "Calculate Saudi 15% VAT (or Bahrain 10%, Egypt 14%, UAE/Oman 5%) using exact Decimal ROUND_HALF_UP arithmetic.", "annotations": {"title": "Calculate GCC & Egypt VAT (Decimal Safe)", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"subtotal": {"type": "string", "description": "Amount excluding VAT, e.g. '1000.00'"}, "vat_rate": {"type": "string", "description": "VAT percentage, default '15'"}}, "required": ["subtotal"]}}, {"name": "validate_uae_trn_and_vat", "description": "Validate a 15-digit UAE FTA TRN (100XXXXXXXXXXXX), derive the 10-digit Peppol PINT-AE TIN (scheme 0235), and compute exact 5% AED VAT.", "annotations": {"title": "Validate UAE FTA TRN & PINT-AE VAT", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"trn": {"type": "string", "description": "15-digit UAE FTA TRN starting with 100"}, "subtotal_aed": {"type": "string", "description": "Optional net invoice amount in AED"}}, "required": ["trn"]}}, {"name": "compute_eta_document_uuid", "description": "Canonicalize an Egyptian Tax Authority (ETA) B2B E-Invoice or B2C E-Receipt JSON per sdk.invoicing.eta.gov.eg and return the 64-hex UTF-8 SHA-256 UUID.", "annotations": {"title": "Compute Egypt ETA Document SHA-256 UUID", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"document_json": {"type": "string", "description": "Raw Egypt ETA E-Invoice or E-Receipt JSON"}, "mode": {"type": "string", "enum": ["ereceipt", "einvoice"], "default": "ereceipt"}}, "required": ["document_json"]}}, {"name": "validate_egypt_tax_rin", "description": "Validate a 9-digit Egyptian corporate Tax Registration Number (RIN).", "annotations": {"title": "Validate Egypt 9-Digit Tax RIN", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"rin": {"type": "string"}}, "required": ["rin"]}}, {"name": "validate_saudi_national_id_iqama", "description": "Validate a 10-digit Saudi National ID (1...) or Resident Iqama (2...) via Modulo-10 Luhn checksum for NPHIES healthcare claims.", "annotations": {"title": "Validate Saudi National ID & Iqama (NPHIES)", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"identifier": {"type": "string"}}, "required": ["identifier"]}}, {"name": "decode_egypt_14digit_national_id", "description": "Decode and verify a 14-digit Egyptian National ID (century, leap-year birthdate, 27 MOI governorates, gender, and weighted Modulo-11 checksum) for Egypt UHIA healthcare & fintech.", "annotations": {"title": "Decode 14-Digit Egyptian National ID (UHIA)", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"national_id": {"type": "string"}}, "required": ["national_id"]}}, {"name": "scan_sdaia_pdpl_arabic_pii", "description": "Scan mixed Arabic/English text (normalizing Arabic-Indic digits) to detect checksum-verified Saudi National IDs/Iqamas, Egyptian 14-digit IDs, UAE Emirates IDs, MOD-97 MENA IBANs, and Saudi SPL addresses per SDAIA PDPL.", "annotations": {"title": "Scan & Redact MENA Arabic/English PII (SDAIA PDPL)", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"text": {"type": "string"}}, "required": ["text"]}}, {"name": "calculate_qatar_kuwait_iraq_tax", "description": "Calculate exact Decimal fiscal settlements for Qatar GTA Dhareeba (5% WHT QAR), Kuwait MOF/KNET (3-decimal 0.001 KWD Fils & 15% DMTT), and Iraq GCT (3.3% WHT + 0.2% Stamp Duty IQD).", "annotations": {"title": "Calculate Qatar, Kuwait (3-Decimal KWD) & Iraq Tax", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"country": {"type": "string", "enum": ["QA", "KW", "IQ"]}, "amount": {"type": "string"}}, "required": ["country", "amount"]}}, {"name": "search_artcraft_wasm_suite", "description": "Search all 17 pure-Rust ArtCraft creative, CAD, and office applications (16 live browser WebAssembly studios on nbra.in/craft, 8,394 engine commands, and 905 MCP tools).", "annotations": {"title": "Search ArtCraft 17-App Rust & WASM Studio Catalog", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {"query": {"type": "string", "default": ""}}}}, {"name": "get_nbrain_ecosystem", "description": "Return verified brand, founder, CERN DOIs, open-source repositories, and enterprise service metadata for NBrain (nbra.in) and Eng. Nadeem Mohamed Badr El-Din.", "annotations": {"title": "Get NBrain Verified Ecosystem Metadata", "readOnlyHint": true, "destructiveHint": false, "idempotentHint": true, "openWorldHint": false}, "inputSchema": {"type": "object", "properties": {}}}]}