# Brazil DANFSe & Tax Reform RTC (x402)

> Brazil DANFSe Nacional HTML & Tax Reform CBS/IBS/ISS (LC 214/2025) engine via x402 Base USDC.

- name: io.github.brunopompeo1/br-danfse-rtc-x402
- version: 2.7.1
- connection class: R0 (autonomous)
- trust: 93/100 flags: duplicate-repo
- quality: 82/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fbr-danfse-rtc-x402
- tools: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fbr-danfse-rtc-x402/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "br-danfse-rtc-x402": {
      "type": "http",
      "url": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 99
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-97% +updated-4d-ago -duplicate-repo(13 names)
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 82/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 2 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 3 of 3 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 5,935 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 67 (weight 15)

- pass `stability.changes`: 5 tool changes in 30 days
- fail `stability.rug_pull`: 3 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 5,935 tokens to load them all
- tool set hash: 218d332110bfdfb275f00a246e67096e
- tools last changed: 2026-11-25T01:55:52.745Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.brunopompeo1/br-danfse-rtc-x402.svg)](https://protogrid.dev/servers/io.github.brunopompeo1/br-danfse-rtc-x402)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `rtc_lookup_official_tables` added
  - 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.
- 2026-11-25 `generate_danfse_rtc` changed (title, description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: Gera o DANFSe oficial da NFS-e Nacional e calcula automaticamente CBS/IBS/ISS usando as tabelas oficiais MIT da Receita Federal (Base V0073 — 170 cClassTrib, reduções legais de construção civil 50%, saúde 60%, educação 60%, cesta básica 100%, Simples Nacional e transição 2026–2033) no Cloudflare Edge sem servidor Java ($0.005 USDC via x402 on Base ou B2B API Key).
  - after: 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.
- 2026-11-25 `calculate_rtc_official` changed (title, description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: Calculadora Oficial da Reforma Tributária do Consumo (LC 214/2025, Receita Federal Base V0073) no Edge sem servidor Java 21/Spring Boot. Resolve automaticamente reduções legais de CBS/IBS por cClassTrib, NCM, NBS, LC 116 ou setor, suporta Regime Regular, Simples Nacional (Anexos I-V + Fator R) e transição 2026-2033 ($0.005 USDC via x402 on Base).
  - after: 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.
- 2026-11-22 `calculate_rtc_official` added
  - Calculadora Oficial da Reforma Tributária do Consumo (LC 214/2025, Receita Federal Base V0073) no Edge sem servidor Java 21/Spring Boot. Resolve automaticamente reduções legais de CBS/IBS por cClassTrib, NCM, NBS, LC 116 ou setor, suporta Regime Regular, Simples Nacional (Anexos I-V + Fator R) e transição 2026-2033 ($0.005 USDC via x402 on Base).
- 2026-11-22 `generate_danfse_rtc` changed (description, inputSchema) **meaning changed**
  - before: Gera o DANFSe oficial da NFS-e Nacional e calcula os tributos da Reforma Tributária (CBS, IBS e ISS - LC 214/2025) (0.005 USDC via x402 on Base).
  - after: Gera o DANFSe oficial da NFS-e Nacional e calcula automaticamente CBS/IBS/ISS usando as tabelas oficiais MIT da Receita Federal (Base V0073 — 170 cClassTrib, reduções legais de construção civil 50%, saúde 60%, educação 60%, cesta básica 100%, Simples Nacional e transição 2026–2033) no Cloudflare Edge sem servidor Java ($0.005 USDC via x402 on Base ou B2B API Key).

Full history: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fbr-danfse-rtc-x402/changes

## Remotes

- https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.969697)

## Packages

_none_

## Tools (3)

- `calculate_rtc_official`: 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.
- `generate_danfse_rtc`: 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.
- `rtc_lookup_official_tables`: 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.
