Brazil DANFSe & Tax Reform RTC (x402)
io.github.brunopompeo1/br-danfse-rtc-x402
MCP server OK 3 tools
Brazil DANFSe Nacional HTML & Tax Reform CBS/IBS/ISS (LC 214/2025) engine 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-danfse-rtc-x402.architect-x402.workers.dev/mcp Streamable HTTP
- Tools
- 3
- Categories
- Finance and payments
- 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: 0 (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
[](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-danfse-rtc-x402)<a href="https://latlas.dev/en/mcp/io.github.brunopompeo1/br-danfse-rtc-x402"><img src="https://latlas.dev/badge/statut/mcp/io.github.brunopompeo1/br-danfse-rtc-x402.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-danfse-rtc-x402)<a href="https://latlas.dev/en/mcp/io.github.brunopompeo1/br-danfse-rtc-x402"><img src="https://latlas.dev/badge/fiche/io.github.brunopompeo1/br-danfse-rtc-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-danfse-rtc-x402.architect-x402.workers.dev/mcp
- Last result
- OK 28 Nov 2026, 09:36
- Response time
- 290 ms (initialize + tools/list)
- Protocol version
- 2025-06-18
- Announced name
- br-danfse-rtc-x402 2.7.3
- Tools
- 3
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:36 | OK | 290 ms | 3 |
Exposed tools (3, from tools/list, 28 Nov 2026)
calculate_rtc_official
Official CBS/IBS/ISS calculator (LC 214/2025, RFB Base V0073)
Computes Brazilian consumption-tax reform figures for one amount or a batch of up to 50 lines: it resolves the official Receita Federal cClassTrib classification from a code, NBS, NCM, LC 116 code or sector alias, applies the legal CBS/IBS reduction, the transition rates of the chosen year from 2026 to 2033 and the ISS phase-down, and returns the amounts due, the effective rates, the saving versus full taxation, a calculation trail and the ready-to-embed gIBSCBS XML group. It also simulates Simples Nacional DAS with the annex, revenue bracket and Fator R, and tells you how much CBS/IBS credit the buyer can actually appropriate. Use it for pricing, quoting, contract repricing, credit analysis and any what-if across transition years. Do not use it when you need the printable fiscal document itself, which is what generate_danfse_rtc returns, and do not use it to browse the official tables, which rtc_lookup_official_tables does for free. Deterministic, read-only and fully offline at the edge, so the same input always returns the same figures and a retry is safe. Costs 0.005 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. It never throws on bad input: an unparseable body is treated as empty and defaults apply, and an unknown cClassTrib falls back to full taxation with rtc.warning explaining it, so always read classification.matchedBy and rtc.warning before trusting the figure.
| Parameter | Type | Required | Description |
|---|---|---|---|
| valorServico | number | no | Amount in BRL to tax, as a plain number (100000 means R$ 100.000,00). Defaults to 1000 when neither this nor servico.valorServico is supplied. Aliases accepted: valor_servico, baseCalculo. |
| discriminacao | string | no | Short description of the operation, carried into the result and the calculation trail. |
| cClassTrib | string | no | Official 6-digit Receita Federal cClassTrib code from Base V0073, the highest-priority classifier. Examples: '000001' full taxation, '200003' basic food basket (100% reduction), '200027' property rental (70%), '200028' education (60%), '200029' health (60%), '200044' cybersecurity (60%), '200046' c… |
| nbs | string | no | NBS service code, 4 to 9 digits. Used to resolve cClassTrib automatically when cClassTrib is absent. Second in resolution priority, after cClassTrib and before ncm. |
| ncm | string | no | NCM goods code, 4 to 8 digits. Used to resolve cClassTrib automatically when neither cClassTrib nor nbs is supplied. Third in resolution priority. |
| setor | string | no | Semantic sector alias, the easiest classifier when the fiscal codes are unknown. Accepted values include 'construcao_civil', 'saude', 'educacao', 'cesta_basica', 'profissao_intelectual', 'locacao_imoveis', 'bares_restaurantes', 'ciberseguranca', 'combustiveis' and 'padrao'. Lowest resolution priori… |
| regime | enum: "regime_regular" | "simples_nacional" | "simples_nacional_regular_por_fora" | no | Tax regime, defaulting to 'regime_regular'. 'simples_nacional' adds a DAS simulation and the B2B credit actually transferable to the buyer under LC 214/2025 Art. 41, which is capped at the CBS/IBS share inside the DAS. 'simples_nacional_regular_por_fora' models a Simples company that elected regula… |
| ano | integer | no | Calendar year of the LC 214/2025 transition schedule, defaulting to 2026. Years below 2026 are treated as 2026 (the test year with a 0.9% CBS plus 0.1% IBS token rate) and years above 2033 as 2033 (full CBS/IBS, ISS and ICMS extinguished). The year drives both the nominal rates and the ISS phase-do… |
| anexoSimples | enum: "I" | "II" | "III" | "IV" | "V" | no | Simples Nacional annex, used only when regime is 'simples_nacional'. When omitted it is derived from atividadeSimples and fatorR, falling back to Annex III. Alias accepted: anexo_simples. |
| atividadeSimples | string | no | Official Receita Federal Simples Nacional activity code, '01' to '14' or '90'. Supplying it lets the engine pick the correct annex automatically, including the Annex III versus Annex V switch driven by fatorR. |
| rbt12 | number | no | Gross revenue of the last 12 months in BRL, which selects the Simples Nacional revenue bracket and therefore the effective DAS rate. Defaults to 360000. |
| fatorR | number | no | Payroll-to-revenue ratio as a decimal fraction, not a percentage: 0.31 means 31%. At 0.28 or above a service activity falls under Annex III, below it under Annex V. Alias accepted: fator_r. |
| aliqCbs | number | no | Manual override for the nominal CBS rate in percent, bypassing the transition schedule for the chosen year. Use it only to model a scenario; leave it out to apply the official rate. Aliases accepted: cbsAliquota, aliq_cbs. |
| aliqIbs | number | no | Manual override for the total nominal IBS rate in percent. It is split between state and municipal shares in the proportion of the chosen transition year. Aliases accepted: ibsAliquota, aliq_ibs. |
| aliqIbsUf | number | no | Manual override for the state (UF) share of the nominal IBS rate, in percent. Overrides the state portion of aliqIbs when both are supplied. |
| aliqIbsMun | number | no | Manual override for the municipal share of the nominal IBS rate, in percent. Overrides the municipal portion of aliqIbs when both are supplied. |
| itens | array<object> | no | Optional batch of lines priced in a single paid call, capped at 50 items; anything beyond the 50th is ignored. When present, the response adds batchRtcCalculation with per-line figures and the consolidated totals, while rtcCalculation still reflects the top-level valorServico. Each line inherits th… |
| servico | object | no | The service line itself. Values supplied here take precedence over their top-level equivalents, so prefer this object when issuing a document and use the flat fields only for a quick calculation. |
generate_danfse_rtc
Generate the national NFS-e DANFSe with the RTC calculation
Produces the printable DANFSe of the Brazilian national NFS-e as self-contained HTML, with the access key, document number and verification code, and embeds the same official CBS/IBS/ISS calculation the engine performs from the Receita Federal Base V0073 tables. It accepts either structured provider, taker and service objects or a raw NFS-e XML (national or ABRASF standard) that it parses for you. Use it when a human-readable or archivable fiscal document is the deliverable: attaching an invoice to an email, publishing a customer portal page, or filing a PDF. Do not use it when you only need the numbers, since calculate_rtc_official returns the identical calculation without the HTML payload and therefore a much smaller response. Deterministic, read-only and fully offline at the edge: the document is rendered and returned, never transmitted, registered with any municipality or city hall, nor given any legal validity by this call, so treat it as a faithful rendering and not as an official issuance. Costs 0.005 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. It never throws on bad input: missing identification fields are filled with demonstration placeholders, so always check that danfse.chaveAcesso is the key you supplied before archiving the result.
| Parameter | Type | Required | Description |
|---|---|---|---|
| xml | string | no | Raw NFS-e XML in the national or ABRASF standard. When supplied, the access key, number, dates, parties and service values are read from it, and any field you also pass explicitly overrides the parsed value. Pass the decoded XML string, not a file path or URL. |
| chaveAcesso | string | no | 44-digit NFS-e access key printed on the document. A demonstration key is used when omitted, so always supply the real one for an archivable document. |
| numero | string | no | Document number printed on the DANFSe. Defaults to '1'. |
| codigoVerificacao | string | no | Verification code printed on the DANFSe, used by the municipality to confirm authenticity. |
| dataEmissao | string | no | Issue timestamp in ISO 8601, for example '2027-03-10T10:00:00-03:00'. Its year is used as the transition year when ano is not supplied. |
| prestador | object | no | Service provider identification, printed on the DANFSe. Required for a document that is meant to be issued or archived. |
| tomador | object | no | Service taker identification, printed on the DANFSe and relevant to the buyer's CBS/IBS credit. |
| servico | object | no | The service line itself. Values supplied here take precedence over their top-level equivalents, so prefer this object when issuing a document and use the flat fields only for a quick calculation. |
| valorServico | number | no | Flat alternative to servico.valorServico, in BRL. Used only when the servico object is absent. |
| discriminacao | string | no | Flat alternative to servico.discriminacao. Used only when the servico object is absent. |
| cClassTrib | string | no | Official 6-digit Receita Federal cClassTrib code from Base V0073, the highest-priority classifier. Examples: '000001' full taxation, '200003' basic food basket (100% reduction), '200027' property rental (70%), '200028' education (60%), '200029' health (60%), '200044' cybersecurity (60%), '200046' c… |
| nbs | string | no | NBS service code, 4 to 9 digits. Used to resolve cClassTrib automatically when cClassTrib is absent. Second in resolution priority, after cClassTrib and before ncm. |
| ncm | string | no | NCM goods code, 4 to 8 digits. Used to resolve cClassTrib automatically when neither cClassTrib nor nbs is supplied. Third in resolution priority. |
| setor | string | no | Semantic sector alias, the easiest classifier when the fiscal codes are unknown. Accepted values include 'construcao_civil', 'saude', 'educacao', 'cesta_basica', 'profissao_intelectual', 'locacao_imoveis', 'bares_restaurantes', 'ciberseguranca', 'combustiveis' and 'padrao'. Lowest resolution priori… |
| regime | enum: "regime_regular" | "simples_nacional" | "simples_nacional_regular_por_fora" | no | Tax regime, defaulting to 'regime_regular'. 'simples_nacional' adds a DAS simulation and the B2B credit actually transferable to the buyer under LC 214/2025 Art. 41, which is capped at the CBS/IBS share inside the DAS. 'simples_nacional_regular_por_fora' models a Simples company that elected regula… |
| ano | integer | no | Calendar year of the LC 214/2025 transition schedule, defaulting to 2026. Years below 2026 are treated as 2026 (the test year with a 0.9% CBS plus 0.1% IBS token rate) and years above 2033 as 2033 (full CBS/IBS, ISS and ICMS extinguished). The year drives both the nominal rates and the ISS phase-do… |
| anexoSimples | enum: "I" | "II" | "III" | "IV" | "V" | no | Simples Nacional annex, used only when regime is 'simples_nacional'. When omitted it is derived from atividadeSimples and fatorR, falling back to Annex III. Alias accepted: anexo_simples. |
| atividadeSimples | string | no | Official Receita Federal Simples Nacional activity code, '01' to '14' or '90'. Supplying it lets the engine pick the correct annex automatically, including the Annex III versus Annex V switch driven by fatorR. |
| rbt12 | number | no | Gross revenue of the last 12 months in BRL, which selects the Simples Nacional revenue bracket and therefore the effective DAS rate. Defaults to 360000. |
| fatorR | number | no | Payroll-to-revenue ratio as a decimal fraction, not a percentage: 0.31 means 31%. At 0.28 or above a service activity falls under Annex III, below it under Annex V. Alias accepted: fator_r. |
| aliqCbs | number | no | Manual override for the nominal CBS rate in percent, bypassing the transition schedule for the chosen year. Use it only to model a scenario; leave it out to apply the official rate. Aliases accepted: cbsAliquota, aliq_cbs. |
| aliqIbs | number | no | Manual override for the total nominal IBS rate in percent. It is split between state and municipal shares in the proportion of the chosen transition year. Aliases accepted: ibsAliquota, aliq_ibs. |
| aliqIbsUf | number | no | Manual override for the state (UF) share of the nominal IBS rate, in percent. Overrides the state portion of aliqIbs when both are supplied. |
| aliqIbsMun | number | no | Manual override for the municipal share of the nominal IBS rate, in percent. Overrides the municipal portion of aliqIbs when both are supplied. |
| itens | array<object> | no | Optional batch of lines priced in a single paid call, capped at 50 items; anything beyond the 50th is ignored. When present, the response adds batchRtcCalculation with per-line figures and the consolidated totals, while rtcCalculation still reflects the top-level valorServico. Each line inherits th… |
| generateHtml | boolean | no | Whether to include the printable HTML. It defaults to true here; set it false to get exactly the payload of calculate_rtc_official at the same price. |
rtc_lookup_official_tables
Browse the official RFB RTC tables (free, no payment)
Returns the reference data behind the calculator at no charge: the table-set metadata, the full 2026 to 2033 transition schedule with nominal CBS and IBS rates per year, the headline sector reductions with their cClassTrib code and the LC 214/2025 article that grants them, every accepted sector alias, and the official Simples Nacional activity list. Passing a cClassTrib code instead resolves that single classification. Use it to discover which classifier to send to calculate_rtc_official, to validate a code before pricing, or to explain a reduction with its legal basis. Do not use it to tax an amount, which calculate_rtc_official does, or to produce a document, which generate_danfse_rtc does. This is the only free tool on this server: it needs no x402 payment and no API key, is read-only, idempotent and fully offline, and an unknown code returns HTTP 404 with success:false and a null result rather than an exception.
| Parameter | Type | Required | Description |
|---|---|---|---|
| cClassTrib | string | no | Optional 6-digit cClassTrib code to resolve on its own, for example '200046'. Omit it to receive the complete table set instead of a single record. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http br-danfse-rtc-x402 https://br-danfse-rtc-x402.architect-x402.workers.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : br-danfse-rtc-x402 ; URL : https://br-danfse-rtc-x402.architect-x402.workers.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : br-danfse-rtc-x402 ; Server URL : https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp ; Create as a plugin{
"mcpServers": {
"br-danfse-rtc-x402": {
"url": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-danfse-rtc-x402": {
"type": "http",
"url": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"br-danfse-rtc-x402": {
"url": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-danfse-rtc-x402": {
"httpUrl": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
}
}
}[mcp_servers.br-danfse-rtc-x402]
url = "https://br-danfse-rtc-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 DANFSe & Tax Reform RTC (x402) · L’Atlas · Tested on
[Brazil DANFSe & Tax Reform RTC (x402) — L’Atlas](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-danfse-rtc-x402)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.