# Brazil Tax & Payroll Engine (x402)

> Simples Nacional (Fator R), progressive INSS/IRRF, FGTS & B2B NFS-e tax engine via x402 Base USDC.

- name: io.github.brunopompeo1/br-tax-payroll-calc-x402
- version: 2.7.1
- connection class: unknown (unknown)
- trust: 71/100 flags: duplicate-repo
- quality: 89/100 (good)
- charges per call: the server says so (`` calculate_nfse_withholdings ``, `` calculate_payroll_net_salary ``, `` calculate_simples_nacional_das ``)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fbr-tax-payroll-calc-x402
- tools: https://api.protogrid.dev/v1/servers/io.github.brunopompeo1%2Fbr-tax-payroll-calc-x402/tools

**Not classified yet.** The remote endpoints have not been probed successfully, or the listing has nothing to connect to.

## Connection (mcpServers)

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


## Trust

- hygiene: 80
- liveness: 28
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website -unreachable(1 failures) +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 89/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`: 3 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 2,000 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: 100 (weight 15)

- pass `stability.changes`: 4 tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- 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 2,000 tokens to load them all
- tool set hash: 61dacf4593aa344045cbc629c7cfdac1
- tools last changed: 2026-11-25T12:37:49.777Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.brunopompeo1/br-tax-payroll-calc-x402.svg)](https://protogrid.dev/servers/io.github.brunopompeo1/br-tax-payroll-calc-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 `br_tax_payroll_calc` removed
  - Deterministic Brazilian tax & payroll calculator: Simples Nacional (Anexos I-V + Fator R), progressive INSS/IRRF, FGTS, and B2B NFS-e withholdings (0.008 USDC via x402 on Base).
- 2026-11-25 `calculate_nfse_withholdings` added
  - Calculates the taxes a Brazilian company must withhold when paying a B2B service invoice (NFS-e): IRRF at 1.5% or 1%, CSRF at 4.65% split into PIS, COFINS and CSLL, INSS at 11% on labour-supply services, and ISS when the buyer retains it, applying the BRL 10.00 minimum waivers and exempting Simples Nacional providers from the federal withholdings; it returns the net amount to transfer. Use it in accounts payable before paying a supplier, or on the provider side to predict what will reach the bank. Do not use it for goods (NF-e), for payments to individuals, or to decide the municipality's ISS rate, which you must pass in. Read 'nfseRetentions'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.
- 2026-11-25 `calculate_payroll_net_salary` added
  - Calculates the monthly payroll deductions of one Brazilian salary or pro-labore under the 2025-2026 tables: progressive employee INSS up to the ceiling, IRRF choosing automatically whichever of the legal deductions or the BRL 607.20 simplified discount is cheaper, the resulting net salary and the employer's 8% FGTS deposit. Use it to show an employee or candidate their take-home pay, to compare CLT with pro-labore, or to check a payslip. Do not use it for 13th salary, vacation pay, termination amounts, overtime or benefits, which are not modelled, or for the employer's own 20% INSS and third-party charges, which are not returned. Read 'payrollCalc'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.
- 2026-11-25 `calculate_simples_nacional_das` added
  - Computes the monthly DAS of a Brazilian Simples Nacional company from its revenue of the last 12 months (RBT12) and the month's revenue: it picks the bracket of the chosen anexo, applies the fixed deduction to get the effective rate, and, when you send the 12-month payroll, applies the 28% Fator R rule that moves service companies between Anexo III and Anexo V. It also flags the BRL 3.6 million sublimit and the BRL 4.8 million ceiling. Use it for monthly tax provisioning, pricing a service, or deciding whether raising pro-labore to reach Fator R pays off. Do not use it for Lucro Presumido or Lucro Real companies, for an MEI, whose DAS is a fixed monthly amount, or to file or pay the DAS, which happens on PGDAS-D. Read 'simplesNacional'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.

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

## Remotes

- https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp (streamable-http, auth none, reachable false, uptime30d 0.9411765)

## Packages

_none_

## Tools (3)

- `calculate_nfse_withholdings`: Calculates the taxes a Brazilian company must withhold when paying a B2B service invoice (NFS-e): IRRF at 1.5% or 1%, CSRF at 4.65% split into PIS, COFINS and CSLL, INSS at 11% on labour-supply services, and ISS when the buyer retains it, applying the BRL 10.00 minimum waivers and exempting Simples Nacional providers from the federal withholdings; it returns the net amount to transfer. Use it in accounts payable before paying a supplier, or on the provider side to predict what will reach the bank. Do not use it for goods (NF-e), for payments to individuals, or to decide the municipality's ISS rate, which you must pass in. Read 'nfseRetentions'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.
- `calculate_payroll_net_salary`: Calculates the monthly payroll deductions of one Brazilian salary or pro-labore under the 2025-2026 tables: progressive employee INSS up to the ceiling, IRRF choosing automatically whichever of the legal deductions or the BRL 607.20 simplified discount is cheaper, the resulting net salary and the employer's 8% FGTS deposit. Use it to show an employee or candidate their take-home pay, to compare CLT with pro-labore, or to check a payslip. Do not use it for 13th salary, vacation pay, termination amounts, overtime or benefits, which are not modelled, or for the employer's own 20% INSS and third-party charges, which are not returned. Read 'payrollCalc'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.
- `calculate_simples_nacional_das`: Computes the monthly DAS of a Brazilian Simples Nacional company from its revenue of the last 12 months (RBT12) and the month's revenue: it picks the bracket of the chosen anexo, applies the fixed deduction to get the effective rate, and, when you send the 12-month payroll, applies the 28% Fator R rule that moves service companies between Anexo III and Anexo V. It also flags the BRL 3.6 million sublimit and the BRL 4.8 million ceiling. Use it for monthly tax provisioning, pricing a service, or deciding whether raising pro-labore to reach Fator R pays off. Do not use it for Lucro Presumido or Lucro Real companies, for an MEI, whose DAS is a fixed monthly amount, or to file or pay the DAS, which happens on PGDAS-D. Read 'simplesNacional'. Costs 0.008 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; 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. Deterministic arithmetic at the edge: nothing is stored or filed, no government system is contacted, and the same input always gives the same numbers. Results are estimates for planning and reconciliation, not a substitute for an accountant's sign-off.
