Skip to main content
Glama
nbrain-mena-proptech-rega-ejari

nbrain-mena-proptech-rega-ejari

README.md
# `nbrain-mena-proptech-rega-ejari` — MENA PropTech, Real Estate Transaction Tax & Construction `FIDIC Red Book` Engine + MCP Server

[![License: MIT](https://img.shields.io/badge/License-MIT-emerald.svg)](./LICENSE)
[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B%20Zero--Dep-blue.svg)](./pyproject.toml)
[![MCP Registry](https://img.shields.io/badge/MCP-io.github.NBrain--Studio%2Fnbrain--mena--proptech--rega--ejari-purple.svg)](./server.json)

Engineered by **[Eng. Nadeem Mohamed Badr El-Din](https://nadeembadr.com)** at **[NBrain (`منظومة إن برين` — nbra.in)](https://nbra.in)** for Saudi, Emirati, and Egyptian real-estate marketplaces, off-plan developers, and construction ERP platforms.

## Regulatory Coverage
1. **Saudi Arabia (`REGA FAL`, `REGA Ad License` & `ZATCA RETT 5%`)**: Computes `5%` Real Estate Transaction Tax with the **Saudi Citizen First-Home `1,000,000 SAR` Ministerial Exemption**, enforces the statutory `2.5%` REGA brokerage cap, and applies `15%` VAT strictly on the brokerage service fee (never on RETT-subject residential sales).
2. **Dubai (`DLD 4%` Transfer, Trustee Tiered Fee & Mortgage `0.25%`)**: Exact `AED` closing statement with `500,000 AED` trustee threshold (`4,000 AED + 5% VAT` vs `2,000 AED + 5% VAT`) and `580 AED` title deed admin fee.
3. **Egypt (`Feddan / Qirat / Sahm` Exact `Fraction` + `Art. 42` `2.5%` Disposal Tax + Off-Plan Installment NPV)**: Lossless rational arithmetic (`1 Feddan = 24 Qirat = 576 Sahm = 126025 / 30 m²`) plus resale transfer fee and discounted cash-flow valuation.
4. **Construction `FIDIC Red Book` Interim Payment Certificate (`IPC`)**: Gross work + `80%` Materials-on-Site − Retention (`10%` capped at `5%` of Contract Sum) − proportional Advance Payment amortization.

## Quick Verification
```bash
PYTHONPATH=src python -m unittest discover -s tests -v
```

TDQS

B3.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool is scoped to a distinct jurisdiction/regime (Saudi RETT/REGA, Dubai DLD, Egypt feddan/resale tax, FIDIC IPC), so an agent can select purely on country or contract type with no risk of misselection. The only internal bundling is the Egypt tool combining unit conversion with resale NPV/tax, but that does not overlap with any other tool.

Naming Consistency4/5

All names are lowercase snake_case with a verb-first pattern and a jurisdiction/regime qualifier, which reads predictably. The one deviation is convert_egypt_... where the verb is 'convert' even though the tool also performs NPV and tax calculation, a minor inconsistency in the verb convention.

Tool Count4/5

Four tools is lean but each one maps to a real, non-redundant compliance workflow, so nothing feels like filler. It sits at the thin edge of the 3-15 range for a server claiming a broad MENA proptech scope.

Completeness3/5

Within each named calculator the surface looks thorough (exemptions, caps, retention, advance recovery), but the overall MENA coverage is sparse: only Saudi, Dubai, and Egypt are represented, with no Qatar/Kuwait/Jordan/Morocco tools, no Saudi VAT or mortgage fee tool, and no Egyptian registration/notary fee counterpart to the DLD tool.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues