Purpose
This project provides a collection of Brazilian tax and financial APIs for AI agents, ERP systems, fintech companies, accounting firms, and automation tools (such as n8n, LangChain, Make). It contains 12 serverless APIs deployed on the Cloudflare edge network, claiming latency of 10–30 ms in Latin America.
Main capabilities
- Brazilian tax suite (7 APIs): covers NF-e XML processing, FEBRABAN bills (Boletos), Simples Nacional/Fator R, CNPJ/PIX queries, and Brazilian central bank data.
- Global high-capacity proxy and DeFi tools (5 APIs): includes DeFi simulation (Honeypot.is V2, GoPlus, DexScreener liquidity, DefiLlama oracle deviation, covering 7 EVM networks), wallet risk/balance queries, and Hyperliquid perpetual contract funding rate monitoring (about 180 markets), squeeze radar, and infrastructure instability radar for 10 key AI/crypto/RPC providers.
- Unified gateway: all APIs are accessible via
https://api.brunopompeo.com.bror individual subdomains (*.brunopompeo.com.br). - MCP server: provides a unified MCP server supporting Claude Desktop, Cursor, VS Code, and Windsurf, connected via
npx -y @brunopompeo/brazil-ai-x402-mcpornpx -y github:brunopompeo1/brazil-ai-fiscal-apis-x402, integrating 14 paid tools and 1 free tool. - x402 v2 payments: native settlement in USDC on the Base network, no registration or monthly subscription required, compatible with Coinbase CDP Facilitator (automatic fallback to PayAI).
- Free trial: each API provides
GET /samplefree samples; 11/12 APIs support 3 full calls per IP per day (via theX-Free-Trial: 1header or the MCP parameterfree_trial: true), except agent-email. - Alternative payment methods: supports credit cards, Pix, B2B monthly plans (7 days free), RapidAPI subscriptions (4 APIs), and Apify pay-per-event (3 Actors). Prepaid credits start at 1 USD.
Usage
- MCP integration: configure the MCP server in
claude_desktop_config.jsonor.cursor/mcp.json. Without credentials it entersdiscovery_onlymode, listing 15 tools but actual calls return HTTP 402. You need to setX402_PRIVATE_KEY(a wallet containing USDC on the Base network) orBRAZIL_AI_API_KEY(B2B plan). - curl testing: you can call API endpoints directly, using the
X-Free-Trial: 1header for the free trial. - B2B plan: obtain a dedicated API Key via monthly PIX payment (
X-API-Key), no crypto wallet required, seedocs/GUIA_EMPRESAS_B2B.mdfor details. - Code examples: provides n8n workflow JSON, LangChain/Vercel AI tools, TypeScript/Python x402 clients, and end-to-end execution scripts (
node examples/execute.mjsfree samples,--executepaid calls). - Discovery endpoint:
/llms.txt、/openapi.json、/catalog.jsonFor automatic discovery by agents.
Applicable scenarios
- AI agents autonomously call Brazilian fiscal and tax data or DeFi monitoring.
- ERP and accounting software integrate compliance features such as NF-e and Simples Nacional.
- Fintech companies perform CNPJ/PIX validation or central bank data queries.
- Embed payment and data retrieval in automated workflows (n8n, LangChain).
- DeFi traders or monitoring systems obtain real-time liquidity, oracle deviation, and funding rate signals.
Limitations
- Some APIs (such as agent-email) do not offer a free trial.
- Without credentials, only tool discovery is possible; actual calls require payment.
- Pricing, specific routes, and x402 contract details are not fully listed in the materials; refer to the official documentation.
- The free trial is 3 times per day per IP and may be subject to abuse limits.
- The project is a third-party open-source repository; its functionality and stability must be verified independently.