Fattura Elettronica IT MCP Server

Italian e-invoicing: FatturaPA XML/SDI v1.6.1, 21 MCP tools for B2B and B2G.

Local serverstdioPython

What is the Fattura Elettronica IT MCP Server?

Italian e-invoicing: FatturaPA XML/SDI v1.6.1, 21 MCP tools for B2B and B2G.

The short version

A Python MCP server for Italian electronic invoicing in FatturaPA XML format (SDI / Agenzia delle Entrate standard, version 1.2.3). It enables AI agents (Claude, IDEs) to generate, validate, and analyze B2B, B2G, and cross-border electronic invoices that are directly compliant with the technical specifications of the Sistema di Interscambio (SDI).

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
build_transmission_headerBuild DatiTrasmissione block: ProgressivoInvio, CodiceDestinatario, PECDestinatario
validate_cedente_prestatoreValidate seller block: IdFiscaleIVA, Anagrafica, Sede, RegimeFiscale codes
validate_cessionarioValidate buyer block: IdFiscaleIVA or CodiceFiscale, Sede
get_regime_fiscale_codesReturn all valid RegimeFiscale codes with descriptions (RF01-RF19)
validate_partita_ivaValidate Italian VAT number (Partita IVA) format and checksum (11 digits)
generate_progressivo_invioGenerate a unique ProgressivoInvio identifier (max 10 alphanumeric chars)
lookup_codice_destinatarioReturn info about a CodiceDestinatario (6-char SDI code) or PEC address
build_dati_generaliBuild DatiGenerali block: TipoDocumento, Divisa, Data, Numero, Causale
get_tipo_documento_codesReturn all TD01-TD28 codes with descriptions and use cases (incl. cross-border)
add_linea_dettaglioAdd a DettaglioLinee entry: NumeroLinea, Descrizione, Quantita, PrezzoUnitario
compute_totaliCompute DatiRiepilogo: imponibile, imposta, AliquotaIVA from line items
get_natura_codesReturn all Natura codes (N1-N7 and sub-codes) for VAT exemption with legal references
build_dati_pagamentoBuild DatiPagamento: CondizioniPagamento (TP01/02/03), ModalitaPagamento (MP01-MP23)
add_allegatoAttach a base64-encoded document to the Allegati block with name and format

How to install the Fattura Elettronica IT MCP Server

{
  "mcpServers": {
    "fattura-elettronica-it": {
      "command": "uvx",
      "args": ["mcp-fattura-elettronica-it"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
FATTURA_XSD_PATHFilesystem location the server is allowed to use.Optional
SDI_CERT_PATHFilesystem location the server is allowed to use.Optional
SDI_ENDPOINT_URLEndpoint or connection string the server talks to.Yes
SDI_CHANNEL_IDConfiguration value read at startup.Optional
EINVOICING_SIGNER_TOKENCredential the server authenticates with.Yes
CONSERVAZIONE_STORAGE_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Fattura Elettronica IT to build transmission header.”
  • “Use Fattura Elettronica IT to validate cedente prestatore.”
  • “Use Fattura Elettronica IT to validate cessionario.”

Frequently asked questions

Italian e-invoicing: FatturaPA XML/SDI v1.6.1, 21 MCP tools for B2B and B2G. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.