Brazil NF-e XML Auditor & Key Engine (x402)
io.github.brunopompeo1/br-nfe-xml-auditor-x402
Serveur MCP OK 3 outils
SEFAZ 4.00 NF-e/NFC-e XML audit, ~90% token compression & Mod-11 key decoder via x402 Base USDC.
Fiche technique
- Auteur
- brunopompeo1 (espace de noms du registre)
- Dépôt
- github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
- Site
- github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
- Version
- 2.7.1
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp Streamable HTTP
- Outils
- 3
- Catégories
- Finance et paiement, Sécurité
- Dernière mise à jour
- 26 nov. 2026
- Publication
- 26 nov. 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 2 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)<a href="https://latlas.dev/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402"><img src="https://latlas.dev/badge/statut/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)<a href="https://latlas.dev/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402"><img src="https://latlas.dev/badge/fiche/io.github.brunopompeo1/br-nfe-xml-auditor-x402.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:40
- Temps de réponse
- 210 ms (initialize + tools/list)
- Version du protocole
- 2025-06-18
- Nom annoncé
- br-nfe-xml-auditor-x402 2.7.1
- Outils
- 3
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:40 | OK | 210 ms | 3 |
Outils exposés (3, réponse à tools/list, 28 nov. 2026)
audit_nfe_xml
Audit one NF-e or NFC-e XML: totals, CFOP, SEFAZ protocol and CBS/IBS credit
Parses one Brazilian NF-e (model 55) or NFC-e (model 65) XML in SEFAZ layout 4.00, including the 2025 tax-reform group, into compact JSON with about 90% fewer tokens, then audits it: checks that items, freight, discounts and taxes add up to the invoice total, that CFOPs fit an in-state or interstate operation, that the access key passes Mod-11 and that the embedded SEFAZ protocol says authorised; and, under LC 214/2025, compares the CBS and IBS highlighted per item with the official rates to compute the credit at risk in reais and draft a supplier alert. Use it when an agent receives a purchase invoice to book, pay or reconcile, or must answer questions about one without spending tokens on raw XML. Do not use it for a batch of invoices, which is audit_nfe_xml_batch, for an NFS-e service invoice, whose XML is different, or to confirm the current status at SEFAZ, since a later cancellation does not appear in the XML. Read 'auditReport', then 'rtcCreditAudit' and 'supplierAlert'. Costs 0.010 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error. Pure parsing and arithmetic at the edge: the XML is not stored, SEFAZ is not queried (authorisation is read from the protocol embedded in the XML) and no e-mail is sent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| xml | string | oui | Full XML text of one invoice, either the authorised (preferred, it carries the SEFAZ protocol) or a bare . Send the XML itself as a string, not a file path, a URL or a DANFE PDF. Text that is not a NF-e or NFC-e returns HTTP 422. |
| includeItems | boolean | non | Include the per-item lines in 'items' (default true). Set false to cut the response size on invoices with hundreds of items. |
| auditRtcCredit | boolean | non | Run the CBS/IBS tax-credit audit under LC 214/2025 against the official RFB classification tables (default true). Set false for a pure parse-and-totals audit. |
| referenceYear | integer | non | Calendar year whose CBS/IBS transition rates are expected, 2026 to 2033. Defaults to the invoice's issue year, or 2026 when there is none. Drives the expected-credit figures and the 2027 projection. |
| buyerRegime | enum: "regime_regular" | "simples_nacional" | non | Tax regime of the buying company. 'regime_regular' (default) can take CBS/IBS credits, so missing highlights are a loss; 'simples_nacional' changes what counts as credit at risk. |
| supplierEmail | string | non | Optional supplier e-mail, only used to prefill supplierAlert.emailDraft so the alert can be sent with the agent-email API. Nothing is sent by this tool. |
| aiSummary | boolean | non | When true (the default) a single-XML audit carries 'aiExecutiveBrief', one Portuguese sentence of at most 38 words with the operation, total, SEFAZ status and credit risk. Set false to skip it and save latency. |
audit_nfe_xml_batch
Audit up to 25 NF-e XMLs at once and total the CBS/IBS credit at risk
Audits a batch of up to 25 Brazilian NF-e or NFC-e XMLs in one paid call and returns one compact audit per invoice plus batch totals: total invoiced, number of invoices with credit risk, total CBS/IBS credit at risk and overcharged tax in reais, the 2027 projection, a severity breakdown and one supplier alert per invoice that needs action. Use it for a monthly purchase-ledger review, a supplier compliance sweep before the CBS/IBS transition, or any time several invoices would otherwise mean several calls. Do not use it when you need the full detail of one invoice, such as its items, which audit_nfe_xml returns, and do not send more than 25 XMLs: extras are ignored and 'truncatedAtMax25' turns true. An XML that fails to parse is reported in its own entry instead of failing the batch. Read 'batchSummary' and 'supplierAlerts'. Costs 0.010 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error. Pure parsing and arithmetic at the edge: the XML is not stored, SEFAZ is not queried (authorisation is read from the protocol embedded in the XML) and no e-mail is sent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| xmls | array<string> | oui | Between 1 and 25 invoice XMLs as strings. Items beyond the 25th are ignored. |
| includeItems | boolean | non | Include per-item lines inside each invoice entry (default true). Set false for large batches. |
| auditRtcCredit | boolean | non | Run the CBS/IBS tax-credit audit under LC 214/2025 against the official RFB classification tables (default true). Set false for a pure parse-and-totals audit. |
| referenceYear | integer | non | Calendar year whose CBS/IBS transition rates are expected, 2026 to 2033. Defaults to the invoice's issue year, or 2026 when there is none. Drives the expected-credit figures and the 2027 projection. |
| buyerRegime | enum: "regime_regular" | "simples_nacional" | non | Tax regime of the buying company. 'regime_regular' (default) can take CBS/IBS credits, so missing highlights are a loss; 'simples_nacional' changes what counts as credit at risk. |
audit_cbs_ibs_credit_items
Audit CBS/IBS tax credit on purchase items without an XML (LC 214/2025)
Audits the CBS and IBS tax credit of up to 100 purchase or fleet items given as plain JSON, for when there is no XML at hand, such as an ERP export or a spreadsheet: for each item it finds the expected rate in the official RFB classification tables by NCM or cClassTrib for the reference year, compares it with the CBS and IBS the supplier highlighted, and returns the credit at risk and overcharged tax in reais, projections to 2027 and 2033 and a supplier alert with a ready e-mail draft. Use it for procurement and fleet cost reviews and to quantify the cash impact of the tax reform on a supplier. Do not use it when you have the invoice XML, which audit_nfe_xml audits more completely, or to compute ICMS, IPI or PIS/COFINS, which are not covered. Read 'rtcCreditAudit' and 'supplierAlert'. Costs 0.010 USDC per call, paid with x402 v2 on Base (eip155:8453), a B2B X-API-Key or a Wafermap marketplace signature; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with 'error', so an agent loop never breaks on a thrown error. Pure parsing and arithmetic at the edge: the XML is not stored, SEFAZ is not queried (authorisation is read from the protocol embedded in the XML) and no e-mail is sent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| items | array<object> | oui | Between 1 and 100 purchase items. Items beyond the 100th are ignored. |
| referenceYear | integer | non | Calendar year whose CBS/IBS transition rates are expected, 2026 to 2033. Defaults to the invoice's issue year, or 2026 when there is none. Drives the expected-credit figures and the 2027 projection. |
| buyerRegime | enum: "regime_regular" | "simples_nacional" | non | Tax regime of the buying company. 'regime_regular' (default) can take CBS/IBS credits, so missing highlights are a loss; 'simples_nacional' changes what counts as credit at risk. |
| supplierName | string | non | Supplier name for the alert and e-mail draft. |
| supplierCnpj | string | non | Supplier CNPJ, 14 digits, for the alert. |
| supplierEmail | string | non | Optional supplier e-mail, only used to prefill supplierAlert.emailDraft so the alert can be sent with the agent-email API. Nothing is sent by this tool. |
| accessKey | string | non | Optional 44-digit access key of the related invoice; when given it is Mod-11 checked and returned in 'accessKeyAudit'. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http br-nfe-xml-auditor-x402 https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : br-nfe-xml-auditor-x402 ; URL : https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : br-nfe-xml-auditor-x402 ; Server URL : https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp ; Create as a plugin{
"mcpServers": {
"br-nfe-xml-auditor-x402": {
"url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-nfe-xml-auditor-x402": {
"type": "http",
"url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"br-nfe-xml-auditor-x402": {
"url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-nfe-xml-auditor-x402": {
"httpUrl": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
}
}
}[mcp_servers.br-nfe-xml-auditor-x402]
url = "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Brazil NF-e XML Auditor & Key Engine (x402) · L’Atlas · Test du
[Brazil NF-e XML Auditor & Key Engine (x402) — L’Atlas](https://latlas.dev/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)Source : Registre officiel MCP · relevé le 3 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.