Brazil & Global AI x402 Suite (12 APIs)

v2.7.2
io.github.brunopompeo1/brazil-ai-x402-mcp Checked 2 days ago Published 7 days ago

15 MCP tools, 12 pay-per-call x402 APIs: Brazil tax/NF-e, LATAM IDs, DeFi, web, email

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

brazil_ai_suite_status Suite catalog, prices and payment mode (free)

Free, local discovery call: lists every paid tool of the Global + LATAM AI & x402 Suite with its HTTP method, live endpoint and USDC price on Base, and reports how this MCP server will pay (x402_wallet, b2b_api_key or discovery_only), the paying wallet address and the per-call spend cap. Use it first, before any paid tool, to confirm the price and that a payment method is configured; it is also the right call when a paid tool answered payment_required_x402 or x402_spend_cap_exceeded. Do not use it to fetch business data: it never contacts the APIs, never spends USDC and has no parameters. Read…

base_token_safety_check Pre-trade token safety check (Base/EVM honeypot, tax, liquidity, oracle)

Scores whether an ERC-20 token is safe to buy and sell before a swap: Honeypot.is V2 sell simulation, GoPlus contract scan (honeypot, buy/sell tax, mintable, proxy, hidden owner, blacklist), DexScreener liquidity and pair age, and DefiLlama oracle vs DEX price divergence, folded into verdict (SAFE, CAUTION, DANGER, HONEYPOT), safetyScore 0-100 and a swapEligibility decision with a recommended max slippage. Use it right before an agent swaps, lists or accepts an unfamiliar token on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC or Avalanche. Do not use it for wallet or counterparty screening…

ParameterTypeDescription
address *stringToken contract address (0x + 40 hex chars) or a Base ticker shortcut: WETH, USDC, AERO, VIRTUAL, DEGEN, BRETT or CBBTC. Required.
chainstringChain where the token lives: base (default), ethereum, arbitrum, optimism, polygon, bsc or avalanche. Must match the chain of the address.

evm_wallet_risk_check EVM wallet risk screen (phishing, sanctions, laundering) + live balances

Screens an EVM wallet with GoPlus address security (phishing, sanctions, stealing attacks, mixers, money laundering, malicious contracts created) and reads live native ETH and USDC balances, transaction count and account type (EOA or CONTRACT) over RPC, returning riskVerdict (CLEAN, SUSPICIOUS, MALICIOUS) and riskScore 0-100. Use it before paying, refunding or onboarding a counterparty wallet, or to check a token deployer flagged by base_token_safety_check. Do not use it to evaluate a token contract (use base_token_safety_check). It is a risk signal, not a legal sanctions determination. Read-o…

ParameterTypeDescription
address *stringWallet address to screen (0x + 40 hex chars). Required.
chainstringChain for the GoPlus screen: base (default), ethereum, arbitrum, optimism or polygon.

hyperliquid_perp_funding_radar Hyperliquid perp funding, open interest and squeeze radar

Reads live Hyperliquid perpetual futures data for about 180 markets and returns, per market, mark and oracle price, basis in bps, funding per 1h and 8h and annualized APR %, open interest and 24h volume in USD, a crowding regime (LONG_CROWDED, SHORT_CROWDED, NEUTRAL) and a squeeze bias, plus a market-wide summary and the top 5 long-crowded and short-crowded markets. Use it to time entries or exits, size hedges, or detect crowded positioning before a trade. Do not use it for token contract safety (use base_token_safety_check) or for spot prices only. Read-only: it never places orders. Data is l…

ParameterTypeDescription
symbolstringOptional comma-separated tickers, e.g. 'BTC,ETH,SOL,HYPE'. Case-insensitive. When set, top is ignored.
symbolsarrayOptional array of tickers, e.g. ['BTC','ETH']. Merged with symbol.
topnumberHow many markets to return, ranked by open interest, when no symbol filter is given. Default 15, clamped to 1-50.

ai_crypto_outage_radar Live outage radar for AI, cloud and crypto providers + Base RPC

Checks the public status pages of 10 providers agents depend on (OpenAI, Anthropic, Cloudflare, GitHub, Vercel, Supabase, Base, Coinbase, Solana, Alchemy) and probes the Base mainnet RPC (latest block and latency), returning each provider's indicator, active incidents and a single agentRecommendation: ALL_SYSTEMS_GO, PROCEED_WITH_RETRY_GUARD or USE_FALLBACK_OR_DELAY. Use it before dispatching on-chain transactions or long LLM jobs, or to explain a burst of upstream failures. Do not use it for market data (use hyperliquid_perp_funding_radar) or to monitor your own services. Read-only and live:…

ParameterTypeDescription
categorystringOptional provider group: all (default), ai (OpenAI, Anthropic), cloud (Cloudflare, GitHub, Vercel, Supabase) or crypto (Base, Coinbase, Solana, Alchemy).

agent_guard_sanitize Prompt-injection firewall and PII/secret redaction for untrusted text

Inspects untrusted text before it reaches an LLM: multi-language prompt-injection and jailbreak regex, Base64-smuggled payload decoding and an optional Cloudflare Workers AI Llama Guard 3 semantic pass, then masks emails, credit cards, CPF/CNPJ, API tokens and private keys. Returns isSafe, threatLevel, riskScore, detectedPatterns, the AI verdict and sanitizedText. Use it on scraped pages, inbound emails, tickets, webhooks or tool outputs before inserting them into a prompt or memory, and before logging text that may hold secrets. Do not use it to moderate the agent's own output or as a general…

ParameterTypeDescription
text *stringUntrusted text to inspect (scraped HTML or markdown, email body, support ticket, webhook payload, tool output). Required, plain UTF-8.
deepScanbooleanAlso run the Cloudflare Workers AI Llama Guard 3 semantic classifier. Default true; false gives a faster regex-only verdict.
maskPiibooleanRedact emails, credit cards, CPFs, CNPJs, API tokens and private keys in sanitizedText. Default true.

web_enrichment_clean Fetch a URL and return clean Markdown, tables as JSON and JSON-LD

Fetches a public web page at the Cloudflare edge and strips navigation, scripts and ads, returning clean Markdown, every HTML table as JSON (headers and rows), Schema.org JSON-LD blocks, outgoing links, page metadata and token-compression metrics showing how much context was saved. Use it when an agent needs the readable content or tabular data of a specific URL with far fewer tokens than raw HTML. Do not use it for search (it needs a URL), for pages behind login or heavy client-side rendering, or to decide whether the content is safe; pass untrusted content through agent_guard_sanitize afterw…

ParameterTypeDescription
url *stringAbsolute http(s) URL of the public page to fetch, e.g. https://example.com/pricing. Required.
formatstringjson (default) returns the full structured object; markdown returns only the cleaned Markdown as plain text.

agent_send_email Send a transactional or alert email on behalf of the agent

Sends a real email from the suite's transactional sender: the Markdown body is compiled to responsive HTML (or raw html is sent as-is), with optional plain-text fallback and Reply-To, and the provider message id is returned. Use it when an autonomous workflow must notify a human or a supplier, for example a supplierAlert from br_nfe_xml_auditor or a risk alert. Do not use it for marketing or bulk mail, for messages that need attachments, or to test rendering (every successful call delivers a real message). Side effects: NOT read-only and NOT idempotent; each call sends a new email, so retry on…

ParameterTypeDescription
subject *stringSubject line, plain text. Required.
to *stringRecipient address, or several separated by commas. Required.
htmlstringOptional raw HTML body; overrides the HTML compiled from markdown.
markdownstringBody in Markdown, compiled into responsive HTML. Provide markdown, text or html.
replyTostringOptional Reply-To address so replies go to a human instead of the sender.
textstringOptional plain-text body, used as the text/plain part and as the body when no markdown or html is given.

latam_validate_and_fx Validate LATAM tax IDs and bank accounts (7 countries) + live LATAM FX

Validates and decodes tax IDs and bank accounts from 7 countries with official check-digit algorithms: Mexico RFC, CURP and CLABE (with bank), Argentina CUIT, CUIL and CBU, Chile RUT, Colombia NIT, Peru RUC, Uruguay RUT and Brazil CPF and CNPJ. It auto-detects country and type, accepts one value or a batch of up to 100 items, and can bundle a live FX conversion across USD, EUR, MXN, ARS, CLP, COP, PEN, UYU and BRL in the same call. Use it for supplier or customer onboarding, payout file checks and cross-border invoicing in Latin America. Do not use it for Brazilian company registry data such a…

ParameterTypeDescription
countrystringISO 3166-1 alpha-2 country code. Supplying it narrows auto-detection to that country's standards and avoids an ambiguous match between same-length documents.
fxobjectOptional live FX conversion bundled into the same paid call, useful when the batch feeds a cross-border payout run. Leave it out if you only need validation.
itemsarrayThe identifiers to check, in any mix of countries and types. Anything beyond the 100th item is ignored and reported in warnings.
typestringDocument type, which skips auto-detection: RFC, CURP, CLABE (MX); CUIT, CUIL, CBU (AR); RUT or RUT_CL (CL); RUT_UY (UY); NIT (CO); RUC (PE); CPF, CNPJ (BR). Omit to auto-detect.
valuestringOne identifier to check, with or without punctuation, e.g. 'XAXX010101000' or '20-12345678-9'. Use items instead for batches.

br_nfe_xml_auditor Brazil NF-e XML compressor, access-key decoder and CBS/IBS credit auditor

Turns a Brazilian NF-e or NFC-e XML (SEFAZ layout 4.00) into compact JSON (about 90% fewer tokens), checks totals and CFOP consistency, decodes and Mod-11-validates the 44-digit access key, and audits the Tax Reform CBS/IBS credit (LC 214/2025, official RFB Base V0073): highlighted vs expected tax per item, credit at risk, overcharged tax, 2027 and 2033 projections and a ready-to-send supplierAlert. Use it for accounts-payable intake, input tax-credit recovery and supplier compliance; accepts a single xml, a batch xmls array (up to 25) or direct items without XML. Do not use it to calculate ta…

ParameterTypeDescription
accessKeystringOptional 44-digit Brazilian NF-e access key (Chave de Acesso) to decompose UF, issue date, issuer CNPJ, model, number, and validate Mod-11 check digit.
aiSummarybooleanGenerate a concise accounting/tax audit summary via Cloudflare Workers AI (default: true).
auditRtcCreditbooleanEnable LC 214/2025 CBS/IBS tax credit audit & supplierAlert generation (default: true).
includeItemsbooleanInclude line-item details (NCM, CFOP, quantities, ICMS/IPI/PIS/COFINS) in output (default: true).
itemsarrayOptional direct purchased items array ({ descricao, ncm, cClassTrib, valor, vCBS, vIBS }) for CBS/IBS credit auditing without XML.
referenceYearintegerCalendar year (2026..2033) for expected CBS/IBS rates (default: invoice issue year >= 2026).
supplierEmailstringOptional supplier email to prefill supplierAlert.emailDraft for agent-email-x402 chaining.
xmlstringRaw Brazilian NF-e or NFC-e XML content (<nfeProc> or <NFe>, SEFAZ 4.00 layout) to parse, compress (~90% token savings), and mathematically audit.
xmlsarrayOptional batch array of up to 25 NF-e/NFC-e XML strings for fleet/procurement CBS/IBS credit auditing.

br_danfse_rtc_generate Brazil CBS/IBS/ISS calculator (RFB Base V0073) and DANFSe generator

Calculates the Brazilian Tax Reform taxes on a service (CBS, IBS state and municipal, plus ISS during the 2026-2033 transition) with the official Receita Federal RTC tables (Base V0073: 170 cClassTrib, NCM and NBS mappings, legal reductions of 30%, 50%, 60% and 100%, Simples Nacional Annexes I-V) and renders the printable national DANFSe in HTML, without any Java server. Use it when issuing or pricing a service invoice (NFS-e), simulating the tax burden of a service by year or regime, or finding the cClassTrib for an NCM, NBS or sector. Do not use it to audit tax credits on purchase invoices (…

ParameterTypeDescription
anexoSimplesstringSimples Nacional annex (I to V) used with regime simples_nacional to compute the effective DAS rate.
anointegerCalendar year for LC 214/2025 transition schedule (2026..2033, default: 2026).
cClassTribstringOfficial 6-digit Receita Federal cClassTrib code (Base V0073, e.g. '200046' construction 50%, '200029' health 60%, '200003' basic basket 100%).
discriminacaostringShortcut service description printed on the DANFSe.
fatorRnumberPayroll/revenue ratio (0..1) for Simples Nacional Annex III vs V.
generateHtmlbooleanInclude printable DANFSe HTML in response (default: true).
nbsstringOptional NBS service code for automatic official RFB cClassTrib lookup.
ncmstringOptional NCM code for automatic official RFB cClassTrib & reduction lookup.
prestadorobjectService provider identification, printed on the DANFSe. Required for a document that is meant to be issued or archived.
rbt12numberLast 12-month gross revenue in BRL for Simples Nacional effective DAS rate.
regimestringTax regime (default: 'regime_regular').
servicoobjectThe service line itself. Values supplied here take precedence over their top-level equivalents, so prefer this object when issuing a document and use the flat fields only for a quick calculation.
setorstringSemantic sector alias (e.g. 'construcao_civil', 'saude', 'educacao', 'cesta_basica', 'profissao_intelectual', 'combustiveis').
tomadorobjectService taker identification, printed on the DANFSe and relevant to the buyer's CBS/IBS credit.
valorServiconumberShortcut gross service amount in BRL when no xml or servico object is sent.
xmlstringRaw NFS-e XML (national standard or ABRASF). When given, provider, taker and values are read from it.

br_docs_parser Brazil boleto, DARF/utility slip and NF-e access-key decoder

Validates and decodes Brazilian payment documents: FEBRABAN bank boleto (47-digit digitable line or 44-digit barcode) with bank, amount and due date (including the post-February-2025 due-date factor rollover), tax and utility slips such as DARF, FGTS, IPTU and utility bills (48-digit line, Mod-10 or Mod-11) with segment and amount, and the 44-digit NF-e access key with Mod-11 check. Use it before paying a boleto or tax slip, to extract amount and due date from a code typed or OCR'd by a user, or to sanity-check an NF-e key. Do not use it to parse a full NF-e XML (use br_nfe_xml_auditor) or to…

ParameterTypeDescription
code *stringThe digitable line or barcode, with or without spaces and dots: 47 digits (bank boleto), 48 digits (tax or utility slip), or 44 digits (barcode or NF-e key). Required.
aiSummarybooleanAdd a short Workers AI summary of the document. Default true.
documentTypestringauto (default) detects by length and prefix; force boleto, arrecadacao or nfe_key when a 44-digit code is ambiguous.

br_tax_payroll_calc Brazil Simples Nacional, payroll (INSS/IRRF/FGTS) and NFS-e withholding calculator

Deterministic Brazilian tax calculator with three independent blocks you can combine in one call: simples (Simples Nacional bracket, effective rate, DAS amount and Fator R annex III vs V decision), payroll (progressive INSS, IRRF choosing legal deductions or the simplified discount, net salary and employer FGTS, also for pro-labore) and nfseRetention (B2B service withholdings: IRRF 1.5%, CSRF/PCC 4.65%, ISS and INSS 11%, and net payable). Use it for monthly DAS estimates, salary and pro-labore simulations, and to know how much to withhold when paying a service invoice. Do not use it for Tax Re…

ParameterTypeDescription
aiSummarybooleanAdd a short Workers AI brief. Default true.
nfseRetentionobjectCalculate B2B Brazilian service invoice withholdings (IRRF 1.5%, CSRF/PCC 4.65%, ISS, INSS 11%) and net payable.
payrollobjectCalculate progressive INSS, IRRF (comparing legal deductions vs simplified discount), net salary, and employer FGTS.
simplesobjectCalculate Brazilian Simples Nacional effective tax rate, DAS amount, and Fator R (28% payroll ratio optimization).

br_business_intel Brazil CNPJ KYB dossier, CEP lookup, CPF/CNPJ check and PIX BRCode

Brazilian business toolkit in one call: cnpj returns the Receita Federal company dossier (legal and trade name, status, age, capital, size, legal nature, main CNAE, Simples/MEI option, partner count) with a deterministic B2B risk score and recommendation; cep returns address, IBGE municipality code and area code; documentToValidate checks CPF or CNPJ Mod-11 digits offline; pixGenerate builds a Central Bank EMVCo PIX copy-and-paste code with CRC16; pixDecode parses and checksum-audits a PIX code. Use it for supplier and customer KYB, address enrichment, and creating or checking PIX charges. Do…

ParameterTypeDescription
aiSummarybooleanGenerate an executive B2B compliance summary using Cloudflare Workers AI (default: true).
cepstringBrazilian postal code (CEP, 8 digits) to enrich address, IBGE municipality code, state UF, and area code (DDD).
cnpjstringBrazilian corporate tax ID (CNPJ, 14 digits) to fetch full Receita Federal dossier, QSA partners, tax regime (Simples/MEI), and B2B credit/compliance risk score.
documentToValidatestringCPF (11 digits) or CNPJ (14 digits) to validate mathematical check digits (Mod-11).
pixDecodestringA PIX copy-and-paste string starting with 000201 to parse into EMV fields and verify its CRC16.
pixGenerateobjectGenerate an official Central Bank of Brazil (BCB EMVCo) PIX Copy-and-Paste payload with CRC16-CCITT checksum.

br_fin_calculators Brazil BCB monetary correction, PTAX conversion and Price/SAC loan simulator

Brazilian finance calculators in one call: correction restates a BRL amount between two dates with the official Central Bank SGS series (IPCA, IGPM, INPC, SELIC or CDI); ptax converts BRL, USD, EUR and GBP at the official PTAX closing rate of a date; loan simulates Price (fixed installment) and SAC (constant amortization) schedules with totals and optional month-by-month table. Use it for contract and rent readjustments, judicial updates, official FX for invoices and accounting, and financing comparisons. Do not use it for LATAM currencies other than BRL (use latam_validate_and_fx fx) or for t…

ParameterTypeDescription
aiSummarybooleanAdd a short Workers AI brief. Default true.
correctionobjectOfficial Central Bank of Brazil (BCB SGS) monetary correction using IPCA, IGPM, INPC, SELIC, or CDI.
loanobjectExact Price and SAC loan/financing amortization simulator.
ptaxobjectOfficial Central Bank of Brazil PTAX currency conversion (BRL, USD, EUR, GBP).