Brazil Tax & Payroll Engine (x402)
io.github.brunopompeo1/br-tax-payroll-calc-x402
MCP server OK 3 tools
Simples Nacional (Fator R), progressive INSS/IRRF, FGTS & B2B NFS-e tax 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-tax-payroll-calc-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-tax-payroll-calc-x402)<a href="https://latlas.dev/en/mcp/io.github.brunopompeo1/br-tax-payroll-calc-x402"><img src="https://latlas.dev/badge/statut/mcp/io.github.brunopompeo1/br-tax-payroll-calc-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-tax-payroll-calc-x402)<a href="https://latlas.dev/en/mcp/io.github.brunopompeo1/br-tax-payroll-calc-x402"><img src="https://latlas.dev/badge/fiche/io.github.brunopompeo1/br-tax-payroll-calc-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-tax-payroll-calc-x402.architect-x402.workers.dev/mcp
- Last result
- OK 28 Nov 2026, 10:43
- Response time
- 253 ms (initialize + tools/list)
- Protocol version
- 2025-06-18
- Announced name
- br-tax-payroll-calc-x402 2.7.1
- Tools
- 3
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 10:43 | OK | 253 ms | 3 |
Exposed tools (3, from tools/list, 28 Nov 2026)
calculate_simples_nacional_das
Estimate the monthly Simples Nacional DAS, bracket and effective rate
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| rbt12 | number | yes | Gross revenue of the 12 months before the assessed month, in BRL, for example 720000. Selects the bracket; above 4800000 the company is outside the Simples and 'alert' says so. |
| monthlyRevenue | number | yes | Revenue of the month being assessed, in BRL. The DAS is this amount times the effective rate. |
| anexo | enum: "I" | "II" | "III" | "IV" | "V" | "auto" | no | Anexo of the activity: I commerce, II industry, III and V services, IV construction, cleaning and security. 'auto' (default) chooses between III and V by Fator R, falling back to V without payroll12m. |
| payroll12m | number | no | Total payroll of the last 12 months, in BRL, including pro-labore and INSS employer charges. Needed for the Fator R; when given it decides between III and V even if anexo says otherwise. |
| aiSummary | boolean | no | When true (the default) the response carries 'aiExecutiveBrief', one Portuguese sentence of at most 35 words with the key amounts, written by an edge model with a deterministic fallback. Set false to skip it when you only need the numbers. |
calculate_payroll_net_salary
Calculate INSS, IRRF, net salary and employer FGTS for one 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| grossSalary | number | yes | Monthly gross salary or pro-labore, in BRL, for example 6500. |
| dependents | integer | no | Number of IRRF dependents; each deducts BRL 189.59 from the tax base. |
| otherDeductions | number | no | Other legal monthly deductions in BRL, such as court-ordered alimony. |
| isProLabore | boolean | no | True for a partner's pro-labore: INSS becomes a flat 11% capped at the ceiling and no FGTS is due. |
| aiSummary | boolean | no | When true (the default) the response carries 'aiExecutiveBrief', one Portuguese sentence of at most 35 words with the key amounts, written by an edge model with a deterministic fallback. Set false to skip it when you only need the numbers. |
calculate_nfse_withholdings
Calculate IRRF, CSRF (PIS/COFINS/CSLL), INSS and ISS withheld on a B2B service invoice
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceAmount | number | yes | Gross amount of the service invoice, in BRL, for example 15000. |
| serviceType | enum: "geral" | "consultoria_ti_contabil" | "limpeza_vigilancia" | no | 'consultoria_ti_contabil' (default) for professional, IT and accounting services: IRRF 1.5% + CSRF 4.65%. 'limpeza_vigilancia' for cleaning, security and labour supply: IRRF 1% + CSRF 4.65% + INSS 11%. 'geral' for other services: IRRF 1.5% only. |
| isSimplesNacional | boolean | no | True when the provider is a Simples Nacional company, which removes IRRF, CSRF and INSS withholding. |
| retainIss | boolean | no | True when the buyer withholds ISS at source, as many municipalities require for out-of-town providers. |
| issRatePct | number | no | Municipal ISS rate in percent, between 2 and 5 by law; values above 5 are capped at 5. Used only when retainIss is true. |
| aiSummary | boolean | no | When true (the default) the response carries 'aiExecutiveBrief', one Portuguese sentence of at most 35 words with the key amounts, written by an edge model with a deterministic fallback. Set false to skip it when you only need the numbers. |
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-tax-payroll-calc-x402.architect-x402.workers.dev/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http br-tax-payroll-calc-x402 https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : br-tax-payroll-calc-x402 ; URL : https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : br-tax-payroll-calc-x402 ; Server URL : https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp ; Create as a plugin{
"mcpServers": {
"br-tax-payroll-calc-x402": {
"url": "https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-tax-payroll-calc-x402": {
"type": "http",
"url": "https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"br-tax-payroll-calc-x402": {
"url": "https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp"
}
}
}{
"mcpServers": {
"br-tax-payroll-calc-x402": {
"httpUrl": "https://br-tax-payroll-calc-x402.architect-x402.workers.dev/mcp"
}
}
}[mcp_servers.br-tax-payroll-calc-x402]
url = "https://br-tax-payroll-calc-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 Tax & Payroll Engine (x402) · L’Atlas · Tested on
[Brazil Tax & Payroll Engine (x402) — L’Atlas](https://latlas.dev/en/mcp/io.github.brunopompeo1/br-tax-payroll-calc-x402)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.