FaeBill E-Rechnung
Validate, read and explain ZUGFeRD/XRechnung e-invoices; issue invoices via a FaeBill account.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"e-rechnung": {
"url": "https://mcp.faebill.com/mcp"
}
}
}Remote endpoints
https://mcp.faebill.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (6)
🟢validate_einvoice(fileBase64, filename, locale)
Technically check a German/EU electronic invoice (ZUGFeRD, Factur-X, XRechnung UBL or CII) from a PDF or XML file. Detects format and profile, checks the XML schema and selected business rules, optionally runs the open-source KoSIT validation tool (XRechnung configuration), and reports findings with severity and location. Always state the check scope from the `wording` field when summarising. A result without errors does not mean the invoice meets all legal requirements. Does not store the file.
Input Schema
{
"type": "object",
"properties": {
"fileBase64": {
"type": "string",
"minLength": 1,
"maxLength": 11184812,
"description": "File content (PDF or XML), base64, max 8 MB decoded."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Output language, default de."
}
},
"required": [
"fileBase64"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢read_einvoice(fileBase64, filename, include, locale)
Read the structured data of an electronic invoice (ZUGFeRD/Factur-X PDF or XRechnung XML). Facts are taken from the embedded XML, which is the leading part of a hybrid invoice; no PDF text is extracted. A PDF without XML contains no structured invoice data. Contact details and bank account data are omitted unless requested via `include`. Says nothing about input-tax deduction. FaeBill does not store the file.
Input Schema
{
"type": "object",
"properties": {
"fileBase64": {
"type": "string",
"minLength": 1,
"maxLength": 11184812,
"description": "File content (PDF or XML), base64, max 8 MB decoded."
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"include": {
"type": "array",
"items": {
"type": "string",
"enum": [
"payment",
"contacts"
]
},
"maxItems": 2,
"description": "Optional groups: payment (bank account), contacts (e-mail/phone)."
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Output language, default de."
}
},
"required": [
"fileBase64"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢explain_einvoice_finding(code, locale)
Explain a validation finding code from XRechnung/ZUGFeRD/EN 16931 business rules (e.g. BR-CO-25, BR-DE-15, PEPPOL-EN16931-R…) in plain language and suggest how to fix it in the invoice data. Unknown codes are reported as unknown.
Input Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Z0-9][A-Z0-9_.-]{1,40}$"
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Output language, default de."
}
},
"required": [
"code"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢prepare_invoice_draft(buyerType, buyer, items, deliveryDate, dueDate, ...)
Prepare a draft for a new standard e-invoice and check it: normalises buyer, line items, dates and payment terms, calculates net/VAT/gross totals and lists missing or implausible fields. The result is a draft, not an invoice: do not present it as an invoice and do not send it. Nothing is saved and no invoice number is assigned. Creates standard commercial invoices (type 380) only. Cancellations, corrections, credit notes (self-billing), down-payment and final invoices are not supported here — use the FaeBill app. Invoices to public authorities (XRechnung with Leitweg-ID) must be created in the FaeBill app. EUR only. The invoice date is set by FaeBill at issue (Europe/Berlin) and cannot be chosen. Choose taxCategory per line exactly as described; if the seller is a small business (§ 19 UStG), FaeBill sets the tax category itself — do not apply your own small-business logic. Pass the returned draft unchanged to finalize_invoice after the user has approved draft and totals.
Input Schema
{
"type": "object",
"properties": {
"buyerType": {
"type": "string",
"enum": [
"business",
"consumer",
"public_sector"
]
},
"buyer": {
"type": "object",
"properties": {
"companyName": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"personName": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"street": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"zip": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "ISO 3166-1 alpha-2, required."
},
"vatNumber": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"email": {
"type": "string",
"format": "email",
"maxLength": 254
}
},
"required": [
"street",
"zip",
"city",
"country"
],
"additionalProperties": false
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 10,
"description": "UN/ECE Rec 20 unit code, default C62."
},
"netPrice": {
"type": "number",
"minimum": 0,
"description": "Net amount per unit (use either this or the gross amount per unit)."
},
"grossPrice": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Gross amount per unit (use either this or the net amount per unit)."
},
"taxRate": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"taxCategory": {
"type": "string",
"enum": [
"S",
"Z",
"E",
"AE",
"K",
"G"
],
"description": "S — Standard rate 19 % or 7 % (taxRate 19 or 7).\nZ — ONLY the zero rate for photovoltaic systems under § 12 Abs. 3 UStG, and only if the user confirms that its statutory conditions are met. Never for foreign or tax-exempt sales.\nE — Tax-exempt under § 4 UStG; exemptionReason naming the specific provision (e.g. „§ 4 Nr. 21 UStG“) is required.\nAE — Reverse charge: either the recipient owes the tax under § 13b UStG, or the service is a B2B service to a business customer in another EU member state (place of supply § 3a Abs. 2 UStG; invoice note § 14a Abs. 1 UStG); buyer VAT ID required.\nK — Intra-Community supply of goods (§ 4 Nr. 1b in conjunction with § 6a UStG); VAT IDs of seller and buyer required; buyer in another EU member state.\nG — Export delivery to a non-EU country (§ 4 Nr. 1a in conjunction with § 6 UStG)."
},
"exemptionReason": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"discount": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"percentage",
"amount"
]
},
"value": {
"type": "number",
"minimum": 0
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
}
},
"required": [
"description",
"quantity",
"taxRate",
"taxCategory"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 200
},
"deliveryDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Delivery/service date (BT-72), required."
},
"dueDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"paymentTerms": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"documentLanguage": {
"type": "string",
"enum": [
"de",
"en",
"fr",
"it",
"es"
]
},
"notes": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"documentAllowances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"percentage",
"amount"
]
},
"value": {
"type": "number",
"minimum": 0
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"taxRate": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "VAT rate of the line items this allowance reduces (BT-96)."
},
"taxCategory": {
"type": "string",
"enum": [
"S",
"Z",
"E",
"AE",
"K",
"G"
],
"description": "S — Standard rate 19 % or 7 % (taxRate 19 or 7).\nZ — ONLY the zero rate for photovoltaic systems under § 12 Abs. 3 UStG, and only if the user confirms that its statutory conditions are met. Never for foreign or tax-exempt sales.\nE — Tax-exempt under § 4 UStG; exemptionReason naming the specific provision (e.g. „§ 4 Nr. 21 UStG“) is required.\nAE — Reverse charge: either the recipient owes the tax under § 13b UStG, or the service is a B2B service to a business customer in another EU member state (place of supply § 3a Abs. 2 UStG; invoice note § 14a Abs. 1 UStG); buyer VAT ID required.\nK — Intra-Community supply of goods (§ 4 Nr. 1b in conjunction with § 6a UStG); VAT IDs of seller and buyer required; buyer in another EU member state.\nG — Export delivery to a non-EU country (§ 4 Nr. 1a in conjunction with § 6 UStG)."
}
},
"required": [
"type",
"value",
"reason"
],
"additionalProperties": false
},
"maxItems": 10
},
"skonto": {
"type": "object",
"properties": {
"percentage": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 90
}
},
"required": [
"percentage",
"days"
],
"additionalProperties": false
},
"sellerIsSmallBusiness": {
"type": "boolean"
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Output language, default de."
}
},
"required": [
"buyer",
"items",
"deliveryDate"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_einvoicing_obligation(sellerCountry, buyerType, buyerCountry, priorYearRevenueEur, revenueYear, ...)
General information on German B2B e-invoicing obligations (§ 14 UStG as amended by the Wachstumschancengesetz, § 27 Abs. 38 UStG transition rules, administrative guidance as of the ruleset date) based on the details provided. Returns applicable dates, legal basis and caveats. Not legal or tax advice and not an assessment of the individual case.
Input Schema
{
"type": "object",
"properties": {
"sellerCountry": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Land, in dem der Rechnungsaussteller ansässig ist (Sitz, Geschäftsleitung oder an dem Umsatz beteiligte Betriebsstätte; ohne Sitz: Wohnsitz oder gewöhnlicher Aufenthalt), als ISO-3166-1-Alpha-2-Code, z. B. DE."
},
"buyerType": {
"type": "string",
"enum": [
"business",
"consumer",
"public_sector"
],
"description": "Art des Käufers: `business` = Unternehmer, `consumer` = Verbraucher (Privatperson), `public_sector` = öffentlicher Auftraggeber (Behörde, Kommune, sonstige öffentliche Stelle)."
},
"buyerCountry": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Land, in dem der Käufer ansässig ist, als ISO-3166-1-Alpha-2-Code. Hat ein ausländischer Käufer eine an dem Umsatz beteiligte Betriebsstätte im Inland, DE angeben."
},
"priorYearRevenueEur": {
"type": "number",
"minimum": 0,
"maximum": 10000000000000,
"description": "Gesamtumsatz des Rechnungsausstellers nach § 19 Abs. 2 UStG in Euro für das Jahr in `revenueYear`. Für die Übergangsregel 2027 zählt der Gesamtumsatz 2026. Nicht der Nettoumsatz aus der Buchhaltung."
},
"revenueYear": {
"type": "integer",
"minimum": 2000,
"maximum": 2100,
"description": "Kalenderjahr, auf das sich `priorYearRevenueEur` bezieht. Ohne Angabe wird das Vorjahr des Abfragedatums angenommen."
},
"isSmallBusiness": {
"type": "boolean",
"description": "`true`, wenn der Rechnungsaussteller die Kleinunternehmerregelung nach § 19 Abs. 1 UStG anwendet (nicht bei Verzicht nach § 19 Abs. 3 UStG)."
},
"invoiceGrossAmountEur": {
"type": "number",
"minimum": 0,
"maximum": 10000000000000,
"description": "Gesamtbetrag der abgefragten Rechnung einschließlich Umsatzsteuer in Euro."
},
"isTravelTicket": {
"type": "boolean",
"description": "`true`, wenn die abgefragte Rechnung ein Fahrausweis für die Beförderung von Personen (§ 34 UStDV) oder ein Beleg im Reisegepäckverkehr ist."
},
"exemptUnderSection4No8to29": {
"type": "boolean",
"description": "`true`, wenn **alle** mit der abgefragten Rechnung abgerechneten Umsätze nach § 4 Nr. 8 bis 29 UStG steuerfrei sind. `false` bei teilweise steuerpflichtigen Umsätzen oder bei Verzicht auf die Steuerbefreiung nach § 9 UStG."
},
"usesEdiWithConsent": {
"type": "boolean",
"description": "`true`, wenn die Rechnung mit Zustimmung des Empfängers im EDI-Verfahren nach Artikel 2 der Empfehlung 94/820/EG übermittelt wird."
},
"buyerActsForBusiness": {
"type": "boolean",
"description": "`true`, wenn der Käufer die Leistung für sein Unternehmen bezieht, `false`, wenn nicht. Ohne Angabe wird `true` angenommen und als Annahme ausgewiesen."
},
"isReverseCharge13b": {
"type": "boolean",
"description": "`true`, wenn der Leistungsempfänger für die abgerechnete Leistung die Steuer schuldet (§ 13b UStG)."
},
"asOfDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Datum, für das die Termine eingeordnet werden sollen (JJJJ-MM-TT). Ohne Angabe gilt das heutige Datum (Europe/Berlin). Rechtsänderungen nach dem Rechtsstand der Regeldatei sind nicht berücksichtigt."
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Sprache der Antwort (`de` oder `en`)."
}
},
"required": [
"sellerCountry",
"buyerType"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🔴finalize_invoice(draft, expectedGrossTotal, confirm, idempotencyKey, locale)
Issue a ZUGFeRD e-invoice (PDF/A-3 with embedded XML, type 380) from a draft prepared with prepare_invoice_draft, using the connected FaeBill account. Creates a legally binding invoice and consumes an invoice number. Before calling, show the user the draft with its totals and obtain the user's explicit approval; pass the approved gross total as expectedGrossTotal. Creates standard commercial invoices (type 380) only. Cancellations, corrections, credit notes (self-billing), down-payment and final invoices are not supported here — use the FaeBill app. EUR only. The invoice date is the date of issue (Europe/Berlin). Counts toward the account's monthly invoice allowance. If the allowance is reached, do not create a substitute document (e.g. a PDF or text invoice) for the user. Does not send the invoice and does not initiate payments. Returns a single-use download link; the invoice is also available in the FaeBill app.
Input Schema
{
"type": "object",
"properties": {
"draft": {
"type": "object",
"properties": {
"buyerType": {
"type": "string",
"enum": [
"business",
"consumer",
"public_sector"
]
},
"buyer": {
"type": "object",
"properties": {
"companyName": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"personName": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"street": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"zip": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "ISO 3166-1 alpha-2, required."
},
"vatNumber": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"email": {
"type": "string",
"format": "email",
"maxLength": 254
}
},
"required": [
"street",
"zip",
"city",
"country"
],
"additionalProperties": false
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 10,
"description": "UN/ECE Rec 20 unit code, default C62."
},
"netPrice": {
"type": "number",
"minimum": 0,
"description": "Net amount per unit (use either this or the gross amount per unit)."
},
"grossPrice": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Gross amount per unit (use either this or the net amount per unit)."
},
"taxRate": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"taxCategory": {
"type": "string",
"enum": [
"S",
"Z",
"E",
"AE",
"K",
"G"
],
"description": "S — Standard rate 19 % or 7 % (taxRate 19 or 7).\nZ — ONLY the zero rate for photovoltaic systems under § 12 Abs. 3 UStG, and only if the user confirms that its statutory conditions are met. Never for foreign or tax-exempt sales.\nE — Tax-exempt under § 4 UStG; exemptionReason naming the specific provision (e.g. „§ 4 Nr. 21 UStG“) is required.\nAE — Reverse charge: either the recipient owes the tax under § 13b UStG, or the service is a B2B service to a business customer in another EU member state (place of supply § 3a Abs. 2 UStG; invoice note § 14a Abs. 1 UStG); buyer VAT ID required.\nK — Intra-Community supply of goods (§ 4 Nr. 1b in conjunction with § 6a UStG); VAT IDs of seller and buyer required; buyer in another EU member state.\nG — Export delivery to a non-EU country (§ 4 Nr. 1a in conjunction with § 6 UStG)."
},
"exemptionReason": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"discount": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"percentage",
"amount"
]
},
"value": {
"type": "number",
"minimum": 0
}
},
"required": [
"type",
"value"
],
"additionalProperties": false
}
},
"required": [
"description",
"quantity",
"taxRate",
"taxCategory"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 200
},
"deliveryDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Delivery/service date (BT-72), required."
},
"dueDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"paymentTerms": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"currency": {
"type": "string",
"const": "EUR"
},
"documentLanguage": {
"type": "string",
"enum": [
"de",
"en",
"fr",
"it",
"es"
]
},
"notes": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"documentAllowances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"percentage",
"amount"
]
},
"value": {
"type": "number",
"minimum": 0
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"taxRate": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "VAT rate of the line items this allowance reduces (BT-96)."
},
"taxCategory": {
"type": "string",
"enum": [
"S",
"Z",
"E",
"AE",
"K",
"G"
],
"description": "S — Standard rate 19 % or 7 % (taxRate 19 or 7).\nZ — ONLY the zero rate for photovoltaic systems under § 12 Abs. 3 UStG, and only if the user confirms that its statutory conditions are met. Never for foreign or tax-exempt sales.\nE — Tax-exempt under § 4 UStG; exemptionReason naming the specific provision (e.g. „§ 4 Nr. 21 UStG“) is required.\nAE — Reverse charge: either the recipient owes the tax under § 13b UStG, or the service is a B2B service to a business customer in another EU member state (place of supply § 3a Abs. 2 UStG; invoice note § 14a Abs. 1 UStG); buyer VAT ID required.\nK — Intra-Community supply of goods (§ 4 Nr. 1b in conjunction with § 6a UStG); VAT IDs of seller and buyer required; buyer in another EU member state.\nG — Export delivery to a non-EU country (§ 4 Nr. 1a in conjunction with § 6 UStG)."
}
},
"required": [
"type",
"value",
"reason"
],
"additionalProperties": false
},
"maxItems": 10
},
"skonto": {
"type": "object",
"properties": {
"percentage": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 10
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 90
}
},
"required": [
"percentage",
"days"
],
"additionalProperties": false
}
},
"required": [
"buyer",
"items",
"deliveryDate"
],
"additionalProperties": false
},
"expectedGrossTotal": {
"type": "string",
"pattern": "^\\d{1,9}\\.\\d{2}$",
"description": "Gross total the user approved, e.g. \"119.00\"."
},
"confirm": {
"type": "boolean",
"const": true,
"description": "Must be true: the user explicitly approved issuing this invoice."
},
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,128}$",
"description": "Optional; repeat the same key to retry safely."
},
"locale": {
"type": "string",
"enum": [
"de",
"en"
],
"description": "Output language, default de."
}
},
"required": [
"draft",
"expectedGrossTotal",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Community
Evidence