brazil-ai-suite
One-line summary: This MCP server exposes x402-paid Brazilian fiscal/fintech and AI-safety/web tools, plus free status discovery, for autonomous agents.
Check all services, endpoints, live USDC prices, and current payment mode.
Audit/compress NF-e/NFC-e XML and decode/validate 44-digit NF-e access keys.
Parse FEBRABAN boletos, DARF/FGTS/IPTU guias, barcodes, and NF-e keys.
Calculate Simples Nacional/Fator R, INSS/IRRF/FGTS payroll, and NFS-e B2B withholdings.
Fetch CNPJ KYB dossiers, CEP/IBGE data, validate CPF/CNPJ, and generate/decode PIX EMVCo payloads.
Run BCB monetary correction, PTAX FX conversion, and Price/SAC loan simulations.
Scrape URLs into clean Markdown, JSON tables, Schema.org JSON-LD, and compression metrics.
Detect prompt injection and mask PII/secrets in untrusted text.
Paid calls require x402 wallet or B2B API key; without credentials it stays discovery-only.
Provides tools for generating and reading PIX EMVCo payloads with CRC16 validation, and supports PIX-based B2B payment/API-key workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@brazil-ai-suite Audite este XML de NF-e e confira os cálculos, CFOP e a chave de acesso"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Global + LATAM AI & x402 API Suite — 10 APIs Serverless para Agentes de IA (x402 + MCP)
English (README.en.md) | Español (README.es.md) | Gateway Unificado (api.brunopompeo.com.br) | Guia B2B (PIX / API Key) | Catálogo JSON | llms.txt
Conjunto de 10 APIs serverless em produção na borda Cloudflare (10–30 ms na América Latina), projetadas para agentes autônomos de IA, fintechs, escritórios de contabilidade, ERPs e automações (n8n / LangChain / Make).
Gateway Unificado + 10 Subdomínios Próprios: Acesse tudo em
https://api.brunopompeo.com.brou diretamente em cada subdomínio dedicado (*.brunopompeo.com.br).Liquidação nativa x402 v2 na rede Base (USDC): Zero cadastro, zero assinatura mensal — compatível com Coinbase CDP Facilitator (e fallback automático PayAI), listada em x402-list.com, 402 Index, PayAPI Market, x402scan.com, Wafermap, Glama Connectors e Official MCP Registry.
Servidor MCP Unificado em 1 comando: Conecte todas as 10 ferramentas no Claude Desktop, Cursor, VS Code ou Windsurf via
npx -y github:brunopompeo1/brazil-ai-fiscal-apis-x402.Amostra gratuita em cada API: Chame
GET /sampleem qualquer serviço para inspecionar o payload real sem custo antes de pagar.
Global High-Volume Agent Tools (3 APIs)
Serviço | O que resolve na prática | Endpoint Pago (x402) | Preço (Base USDC) | Amostra Grátis |
1. Agent Guard Firewall | Detecta prompt injection (Llama Guard 3 + heurística + Base64) e mascara dados sensíveis (CPF, CNPJ, chaves, e-mails) antes do LLM |
|
| |
2. Web Enrichment | Converte qualquer página HTML pesada em Markdown limpo, tabelas JSON e JSON-LD com até 85% de economia de tokens |
|
| |
3. Agent Email | Gateway transacional pay-per-call sem mensalidade SaaS: compila Markdown em HTML responsivo com modo |
|
|
Related MCP server: Brazilayer MCP Server
LATAM & Brazil Fintech / Fiscal Suite (7 APIs)
Serviço | O que resolve na prática | Endpoint Pago (x402) | Preço (Base USDC) | Amostra Grátis |
4. LATAM Business & FX (NOVO v2.5) | Valida e decodifica documentos fiscais/bancários de 7 países (MX RFC/CURP/CLABE, AR CUIT/CUIL/CBU, CL RUT/RUN, CO NIT, PE RUC, UY RUT, BR CPF/CNPJ) em lote + câmbio LATAM em tempo real ( |
|
| |
5. Auditor XML NF-e & Crédito CBS/IBS (v2.6) | Comprime XML SEFAZ 4.00 (~90% menos tokens), audita crédito tributário CBS/IBS (Compras & Frota, lote |
|
| |
6. Calculadora RTC Oficial RFB (V0073) & DANFSe (v2.6) | Sem servidor Java 21/Spring Boot: 170 |
|
| |
7. Leitor de Boletos & Guias BR | Valida e decodifica Boletos FEBRABAN (47/44 dígitos, fator pós-22/02/2025), guias DARF/FGTS/IPTU (48 dígitos) e chaves NF-e |
|
| |
8. Motor Tributário & Folha BR | Calcula Simples Nacional (Anexos I–V + otimização Fator R 28%), INSS/IRRF + FGTS e retenções B2B de NFS-e |
|
| |
9. Business Intel CNPJ & PIX | Dossiê completo de CNPJ (QSA, Simples/MEI, score de risco B2B), Geo-CEP IBGE, validador CPF/CNPJ e PIX EMVCo CRC16 |
|
| |
10. Calculadoras Banco Central | Correção monetária oficial (IPCA, IGP-M, INPC, Selic, CDI via SGS), câmbio PTAX oficial (BRL/USD/EUR/GBP) e simulador Price/SAC |
|
|
Receita Pronta: 4 Agentes da Reforma Tributária (Zero Servidor Java)
Guia Copy-Paste Completo (Compras, Medição/Construção 50%, Frota em Lote e Faturamento XML→DANFSe→E-mail):
docs/RECEITA_4_AGENTES_REFORMA_TRIBUTARIA.mdScript Executável:
node examples/rtc-4-agents-workflow.mjs(funciona grátis via/tablese/sample, ou ao vivo comB2B_API_KEY/ x402)
Kit "Copie e Cole" para Produção (examples/)
n8n Workflow importável (Guard + Web + LATAM):
examples/n8n-workflow-x402-latam.jsonLangChain / Vercel AI Tool pronta:
examples/langchain-x402.tsCliente TypeScript x402 minimalista (
fetch):examples/typescript-x402-client.tsCliente Python para Agentes:
examples/python-x402-client.pyExecução real end-to-end:
node examples/execute.mjs(amostra gratuita) ounode examples/execute.mjs --execute(chamada paga real).
Como usar agora mesmo
Descobrir não executa uma ferramenta paga. Sem credenciais, o conector inicia em discovery_only: lista todas as ferramentas, mas chamadas reais retornam HTTP 402. Configure localmente X402_PRIVATE_KEY (carteira com USDC na Base) ou BRAZIL_AI_API_KEY (plano B2B).
1. Servidor MCP Unificado (Claude Desktop, Cursor, VS Code, Windsurf)
Cole no seu claude_desktop_config.json ou .cursor/mcp.json:
{
"mcpServers": {
"latam-brazil-ai-x402": {
"command": "npx",
"args": ["-y", "github:brunopompeo1/brazil-ai-fiscal-apis-x402"],
"env": {
"X402_PRIVATE_KEY": "",
"X402_MAX_USDC_PER_CALL": "0.05"
}
}
}
}2. Teste rápido via curl
# Amostra gratuita da API LATAM (MX, AR, CL, CO, PE, UY, BR + FX)
curl -s https://latam.brunopompeo.com.br/sample
# Handshake x402 v2 no Gateway Unificado (retorna HTTP 402 com PAYMENT-REQUIRED)
curl -i -X POST https://api.brunopompeo.com.br/latam \
-H "Content-Type: application/json" \
-d '{"rfc":"XAXX010101000","cuit":"30-50001091-2","ruc":"20131312955","fx":{"amount":100,"from":"USD","to":["MXN","ARS","BRL"]}}'3. Planos B2B para Empresas e Escritórios (PIX / API Key)
Prefere pagar mensalidade fixa em Reais via PIX com API Key dedicada (X-API-Key) sem carteira cripto? Confira docs/GUIA_EMPRESAS_B2B.md.
Descoberta Automática para Agentes
Gateway Hub:
https://api.brunopompeo.com.br/llms.txtOpenAPI 3.1:
https://api.brunopompeo.com.br/openapi.jsonCatálogo JSON:
catalog.json|https://api.brunopompeo.com.br/catalog.json
Available Tools
8 toolsagent_guard_sanitizeBInspect
Hybrid Edge AI firewall (@cf/meta/llama-guard-3-8b + multi-language regex + Base64 decoder) that detects prompt injection and masks corporate PII/secrets ($0.020 USDC via x402 on Base).
Inputs: text (required), maskPii, deepScan.
brazil_ai_suite_statusAInspect
FREE: Lists all 7 Brazil AI & x402 Suite microservices, live USDC prices on Base, endpoints, and current MCP client payment mode (x402 wallet, B2B API Key, or discovery-only).
Inputs: no named parameters.
br_business_intelBInspect
Brazilian Corporate CNPJ KYB Dossier (QSA partners, Simples/MEI, B2B Risk Score), IBGE Geo-CEP lookup, CPF/CNPJ Mod-11 validator, and Central Bank PIX BRCode (EMVCo + CRC16) generator/decoder ($0.010 USDC via x402 on Base).
Inputs: cep, cnpj, aiSummary, pixDecode, +2 more.
br_docs_parserBInspect
Brazilian FEBRABAN Bank Boleto (47/44), Tax/Utility Slip DARF/FGTS/IPTU (48/44), and NF-e Access Key (44) validator & decoder with post-2025 due date engine ($0.008 USDC via x402 on Base).
Inputs: code (required), aiSummary, documentType.
br_fin_calculatorsBInspect
Official Central Bank of Brazil (BCB) IPCA/IGPM/Selic/CDI monetary correction, PTAX currency conversion, and Price/SAC loan simulator ($0.005 USDC via x402 on Base).
Inputs: loan, ptax, aiSummary, correction.
br_nfe_xml_auditorBInspect
Brazilian NF-e/NFC-e XML-to-JSON compressor (~90% token savings), mathematical & CFOP tax auditor, and 44-digit Access Key Mod-11 decoder ($0.010 USDC via x402 on Base).
Inputs: xml, accessKey, aiSummary, includeItems.
br_tax_payroll_calcAInspect
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).
Inputs: payroll, simples, aiSummary, nfseRetention.
web_enrichment_cleanBInspect
Scrapes any URL at the Cloudflare Edge and returns clean Markdown, structured HTML tables as JSON, Schema.org JSON-LD, and token compression metrics ($0.002 USDC via x402 on Base).
Inputs: url (required), format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a different domain (status, NF-e XML, documents/boleto, web scraping, payroll tax, KYB/PIX, BCB financial math, security sanitization), so most selections are obvious. However, the 44-digit NF-e access key decoder appears in both br_nfe_xml_auditor and br_docs_parser, and CPF/CNPJ Mod-11 validation lives in br_business_intel while similar document validation lives in br_docs_parser, creating a few boundary collisions.
Six tools share a 'br_' domain prefix but the suffixes mix verb and noun forms (_auditor, _parser, _calc, _calculators, _sanitize, _clean), and three tools break the prefix pattern entirely (brazil_ai_suite_status, web_enrichment_clean, agent_guard_sanitize). The set is still readable and roughly domain-clustered, but there is no single predictable pattern.
Eight tools map cleanly onto the advertised seven microservices plus a status/discovery endpoint. Nothing is redundant padding and nothing essential appears merged away; the scope is compact and each tool earns its place.
The suite covers the main Brazilian business/finance surface—document parsing and validation, NF-e auditing, tax/payroll, credit-risk KYB, PIX generation/decoding, BCB indices, and edge scraping/security. Minor gaps remain (PIX decoding is bundled rather than explicit, no PDF/image document OCR, no standalone CEP or CPF utilities), but agents can reach these through existing tools.
Maintenance
Related MCP Connectors
Brazilian public data API for AI agents. BCB, IBGE, CVM, B3, compliance. x402 payments on Base.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Brazil CNPJ, CEP, Selic/IPCA/PTAX, holidays, banks/ISPB for agents. Pay per call in USDC (x402).
Related MCP Servers
- AlicenseBqualityCmaintenanceConnects AI agents to Brazilian tax compliance data (CNPJ, CPF, NFe, SPED, eSocial) and provides tools for due diligence, risk scoring, and tax regime comparison.44279 PyPI437MIT

Brazilayer MCP Serverofficial
AlicenseBqualityBmaintenanceEnables AI agents to access Brazilian public data including company registry and official sanction lists via MCP tools, with pay-per-call via USDC.45MIT
brasilnfe-mcpofficial
FlicenseNot gradedqualityDmaintenanceMCP server that exposes Brazilian tax infrastructure as tools, resources, and prompts, enabling AI agents to emit and manage fiscal documents (NF-e, NFC-e, NFS-e, CT-e, MDF-e, DC-e) through natural language.-- AlicenseBqualityCmaintenanceEnables AI assistants and automation tools to query and analyze Brazilian fiscal data, including CNPJ, Simples Nacional, NF-e, NFS-e, SPED, eSocial, tax regime comparison, and supplier risk assessment without requiring API keys.44MIT