L'Atlas / MCP servers / Brazil NF-e XML Auditor & Key Engine (x402)
MCP server

Brazil NF-e XML Auditor & Key Engine (x402)

io.github.brunopompeo1/br-nfe-xml-auditor-x402

MCP server OK 3 tools

Get a review See pricing

SEFAZ 4.00 NF-e/NFC-e XML audit, ~90% token compression & Mod-11 key decoder via x402 Base USDC.

Technical sheet

Author
brunopompeo1 (registry namespace)
Repository
github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
Site
github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
Version
2.7.1
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp Streamable HTTP
Tools
3
Categories
Finance and payments, Security
Last updated
26 Nov 2026
Published
26 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 2 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402.svg?lang=en)](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)
HTML
<a href="https://latlas.dev/en/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?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.brunopompeo1/br-nfe-xml-auditor-x402.svg?lang=en)](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)
HTML
<a href="https://latlas.dev/en/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?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp
Last result
OK 28 Nov 2026, 11:40
Response time
210 ms (initialize + tools/list)
Protocol version
2025-06-18
Announced name
br-nfe-xml-auditor-x402 2.7.1
Tools
3

History

DateResultResponseTools
28 Nov 2026, 11:40OK210 ms3

Exposed tools (3, from 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.

ParameterTypeRequiredDescription
xmlstringyesFull 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.
includeItemsbooleannoInclude the per-item lines in 'items' (default true). Set false to cut the response size on invoices with hundreds of items.
auditRtcCreditbooleannoRun 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.
referenceYearintegernoCalendar 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.
buyerRegimeenum: "regime_regular" | "simples_nacional"noTax 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.
supplierEmailstringnoOptional 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.
aiSummarybooleannoWhen 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.

ParameterTypeRequiredDescription
xmlsarray<string>yesBetween 1 and 25 invoice XMLs as strings. Items beyond the 25th are ignored.
includeItemsbooleannoInclude per-item lines inside each invoice entry (default true). Set false for large batches.
auditRtcCreditbooleannoRun 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.
referenceYearintegernoCalendar 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.
buyerRegimeenum: "regime_regular" | "simples_nacional"noTax 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.

ParameterTypeRequiredDescription
itemsarray<object>yesBetween 1 and 100 purchase items. Items beyond the 100th are ignored.
referenceYearintegernoCalendar 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.
buyerRegimeenum: "regime_regular" | "simples_nacional"noTax 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.
supplierNamestringnoSupplier name for the alert and e-mail draft.
supplierCnpjstringnoSupplier CNPJ, 14 digits, for the alert.
supplierEmailstringnoOptional 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.
accessKeystringnoOptional 44-digit access key of the related invoice; when given it is Mod-11 checked and returned in 'accessKeyAudit'.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http br-nfe-xml-auditor-x402 https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : br-nfe-xml-auditor-x402 ; URL : https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.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
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "br-nfe-xml-auditor-x402": {
      "url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "br-nfe-xml-auditor-x402": {
      "type": "http",
      "url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "br-nfe-xml-auditor-x402": {
      "url": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "br-nfe-xml-auditor-x402": {
      "httpUrl": "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.br-nfe-xml-auditor-x402]
url = "https://br-nfe-xml-auditor-x402.architect-x402.workers.dev/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

Brazil NF-e XML Auditor & Key Engine (x402) · L’Atlas · Tested on

Markdown
[Brazil NF-e XML Auditor & Key Engine (x402) — L’Atlas](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-nfe-xml-auditor-x402)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.