Micro Money
README.md
# Micro Money | مايكرو موني
<img width="1800" height="1240" alt="micro-money-sunflower-ar-hd" src="https://github.com/user-attachments/assets/cafc17af-e71f-4756-b944-ad35680385d7" /> <img width="1800" height="1240" alt="micro-money-sunflower-en-hd" src="https://github.com/user-attachments/assets/c07f2c9d-4865-428f-a329-729417cc3ebf" />
**العربية.** خادم MCP محلي لتدقيق سجلات الفواتير بالعربية والإنجليزية من CSV وExcel. يجمع المبالغ بدقة `Decimal`، ويتحقق من الضريبة والإجمالي، ويعرض تكرار رقم الفاتورة للمورد نفسه والاشتباه في تكرار الدفع. يصدّر نسخة Excel مرتبة حسب المصدر مع ورقة تحقق اختيارية.
**English.** A local MCP server for Arabic and English invoice registers in CSV and Excel. It audits VAT and totals with Python Decimal, flags repeated invoice IDs per vendor and potential duplicate payments, and exports an Excel copy with an optional formula review sheet.
## التشغيل | Run
Requires Python 3.11+ and an MCP client supporting local stdio. Install the dependencies in a virtual environment, then configure the client to run that environment's Python with the absolute path to `server.py`.
```text
python -m pip install --require-hashes -r requirements.lock
python -m unittest discover -s tests -v
```
Set `AUDITOR_BASE_DIR` in the MCP server's environment to the folder holding the files. It defaults to the project folder. Use `list_excel_sheets` to select an XLSX sheet, then call `audit_massive_excel`. Example arguments for the bundled synthetic CSV:
```json
{
"file_path": "examples/demo-invoices.csv",
"export_sorted_excel_path": "demo-audit.xlsx",
"vat_rate": "0.15",
"vat_tolerance": "0.01",
"include_excel_formulas": true
}
```
## نطاق التدقيق | Audit scope
- Use one header row, one invoice per row, one currency, and one VAT rate per run. Use comma-delimited UTF-8 CSV or XLSX. Supported columns include supplier, invoice ID and date, subtotal, VAT and gross total. The report shows the columns selected for VAT and counts rows it could not check.
- Amounts round to two decimals, with midpoint ties away from zero. The 15% default represents the Saudi standard rate where applicable. Choose the correct rate for the input. The payment check uses a paid-amount column where detected and otherwise compares invoice totals. A match needs independent payment evidence. Supported amounts have up to 13 integer digits.
- Source XLSX formulas are excluded from calculations and exported as text. Supply verified values for formula-dependent input columns. The optional `VAT Review` sheet uses built-in Excel formulas for complete rows. Python is the authoritative audit engine. Verify the bundled synthetic cases independently with `wolframscript -file examples/verify-vat.wls` if WolframScript is installed.
- PDF/OCR, national e-invoicing validation, and verification against a bank or tax authority are outside the audit scope. See [invoice audit](skills/invoice-audit/SKILL.md) and [VAT verification](skills/vat-verification/SKILL.md).
[ZATCA VAT rate](https://zatca.gov.sa/en/HelpCenter/FAQs/Pages/FAQArchiveEservices.aspx?page=Tax-FAQs-9) · [Excel ROUND](https://support.microsoft.com/en-us/excel/functions/round-function) · [MIT License](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues