nbrain-sdaia-pdpl-privacy
Official# `nbrain-sdaia-pdpl-privacy` — Saudi SDAIA PDPL, UAE Law 45 & Egypt Law 151 Runtime Privacy & Arabic PII Engine
Zero-dependency Python 3.10+ SDK, native Rust x64 CLI, and **Model Context Protocol (MCP)** server by **NBrain ([nbra.in](https://nbra.in))** & **Eng. Nadeem Mohamed Badr El-Din ([nadeembadr.com](https://nadeembadr.com))**.
- **Live Zero-Signup Interactive Web Studio:** <https://nbra.in/tools/sdaia-pdpl-auditor>
- **Live Remote Streamable-HTTP MCP Endpoint:** `https://nbra.in/mcp`
## Core Capabilities
1. **Bilingual Arabic + English MENA PII/PHI Scanner & Deterministic HMAC Tokenizer:**
- Normalizes Arabic-Indic digits (`٠-٩`) in mixed RTL/LTR logs and LLM prompts before detection.
- Checksum-aware detection (eliminating false positives!) for **Saudi National ID / Iqama (Luhn 10-digit)**, **Egyptian 14-Digit National ID**, **UAE 15-Digit Emirates ID (`784-...`)**, **MOD-97 Verified MENA IBANs (`SA`, `AE`, `EG`, `QA`, `KW`, `BH`, `JO`, `IQ`)**, **Saudi SPL Short Address (`4 letters + 4 digits`)**, and MENA phone numbers.
2. **Saudi SDAIA PDPL (Royal Decree M/19 & 2024/2025 Transfer Regulations) Gate:**
- Evaluates cross-border personal/health/credit data transfers (Adequacy list, SDAIA SCCs, BCRs, Art. 29 vital-interest health exceptions, and Saudi NCA/SAMA residency locks).
- Computes 72-hour SDAIA breach notification deadlines and 30-day DSAR hard-purge SHA-256 receipts.
## Supply-Chain Safe Installation
```bash
pip install "git+https://github.com/NBrain-Studio/nbrain-sdaia-pdpl-privacy.git@v1.0.0"
docker run -i --rm ghcr.io/nbrain-studio/nbrain-sdaia-pdpl-privacy:1.0.0
```
## License
MIT © 2026 Eng. Nadeem Mohamed Badr El-Din & NBrain (`https://nbra.in`).
TDQS
Scored across 4 tools
Each tool targets a clearly distinct compliance operation: PII scanning/tokenization, cross-border transfer assessment, DSAR purge receipt generation, and GenAI ethics risk classification. There is no overlap in inputs or purpose, and the descriptions make the boundaries unmistakable.
All four names follow a verb-first snake_case pattern (scan_, assess_, generate_, evaluate_) with a noun phrase tail, which is predictable and readable. Minor deviation: the names stack multiple scoping qualifiers (e.g. generate_pdpl_dsar_purge_receipt), making them long and slightly uneven in structure, but the convention itself is consistent.
Four tools is a focused, well-earned set with no redundancy, and each tool supports a distinct compliance workflow. It sits at the lower end of the ideal range, and the narrow domain (MENA PDPL compliance) could reasonably justify a few more operations.
The surface covers scanning, transfer assessment, purge verification, and AI ethics risk, but has notable gaps for a privacy compliance server: no DSAR intake/fulfillment (only the purge receipt), no DPIA workflow, no consent or retention management, and no breach notification. Agents can still complete the specific workflows exposed, but the lifecycle coverage is partial.