# Brazil Tax & Payroll Engine v2.2 (x402 v2 + Edge AI + Bazaar + MCP) > Deterministic Brazilian accounting & tax calculation engine for ERPs, payroll pipelines, and AI agents: Simples Nacional (Anexos I-V + Fator R 28% rule), progressive INSS/IRRF (Legal vs Simplified comparison), employer FGTS, and B2B NFS-e service invoice withholdings (IRRF 1.5%, CSRF/PCC 4.65%, ISS, INSS 11%). ## Endpoints - **OpenAPI 3.1 Spec (x402scan)**: `GET /openapi.json` - **Free Sample Output**: `GET /sample` - **HTTP x402**: `POST /calc` - **Bazaar / Machine Catalog**: `GET /.well-known/x402` - **MCP Server (JSON-RPC)**: `POST /mcp` (tool name: `br_tax_payroll_calc`) ## Pricing & x402 Payment - **Protocol**: x402 v2 (HTTP 402 Payment Required) - **Network**: Base Mainnet (Chain ID 8453 / eip155:8453) - **Asset**: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) - **Price**: 0.008 USDC per call - **PayTo**: 0x20990fB239296a0A2d923C200Cb1C21187e2dA23 - **B2B Monthly Plan (PIX)**: Send `X-API-Key: bai_...` header (check quota via `GET /usage`)