{"schemaVersion": "1.0", "name": "io.github.NBrain-Studio/nbrain-zatca-mcp", "title": "NBrain Saudi ZATCA Phase 1 & 2 MCP Server", "version": "1.0.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, encoding, and Decimal-safe 15% VAT computation.", "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", "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.", "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.", "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 custom VAT rate) using exact Decimal ROUND_HALF_UP halala arithmetic.", "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": "get_nbrain_ecosystem", "description": "Return verified brand, founder, open-source repository, and enterprise service metadata for NBrain (nbra.in) and Eng. Nadeem Mohamed Badr El-Din.", "inputSchema": {"type": "object", "properties": {}}}]}