# uae-einvoice-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/mirzaabubakr/uae-einvoice-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 6718  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/uae-einvoice-mcp

## Description
UAE e-invoicing MCP: TRN/TIN checks, 51-field PINT AE checklist, UBL XML stubs, mandate timeline.

## Tools
Capabilities this server exposes over MCP:

- **lookup_business_trn** — Validate a UAE Tax Registration Number (15-digit TRN, 1…03) or Tax Identification Number (10-digit TIN, 1…): PINT AE format rules, Peppol AE:TIN check digit (warning only), and derived Peppol participant ID (0235:TIN). Does not call the live FTA register.
- **check_invoice_compliance** — UAE e-invoice JSON checks: MoF mandatory field gaps plus PINT AE arithmetic (line net, tax breakdown, totals), tax ID formats and TIN/TRN consistency. Returns errors and warnings with the PINT AE rule ID where one exists.
- **check_pint_ae_fields** — Evaluate invoice JSON against the MoF mandatory fields list v1.0 — 51 fields for tax invoices/credit notes (380/381), 49 for commercial invoices (480/81) — plus conditional PINT AE fields (UUID, AED totals, flags, credit note reason…). Per-field status present/derived/missing/invalid/not_applicable with PINT AE term, XML path and rule IDs.
- **generate_pint_ae_xml** — Generate a UBL 2.1 PINT AE Invoice/CreditNote from invoice JSON (UUID, transaction flags, payment means, emirate codes, legal registration, price details, AED line amounts). Runs the MoF field checklist first; with strict=true refuses to emit XML when fields are missing.
- **validate_pint_ae_xml** — Validate a UBL Invoice or CreditNote against the official PINT AE 1.0.4 Schematron (shared PINT rules + UAE rules) published by OpenPeppol. Returns failed rule IDs, messages and XPath locations. First call downloads and compiles the rules (~5 s); later calls take milliseconds. Does not perform XSD schema or signature validation.
- **get_einvoicing_requirements** — Return the UAE e-invoicing mandate timeline, excluded transactions (MD 197 of 2026), recent amendments, technical baseline (PINT AE / Peppol / ASP), and next actions. Optional annual revenue (AED) auto-selects large vs SME.
- **check_einvoicing_scope** — Decide whether a UAE supply must be e-invoiced: B2B/B2G/B2C, intra-Tax-Group (24-month exclusion from 1 Jan 2027), sovereign government, air passenger/cargo, or VAT-exempt/zero-rated financial services. Returns verdict, dates, and whether voluntary issuance is allowed.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "uae-einvoice-mcp": {
    "command": "npx",
    "args": ["-y","uae-einvoice-mcp"]
  }
}
```

## Documentation

## What uae-einvoice-mcp does

uae-einvoice-mcp provides a local toolkit for reviewing UAE e-invoicing data against PINT AE-oriented requirements. Its checks cover business identifier formats, invoice structure, mandatory data fields, XML generation, XML Schematron validation, transaction scope, and mandate guidance.

The server is suited to ERP and finance workflows that need an initial review before sending documents through an Accredited Service Provider (ASP). It can identify missing or invalid invoice data and explain whether a transaction is mandatory, excluded, or voluntary under the supported scope categories.

## How it works

The package is implemented with the MCP TypeScript SDK v2 and communicates over stdio. An MCP client starts the local process, then sends structured tool calls containing invoice, transaction, or identifier data. Results include validation findings, gaps, errors, warnings, scores, or generated XML depending on the tool.

`validate_pint_ae_xml` applies the official OpenPeppol PINT AE 1.0.4 Schematron rules, including shared and UAE-specific rules. Its first invocation downloads and compiles those rules. The XML generator creates UBL 2.1 Invoice or CreditNote documents and supports an optional strict mode that can refuse invalid input.

## Setup and configuration

Node.js 20 or newer is required. Install and build the package, then start the server:

```bash
npm install
npm run build
npm start
```

For direct TypeScript development, use `npm run dev`. `npm run selfcheck` runs the package self-check without an MCP client. The repository also provides an Inspector command through `npm run inspector`.

A published-package MCP configuration can start the server with `npx`:

```json
{
  "mcpServers": {
    "uae-einvoice": {
      "command": "npx",
      "args": ["-y", "uae-einvoice-mcp"]
    }
  }
}
```

A local checkout can instead launch `dist/index.js` with Node.js. The package requires no API keys for its local operation.

## Tools and capabilities

- `lookup_business_trn` checks 15-digit TRN and 10-digit TIN formats, verifies the UAE `1…` prefix and Peppol AE:TIN check digit, and returns the `0235:<TIN>` endpoint identifier.
- `check_invoice_compliance` reviews parties, line items, totals mathematics, and tax breakdowns, returning errors, warnings, and a score.
- `check_pint_ae_fields` evaluates all 51 mandatory fields as present, missing, invalid, or not applicable, then reports gaps.
- `generate_pint_ae_xml` creates a UBL 2.1 PINT AE Invoice or CreditNote, with optional strict validation behavior.
- `validate_pint_ae_xml` checks XML against PINT AE 1.0.4 Schematron rules.
- `get_einvoicing_requirements` returns mandate phases, excluded transactions, recent Ministry of Finance amendments, the technical baseline, and suggested next actions.
- `check_einvoicing_scope` classifies transaction scope for B2B, B2G, and B2C cases, including Tax Groups, sovereign transactions, air transactions, and exempt finance.

## Limitations and notes

The server is informational tooling, not legal or tax advice. Its checks do not replace Accredited Service Provider XSD validation, digital signatures, or live FTA register checks. XML generated by the server should therefore be treated as part of a preparation workflow rather than a complete transmission process. Schematron validation also downloads and compiles the PINT AE 1.0.4 rules on its first call.

_Full upstream README: https://allmcps.com/mcp/uae-einvoice-mcp/readme_

