e-Factura Validator (Romania) is an MCP server published by uk.alexhub, hosted at einvoice.alexhub.uk. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 14 tools, including validate_invoice_free, validate_invoice, fix_invoice, generate_invoice, lookup_company.
Validate, fix and generate Romanian e-Factura; check SAF-T D406 (ANAF validator + consistency)
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Use before uploading an e-Factura to ANAF SPV, after generating invoice XML, or when ANAF rejected an invoice: validates a UBL 2.1 Invoice/CreditNote (Romanian CIUS-RO 1.0.9, Peppol BIS 3.0, EN 16931) and returns every error with the fix in words, the UBL path of the field and, for amounts, the correct value. Start here: free, no wallet, account or key, 3 calls per day per client IP. Fix the XML from the report and call again. When the quota is used up, switch to validate_invoice.
| Parameter | Type | Description |
|---|---|---|
| xml * | string | The UBL 2.1 Invoice or CreditNote XML document, as text |
| profile | string | Rule set; 'auto' reads it from the invoice's CustomizationID |
{
"name": "validate_invoice_free",
"description": "Use before uploading an e-Factura to ANAF SPV, after generating invoice XML, or when ANAF rejected an invoice: validates a UBL 2.1 Invoice/CreditNote (Romanian CIUS-RO 1.0.9, Peppol BIS 3.0, EN 16931) and returns every error with the fix in words, the UBL path of the field and, for amounts, the correct value. Start here: free, no wallet, account or key, 3 calls per day per client IP. Fix the XML from the report and call again. When the quota is used up, switch to validate_invoice.",
"inputSchema": {
"type": "object",
"title": "validate_invoice_freeArguments",
"required": [
"xml"
],
"properties": {
"xml": {
"type": "string",
"title": "Xml",
"examples": [
"<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" …>…</Invoice>"
],
"description": "The UBL 2.1 Invoice or CreditNote XML document, as text"
},
"profile": {
"enum": [
"auto",
"ro",
"peppol",
"en16931"
],
"type": "string",
"title": "Profile",
"default": "auto",
"description": "Rule set; 'auto' reads it from the invoice's CustomizationID"
}
}
},
"annotations": {
"title": "Validate e-Factura invoice (free, no wallet)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Use before uploading an e-Factura to ANAF SPV or sending a Peppol invoice, once the free quota of validate_invoice_free is used up (same report). Every rule violation with a plain-English fix, the UBL path of the field and, for amount errors, the correct value. Paid: $0.01 USDC per call via x402 (network eip155:8453, payment in the request _meta); without a payment it returns the payment requirements. Only real invoices are charged. If the report has 'autofix', fix_invoice can repair those errors.
| Parameter | Type | Description |
|---|---|---|
| xml * | string | The UBL 2.1 Invoice or CreditNote XML document, as text |
| profile | string | Rule set; 'auto' reads it from the invoice's CustomizationID |
{
"name": "validate_invoice",
"description": "Use before uploading an e-Factura to ANAF SPV or sending a Peppol invoice, once the free quota of validate_invoice_free is used up (same report). Every rule violation with a plain-English fix, the UBL path of the field and, for amount errors, the correct value. Paid: $0.01 USDC per call via x402 (network eip155:8453, payment in the request _meta); without a payment it returns the payment requirements. Only real invoices are charged. If the report has 'autofix', fix_invoice can repair those errors.",
"inputSchema": {
"type": "object",
"title": "validate_invoiceArguments",
"required": [
"xml"
],
"properties": {
"xml": {
"type": "string",
"title": "Xml",
"examples": [
"<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" …>…</Invoice>"
],
"description": "The UBL 2.1 Invoice or CreditNote XML document, as text"
},
"profile": {
"enum": [
"auto",
"ro",
"peppol",
"en16931"
],
"type": "string",
"title": "Profile",
"default": "auto",
"description": "Rule set; 'auto' reads it from the invoice's CustomizationID"
}
}
},
"annotations": {
"title": "Validate e-Factura / Peppol invoice (paid)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Use when a validation report lists 'autofix' rules, or ANAF or a Peppol access point rejected an invoice for codes, dates or totals, and you want the corrected XML instead of editing it yourself: fixes county/sector/country/currency/unit codes, date formats, VAT-id prefixes, Belgian enterprise numbers (0208), Peppol CustomizationID/ProfileID, empty elements, decimals, totals and VAT recomputed from the lines. Lists every change (field, old, new) and re-validates the result. Paid: $0.05 USDC via x402, charged only if something was fixed. Review the changes before sending the invoice.
| Parameter | Type | Description |
|---|---|---|
| xml * | string | The UBL 2.1 Invoice or CreditNote XML document, as text |
| profile | string | Rule set; 'auto' reads it from the invoice's CustomizationID |
{
"name": "fix_invoice",
"description": "Use when a validation report lists 'autofix' rules, or ANAF or a Peppol access point rejected an invoice for codes, dates or totals, and you want the corrected XML instead of editing it yourself: fixes county/sector/country/currency/unit codes, date formats, VAT-id prefixes, Belgian enterprise numbers (0208), Peppol CustomizationID/ProfileID, empty elements, decimals, totals and VAT recomputed from the lines. Lists every change (field, old, new) and re-validates the result. Paid: $0.05 USDC via x402, charged only if something was fixed. Review the changes before sending the invoice.",
"inputSchema": {
"type": "object",
"title": "fix_invoiceArguments",
"required": [
"xml"
],
"properties": {
"xml": {
"type": "string",
"title": "Xml",
"examples": [
"<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" …>…</Invoice>"
],
"description": "The UBL 2.1 Invoice or CreditNote XML document, as text"
},
"profile": {
"enum": [
"auto",
"ro",
"peppol",
"en16931"
],
"type": "string",
"title": "Profile",
"default": "auto",
"description": "Rule set; 'auto' reads it from the invoice's CustomizationID"
}
}
},
"annotations": {
"title": "Auto-fix invoice XML (paid)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Use when you have invoice data but no XML and need a Romanian e-Factura ANAF accepts: builds UBL 2.1 CIUS-RO XML from simple data (number, dates, seller and buyer CUI, lines with name, quantity, unit, price without VAT and VAT rate e.g. 21 or 11, optional IBAN). Company names, addresses, county codes, Bucharest sectors and VAT status come from ANAF; totals and VAT are computed; the XML is validated before it is returned. Paid: $0.05 USDC via x402, charged only when a valid invoice is returned. Other currencies: add 'currency': 'EUR' (BNR rate used unless you pass exchange_rate). Example invoice: {"number": "FCT-0001", "issue_date": "2026-10-24", "due_date": "2026-11-23", "seller": {"cui": "RO12345678"}, "buyer": {"cui": "87654321"}, "payment": {"iban": "RO49AAAA1B31007593840000"}, "lines": [{"name": "Servicii consultanta", "quantity": 10, "unit": "ore", "price": 150, "vat_rate": 21}]}
| Parameter | Type | Description |
|---|---|---|
| invoice * | object | Invoice data, see the tool description for the shape |
{
"name": "generate_invoice",
"description": "Use when you have invoice data but no XML and need a Romanian e-Factura ANAF accepts: builds UBL 2.1 CIUS-RO XML from simple data (number, dates, seller and buyer CUI, lines with name, quantity, unit, price without VAT and VAT rate e.g. 21 or 11, optional IBAN). Company names, addresses, county codes, Bucharest sectors and VAT status come from ANAF; totals and VAT are computed; the XML is validated before it is returned. Paid: $0.05 USDC via x402, charged only when a valid invoice is returned. Other currencies: add 'currency': 'EUR' (BNR rate used unless you pass exchange_rate). Example invoice: {\"number\": \"FCT-0001\", \"issue_date\": \"2026-10-24\", \"due_date\": \"2026-11-23\", \"seller\": {\"cui\": \"RO12345678\"}, \"buyer\": {\"cui\": \"87654321\"}, \"payment\": {\"iban\": \"RO49AAAA1B31007593840000\"}, \"lines\": [{\"name\": \"Servicii consultanta\", \"quantity\": 10, \"unit\": \"ore\", \"price\": 150, \"vat_rate\": 21}]}",
"inputSchema": {
"type": "object",
"title": "generate_invoiceArguments",
"required": [
"invoice"
],
"properties": {
"invoice": {
"type": "object",
"title": "Invoice",
"examples": [
{
"buyer": {
"cui": "87654321"
},
"lines": [
{
"name": "Servicii consultanta",
"unit": "ore",
"price": 150,
"quantity": 10,
"vat_rate": 21
}
],
"number": "FCT-0001",
"seller": {
"cui": "RO12345678"
},
"payment": {
"iban": "RO49AAAA1B31007593840000"
},
"due_date": "2026-11-23",
"issue_date": "2026-10-24"
}
],
"description": "Invoice data, see the tool description for the shape",
"additionalProperties": true
}
}
},
"annotations": {
"title": "Generate e-Factura XML from JSON (paid)",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Use when building or checking an invoice for a Romanian company and you only have its CUI, or to check a partner before invoicing: ANAF data already in e-Factura form: legal name, VAT id (RO… only for VAT payers), trade register number, address with county as ISO code (RO-CJ) and Bucharest city as SECTOR1..6, plus flags: inactive, VAT on collection, e-Factura registry. Free, 100 lookups per day per IP.
| Parameter | Type | Description |
|---|---|---|
| cui * | string | CUI, with or without RO |
{
"name": "lookup_company",
"description": "Use when building or checking an invoice for a Romanian company and you only have its CUI, or to check a partner before invoicing: ANAF data already in e-Factura form: legal name, VAT id (RO… only for VAT payers), trade register number, address with county as ISO code (RO-CJ) and Bucharest city as SECTOR1..6, plus flags: inactive, VAT on collection, e-Factura registry. Free, 100 lookups per day per IP.",
"inputSchema": {
"type": "object",
"title": "lookup_companyArguments",
"required": [
"cui"
],
"properties": {
"cui": {
"type": "string",
"title": "Cui",
"examples": [
"RO14399840"
],
"description": "CUI, with or without RO"
}
}
},
"annotations": {
"title": "Romanian company by CUI (ANAF)",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Use when you need a Romanian company's size or financial health from its CUI (credit check before invoicing or selling on terms, lead qualification, due diligence): the annual statement filed with ANAF: CAEN code, turnover, revenue, expenses, net_result (profit positive, loss negative), employees, assets, debts, equity. Without year: the last closed year with a statement. Only companies file statements (not PFA). Free, shares the 100 lookups per day per IP of lookup_company.
| Parameter | Type | Description |
|---|---|---|
| cui * | string | CUI, with or without RO |
| year | any | Financial year (omit for the last filed one) |
{
"name": "company_financials",
"description": "Use when you need a Romanian company's size or financial health from its CUI (credit check before invoicing or selling on terms, lead qualification, due diligence): the annual statement filed with ANAF: CAEN code, turnover, revenue, expenses, net_result (profit positive, loss negative), employees, assets, debts, equity. Without year: the last closed year with a statement. Only companies file statements (not PFA). Free, shares the 100 lookups per day per IP of lookup_company.",
"inputSchema": {
"type": "object",
"title": "company_financialsArguments",
"required": [
"cui"
],
"properties": {
"cui": {
"type": "string",
"title": "Cui",
"examples": [
"RO14399840"
],
"description": "CUI, with or without RO"
},
"year": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Year",
"default": null,
"examples": [
2024
],
"description": "Financial year (omit for the last filed one)"
}
}
},
"annotations": {
"title": "Romanian company financial statement (ANAF)",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Use when ANAF SPV, a Peppol access point or a validation report names a rule (e.g. BR-CO-15, BR-RO-110, PEPPOL-EN16931-R001) and you need to know what it means and how to fix it: official text in English and Romanian, plain-English fix and where the field lives in UBL. Free.
| Parameter | Type | Description |
|---|---|---|
| rule_id * | string | Rule id as reported in findings[].rule or in the ANAF error message |
{
"name": "explain_rule",
"description": "Use when ANAF SPV, a Peppol access point or a validation report names a rule (e.g. BR-CO-15, BR-RO-110, PEPPOL-EN16931-R001) and you need to know what it means and how to fix it: official text in English and Romanian, plain-English fix and where the field lives in UBL. Free.",
"inputSchema": {
"type": "object",
"title": "explain_ruleArguments",
"required": [
"rule_id"
],
"properties": {
"rule_id": {
"type": "string",
"title": "Rule Id",
"examples": [
"BR-RO-110"
],
"description": "Rule id as reported in findings[].rule or in the ANAF error message"
}
}
},
"annotations": {
"title": "Explain e-invoice rule",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Use before filing a Romanian SAF-T (D406) with ANAF, or when ANAF's DUKIntegrator reported errors: same check as validate_saft, free: 1 file(s) per day per client IP, report limited to the first 10 findings (the total count is given).
| Parameter | Type | Description |
|---|---|---|
| xml * | string | The SAF-T D406 XML file content, as text (up to 25 MB here; bigger files: HTTP POST /v1/saft/validate, up to 100 MB) |
{
"name": "validate_saft_free",
"description": "Use before filing a Romanian SAF-T (D406) with ANAF, or when ANAF's DUKIntegrator reported errors: same check as validate_saft, free: 1 file(s) per day per client IP, report limited to the first 10 findings (the total count is given).",
"inputSchema": {
"type": "object",
"title": "validate_saft_freeArguments",
"required": [
"xml"
],
"properties": {
"xml": {
"type": "string",
"title": "Xml",
"examples": [
"<AuditFile xmlns=\"mfp:anaf:dgti:d406:declaratie:v1\">…</AuditFile>"
],
"description": "The SAF-T D406 XML file content, as text (up to 25 MB here; bigger files: HTTP POST /v1/saft/validate, up to 100 MB)"
}
}
},
"annotations": {
"title": "Check SAF-T D406 before filing (free, 1/day)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Use before filing a Romanian SAF-T (D406) with ANAF, for the full report: runs ANAF's official validator (DUKIntegrator) for the reporting period and the consistency checks it does not do offline (balanced entries, GL totals, opening + movements = closing per account, trial balance, partner balances, invoice totals, VAT = base x rate, VAT codes valid for the period, CUI/IBAN check digits, chart of accounts). Every finding has a fix in Romanian and English and the correct value where computable. Paid: $0.50 USDC via x402 (network eip155:8453), charged only if a D406 was checked; without a payment it returns the payment requirements.
| Parameter | Type | Description |
|---|---|---|
| xml * | string | The SAF-T D406 XML file content, as text (up to 25 MB here; bigger files: HTTP POST /v1/saft/validate, up to 100 MB) |
{
"name": "validate_saft",
"description": "Use before filing a Romanian SAF-T (D406) with ANAF, for the full report: runs ANAF's official validator (DUKIntegrator) for the reporting period and the consistency checks it does not do offline (balanced entries, GL totals, opening + movements = closing per account, trial balance, partner balances, invoice totals, VAT = base x rate, VAT codes valid for the period, CUI/IBAN check digits, chart of accounts). Every finding has a fix in Romanian and English and the correct value where computable. Paid: $0.50 USDC via x402 (network eip155:8453), charged only if a D406 was checked; without a payment it returns the payment requirements.",
"inputSchema": {
"type": "object",
"title": "validate_saftArguments",
"required": [
"xml"
],
"properties": {
"xml": {
"type": "string",
"title": "Xml",
"examples": [
"<AuditFile xmlns=\"mfp:anaf:dgti:d406:declaratie:v1\">…</AuditFile>"
],
"description": "The SAF-T D406 XML file content, as text (up to 25 MB here; bigger files: HTTP POST /v1/saft/validate, up to 100 MB)"
}
}
},
"annotations": {
"title": "Check SAF-T D406 before filing (paid)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Use for an invoice in a foreign currency (e-Factura needs the VAT in RON) or any RON conversion: official BNR (National Bank of Romania) rate, RON per 1 unit of the currency, for a date (default today; weekends/holidays return the last publication). Omit currency for all rates. Free.
| Parameter | Type | Description |
|---|---|---|
| date | any | YYYY-MM-DD |
| currency | any | ISO 4217 code |
{
"name": "fx_rate",
"description": "Use for an invoice in a foreign currency (e-Factura needs the VAT in RON) or any RON conversion: official BNR (National Bank of Romania) rate, RON per 1 unit of the currency, for a date (default today; weekends/holidays return the last publication). Omit currency for all rates. Free.",
"inputSchema": {
"type": "object",
"title": "fx_rateArguments",
"properties": {
"date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date",
"default": null,
"examples": [
"2026-10-30"
],
"description": "YYYY-MM-DD"
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null,
"examples": [
"EUR"
],
"description": "ISO 4217 code"
}
}
},
"annotations": {
"title": "BNR exchange rate",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Use when planning payment or filing dates in Romania: public (legal) holidays for a year, incl. Orthodox Easter and Rusalii. Free.
| Parameter | Type | Description |
|---|---|---|
| year | any | default current year |
{
"name": "ro_holidays",
"description": "Use when planning payment or filing dates in Romania: public (legal) holidays for a year, incl. Orthodox Easter and Rusalii. Free.",
"inputSchema": {
"type": "object",
"title": "ro_holidaysArguments",
"properties": {
"year": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Year",
"default": null,
"examples": [
2026
],
"description": "default current year"
}
}
},
"annotations": {
"title": "Romanian public holidays",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Use to compute a due date in Romanian working days (e.g. the 5 working days to upload an e-Factura): is a date a working day, which is the next one, and the date N working days later. Free.
| Parameter | Type | Description |
|---|---|---|
| date | any | YYYY-MM-DD, default today |
| add_days | integer | working days to add |
{
"name": "ro_business_day",
"description": "Use to compute a due date in Romanian working days (e.g. the 5 working days to upload an e-Factura): is a date a working day, which is the next one, and the date N working days later. Free.",
"inputSchema": {
"type": "object",
"title": "ro_business_dayArguments",
"properties": {
"date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date",
"default": null,
"examples": [
"2026-12-24"
],
"description": "YYYY-MM-DD, default today"
},
"add_days": {
"type": "integer",
"title": "Add Days",
"default": 0,
"examples": [
5
],
"description": "working days to add"
}
}
},
"annotations": {
"title": "Romanian working day",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Use to know when Romanian returns are due: monthly filing deadlines (D112, D300, D100, D390, D394, D406) for a reporting month, moved to the next working day when they fall on a weekend or holiday. General rules; confirm special regimes with ANAF. Free.
| Parameter | Type | Description |
|---|---|---|
| period | any | reporting month YYYY-MM, default last month |
{
"name": "ro_tax_deadlines",
"description": "Use to know when Romanian returns are due: monthly filing deadlines (D112, D300, D100, D390, D394, D406) for a reporting month, moved to the next working day when they fall on a weekend or holiday. General rules; confirm special regimes with ANAF. Free.",
"inputSchema": {
"type": "object",
"title": "ro_tax_deadlinesArguments",
"properties": {
"period": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Period",
"default": null,
"examples": [
"2026-10"
],
"description": "reporting month YYYY-MM, default last month"
}
}
},
"annotations": {
"title": "Romanian tax filing deadlines",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Use before putting an IBAN on an invoice or paying to one: checks length and check digits and names the Romanian bank (or the State Treasury). Free.
| Parameter | Type | Description |
|---|---|---|
| iban * | string | IBAN, spaces allowed |
{
"name": "validate_iban",
"description": "Use before putting an IBAN on an invoice or paying to one: checks length and check digits and names the Romanian bank (or the State Treasury). Free.",
"inputSchema": {
"type": "object",
"title": "validate_ibanArguments",
"required": [
"iban"
],
"properties": {
"iban": {
"type": "string",
"title": "Iban",
"examples": [
"RO49AAAA1B31007593840000"
],
"description": "IBAN, spaces allowed"
}
}
},
"annotations": {
"title": "Check IBAN",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Validator for Romanian e-Factura invoices (UBL 2.1, CIUS-RO 1.0.9), also Peppol BIS Billing 3.0 and EN 16931. Call it after generating invoice XML and before uploading it to ANAF SPV (or a Peppol access point): every error comes with the exact fix, the UBL field and, for amounts, the correct value, so you can correct the XML and validate again. Use validate_invoice_free first (free, no wallet), then validate_invoice (paid per call with x402, USDC on Base). explain_rule is free. Also checks Romanian SAF-T files (D406) before filing: validate_saft_free / validate_saft run ANAF's own validator for the reporting period plus the consistency checks ANAF does later (balances, totals, VAT, IDs).
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.