nbrain-iraq-qatar-kuwait-tax MCP Server
# `nbrain-iraq-qatar-kuwait-tax` — Qatar GTA Dhareeba, Kuwait 3-Decimal KWD & Iraq GCT Fiscal Engine
Zero-dependency Python 3.10+ SDK, native Rust x64 CLI, and **Model Context Protocol (MCP)** server completing NBrain's Pan-Arab fiscal coverage across **Qatar (`QAR`)**, **Kuwait (`KWD` 3-decimal Fils)**, and **Iraq (`IQD`)**.
- **Live Remote Streamable-HTTP MCP Endpoint:** `https://nbra.in/mcp`
## Core Capabilities
1. **Qatar General Tax Authority (GTA — `ضريبة Dhareeba`):**
- 10-digit Qatar TIN validation, exact `Decimal` 5% Non-Resident Services WHT, 50%/100% Selective Excise Tax, and QCB `QA` 29-character IBAN MOD-97 verification.
2. **Kuwait Ministry of Finance (MOF) & KNET `0.001 KWD` (3-Decimal Fils) Engine:**
- Strict `0.001` (`ROUND_HALF_UP`) minor-unit Fils settlement (`1 KWD = 1,000 Fils`), 15% DMTT / Foreign CIT, 1% KFAS, 2.5% NLST, 1% Zakat statutory corporate deductions, and CBK `KW` 30-character IBAN MOD-97 verification.
3. **Iraq General Commission for Taxes (GCT) & CBI Compliance:**
- 9-digit Iraqi TIN validation, Government Contract `3.3%` Withholding Retention + `0.2%` (`2‰`) Stamp Duty (`رسم الطابع`), 10%/15% sector sales tax, and Central Bank of Iraq `IQ` 23-character IBAN MOD-97 verification.
## Supply-Chain Safe Installation
```bash
pip install "git+https://github.com/NBrain-Studio/nbrain-iraq-qatar-kuwait-tax.git@v1.0.0"
docker run -i --rm ghcr.io/nbrain-studio/nbrain-iraq-qatar-kuwait-tax:1.0.0
```
## License
MIT © 2026 Eng. Nadeem Mohamed Badr El-Din & NBrain (`https://nbra.in`).
TDQS
Scored across 4 tools
Each calculator targets a clearly different jurisdiction and tax regime (Qatar Dhareeba/excise, Kuwait KWD levies, Iraq GCT contract), and the validator has a separate, non-overlapping purpose (IBAN/TIN format checking). Minor risk remains that an agent might call the validator as a prerequisite step, and the multi-country validator bundles three jurisdictions into one tool, but no two tools appear to do the same thing.
All four follow a predictable verb_qualifier_noun pattern (calculate_* / validate_*), which is easy to scan. The deviation is in country reference style: the calculators spell out Qatar/Kuwait/Iraq while the validator uses QA_KW_IQ codes, plus some names carry embedded unit/descriptor fragments (3decimal_kwd, gct_contract).
Four tools is on the thin side but defensible for a narrowly scoped three-jurisdiction tax calculator, with one tool per country plus a shared validator. Each tool earns its place, though the surface leaves little room for variants like gross-up or rate-lookup operations without feeling over-packed.
The core compute-plus-validate loop is covered for all three jurisdictions, but there are notable gaps: no reverse/gross-up calculations, no generic corporate income tax for Kuwait beyond DMTT, no broader Iraq income tax or Qatar withholding variants, and no rate/reference lookup. Agents can work around these for the specific regimes named, but the lifecycle is not fully closed.