# Brazil DANFSe & Tax Reform RTC (x402)

> Brazil DANFSe & Tax Reform RTC (x402) is a paid MCP server for tax calculators. Generate Brazilian DANFSe documents and compute Tax Reform CBS, IBS and ISS. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Repository:** https://github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
- **MCP Registry name:** io.github.brunopompeo1/br-danfse-rtc-x402
- **Categories:** [tax calculators](https://ai-powered.com/categories/tax-calculators), [accounting and tax](https://ai-powered.com/categories/accounting-and-tax)
- **Listing updated:** 2026-11-23

## About

Brazil DANFSe & Tax Reform RTC is a paid-per-call MCP endpoint that generates the official DANFSe for the national NFS-e service invoice and calculates the taxes introduced by Brazil's Tax Reform under LC 214/2025: CBS, IBS and ISS.

It is one of nine serverless APIs in a suite for accounting firms, financial back offices, ERPs, fintechs and autonomous agents, running on Cloudflare. Calls are settled with the x402 protocol in USDC on Base at $0.005 each, and a free `/sample` endpoint shows a real payload first.

A funded wallet or a business API key is needed to execute calls. Without credentials the connector still lists its tools and returns the payment requirements. Companies can also arrange a monthly plan paid in reais via PIX with a dedicated API key.

## Features

- **DANFSe generation:** Produces the official DANFSe HTML for the national NFS-e.
- **Tax Reform calculation:** Computes CBS, IBS and ISS under LC 214/2025.
- **Pay per call:** $0.005 per call in USDC on Base through x402.
- **Free sample:** `/sample` returns a real payload at no cost.
- **Business plan:** Monthly access in reais via PIX with a dedicated API key.

## Good for

- Generate a DANFSe for an NFS-e from an agent
- Estimate CBS, IBS and ISS on a service invoice
- Prototype accounting automations in n8n or Make
- Let an autonomous agent pay per fiscal calculation

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http br-danfse-rtc-x402 https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add br-danfse-rtc-x402 --url https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.br-danfse-rtc-x402]
url = "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "br-danfse-rtc-x402": {
      "httpUrl": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http br-danfse-rtc-x402 https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "br-danfse-rtc-x402": {
      "serverUrl": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "br-danfse-rtc-x402": {
      "url": "https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp
```

Enter a Name (for example "Brazil DANFSe & Tax Reform RTC (x402)"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

The server marks all 3 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `calculate_rtc_official` (says read-only): 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
- `generate_danfse_rtc` (says read-only): 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.
- `rtc_lookup_official_tables` (says read-only): 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 

## FAQ

### How much does a call cost?

$0.005 in USDC on the Base network.

### Can I try Brazil DANFSe & Tax Reform RTC (x402) free?

Yes, the `/sample` endpoint is free.

### Which taxes does Brazil DANFSe & Tax Reform RTC (x402) calculate?

CBS, IBS and ISS from the Tax Reform, LC 214/2025.

### Is there a plan without crypto?

Yes. Businesses can pay a fixed monthly fee in reais via PIX and use an API key.

### How do I add Brazil DANFSe & Tax Reform RTC (x402) to Claude Code?

Run this command in your terminal: claude mcp add --transport http br-danfse-rtc-x402 https://br-danfse-rtc-x402.architect-x402.workers.dev/mcp

### What are the best alternatives to Brazil DANFSe & Tax Reform RTC (x402)?

The closest alternatives to Brazil DANFSe & Tax Reform RTC (x402) are Brazil Tax & Payroll Engine (x402), Brazil Boleto, DARF & NF-e Key Parser (x402), Brazil NF-e XML Auditor & Key Engine (x402), Calculadora IBS and MCP Nfe Br.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Brazil Tax & Payroll Engine (x402)](https://ai-powered.com/mcp/brazil-tax-and-payroll-engine-x402): Brazil Tax & Payroll Engine (x402) is a freemium MCP server for accounting and tax.
- [Brazil Boleto, DARF & NF-e Key Parser (x402)](https://ai-powered.com/mcp/brazil-boleto-darf-and-nf-e-key-parser-x402): Brazil Boleto, DARF & NF-e Key Parser (x402) is a paid MCP server for accounting and tax.
- [Brazil NF-e XML Auditor & Key Engine (x402)](https://ai-powered.com/mcp/brazil-nf-e-xml-auditor-and-key-engine-x402): Brazil NF-e XML Auditor & Key Engine (x402) is a freemium MCP server for accounting and tax.
- [Calculadora IBS](https://ai-powered.com/mcp/calculadora-ibs): Calculadora IBS is a free MCP server for accounting and tax.
- [MCP Nfe Br](https://ai-powered.com/mcp/mcp-nfe-br): MCP Nfe Br is an open-source MCP server for accounting and tax.
- [FOX NF-e](https://ai-powered.com/mcp/fox-nf-e): FOX NF-e is a paid MCP server for finance and payments.
- [Simulador da Reforma Tributária](https://ai-powered.com/mcp/simulador-da-reforma-tributaria): Simulador da Reforma Tributária is a free MCP server for accounting and tax.
- [MCP Nfse Nacional](https://ai-powered.com/mcp/mcp-nfse-nacional): MCP Nfse Nacional is an open-source MCP server for accounting and tax.

---
Source: https://ai-powered.com/mcp/brazil-danfse-and-tax-reform-rtc-x402
