NFE BR

•
1
•

Provides a Model Context Protocol server for generating and validating Brazilian electronic fiscal documents (NF-e/NFC-e) according to SEFAZ XML schema 4.00.

NFE BR is an MCP (Model Context Protocol) server designed to facilitate the issuance and validation of Brazilian electronic fiscal documents, specifically NF-e (modelo 55) and NFC-e (modelo 65), adhering to the SEFAZ XML schema 4.00. Built upon the mcp-einvoicing-core framework, it offers core functionalities for CPF/CNPJ validation, the generation of unsigned NF-e/NFC-e XML documents, and validation against the official XSD (modified for unsigned documents). Future roadmap phases include critical features like ICP-Brasil digital signing and direct integration with SEFAZ webservices for full document submission.

Características Principales

01Generates unsigned NF-e/NFC-e 4.00 XML documents from structured invoice data.
02Validates Brazilian CPF (Cadastro de Pessoas Físicas) tax IDs.
030 GitHub stars
04Validates Brazilian CNPJ (Cadastro Nacional da Pessoa Jurídica) tax IDs, including the alphanumeric format.
05Validates NF-e/NFC-e 4.00 XML content against a local variant of the official XSD (PL_010d, without signature requirement).
06Constructs a 44-character NF-e/NFC-e access key with a module 11 check digit.

Casos de Uso

01Integrating Brazilian tax ID (CPF/CNPJ) validation into applications.
02Facilitating the preparation and initial validation of fiscal documents before digital signing and SEFAZ submission.
03Automating the generation of compliant Brazilian electronic invoices (NF-e/NFC-e).