grid402-mcp
Grid402 MCP exposes 27 tools for verifiable public data, compliance, financial/market data, network intelligence, payments, and cryptographic proof verification.
Check service health and availability across the 25 Grid402 microservices.
Query financial and macro data: forex, crypto spot prices, Selic/CDI/IPCA, holidays, workdays, and global markets/ECB rates.
Look up Brazilian company and address data: CNPJ, CEP, Simples/MEI, CGU sanctions, compliance score, and KYB 360 dossier.
Run global compliance/AML checks: OFAC/UN sanctions, GLEIF LEI identity, and consolidated KYB audit.
Audit network/domain infrastructure: DNS, TLS/SSL certificates, ASN/BGP intelligence, and bundled domain audits.
Extract web pages to clean Markdown, verify B2B email deliverability, and notarize content with SHA-256/ECDSA proofs.
Manage prepaid Session Passes, check balances and spend controls, and verify oracle proof signatures.
Support optional multi-chain x402/USDC payments via transaction hashes or
pass_g402_...tokens.
Provides a Coinbase Developer Platform AgentKit action provider that lets autonomous agents call Grid402 data/network utilities and auto-settle x402 micropayments in USDC on Base.
Provides an AgentKit-based action provider for CrewAI agents to access Grid402 services with M2M auto-settlement.
Provides an AgentKit-based action provider for LangChain agents to access Grid402 services with M2M auto-settlement.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Try It in 10 Seconds (No Signup, No API Key, No Wallet)
Test any endpoint immediately using the built-in Sandbox header (X-Payment: demo, up to 3 requests/day per IP):
curl -s -H "X-Payment: demo" \
"https://grid402.online/api/v1/dossier?cnpj=00000000000191"Example signed response (truncated):
{
"cnpj": "00000000000191",
"legal_name": "BANCO DO BRASIL SA",
"verdict": "APPROVED",
"compliance_score": 100,
"_meta": {
"service_id": "dossier",
"upstream_source": "Receita Federal + CGU CEIS/CNEP + Simples Nacional",
"oracle_wallet": "0xa592625adbceb8e025ac383f1a3fd8ebb6a63f90"
},
"_oracle_proof": {
"algorithm": "secp256k1-sha256",
"signer": "0xa592625adbceb8e025ac383f1a3fd8ebb6a63f90",
"payload_hash": "0x...",
"signature": "0x..."
}
}Add All 27 Tools to Claude Desktop or Cursor (1 Command)
# Claude Desktop (via Smithery)
npx -y @smithery/cli install grid402-mcp --client claude
# Cursor (via Smithery)
npx -y @smithery/cli install grid402-mcp --client cursor
# Or run directly via stdio
npx -y grid402-mcpRelated MCP server: UProc MCP
Ready-to-Use Recipes (Copy and Paste)
Use Case | Stack | File |
CNPJ Compliance 360 + CEP Automation | n8n (no-code workflow) | |
CNPJ Compliance + Pix Session Pass | n8n | |
Claude Desktop / Cursor MCP (27 tools) | Node.js / MCP stdio + HTTP | |
LangChain and CrewAI Tools | Python ( | |
Coinbase CDP AgentKit Auto-Pay | TypeScript and Python | |
ElizaOS Autonomous Character Plugin | TypeScript ( | |
Autonomous x402 Buyer Agent | Node.js / Python |
|
Why Grid402?
Pay-Per-Call HTTP x402 v2 (Gasless Multi-Chain via PayAI): From
0.0050to0.0500 USDCper call with native gasless settlement (PAYMENT-SIGNATURE) on Base, Polygon, Arbitrum (EIP-3009) and Solana (SVM) — no monthly subscriptions or static API keys required.Sub-15ms Prepaid Session Passes (USDC or Pix): Avoid per-request signing latency. Top up once via 6 blockchains (Base, Arbitrum, Polygon, Optimism, Ethereum, Solana) or Brazilian Pix (
R$ 12Starter) and passX-Payment: pass_g402_...with configurable Spend Controls (daily_credit_limit,allowed_endpoints) andIdempotency-Keyreplay safety.Free Teaser Preview on HTTP 402: Every
402 Payment Requiredchallenge includes a real truncatedpreview(such as legal name and city for CNPJ, street/district for CEP, or TLS status for SSL) plussandbox_testinstructions before any payment is settled.Verifiable Oracle Proofs (
_oracle_proof+_meta): Every paid response carries upstream provenance metadata and an ECDSAsecp256k1signature verifiable statelessly viaPOST /api/v1/verify.Zero-DB Architecture: Ultra-lightweight flat-JSON storage with
flock(LOCK_EX)concurrency safety and atomic rewrites (grid402_atomic_write), delivering 99.5% target SLA with ~40ms average latency.
API Catalog (25 Paid Microservices + Free Utilities)
1 credit = 0.0050 USDC (5,000 raw units on Base Mainnet).
Service | Endpoint | Price (USDC / Credits) | Description |
Operational Status |
| Free | Live health, latencies, 30-day uptime and 25 active services |
KYB 360 Dossier + AI Verdict |
|
| RFB CNPJ + Simples/MEI + CGU CEIS/CNEP + deterministic AI verdict ( |
Compliance Score 360 |
|
| 0–100 corporate risk score cross-checking Federal Revenue and CGU |
KYB Global Audit |
|
| Corporate audit combining Brazil CNPJ + OFAC/UN Sanctions + GLEIF LEI |
OFAC / UN Sanctions and AML |
|
| US Treasury OFAC SDN, UN Consolidated Sanctions and Base Web3 AML screening |
Domain Audit Bundle |
|
| Consolidated DNS + SSL/TLS + BGP/ASN security audit in one call |
Market Snapshot |
|
| Macro bundle: Forex + Crypto + Selic/CDI/IPCA + ANBIMA calendar |
Brazil CNPJ Lookup |
|
| Legal name, registration status, CNAE and official Receita Federal data |
Simples Nacional and MEI |
|
| Tax regime classification (Simples Nacional and SIMEI) |
Brazil Sanctions (CEIS/CNEP) |
|
| Administrative penalties and debarment checks via CGU |
Global LEI Identity |
|
| ISO 17442 global legal entity registry via GLEIF (200+ jurisdictions) |
Commercial Forex |
|
| Live USD, EUR and GBP rates to BRL |
Global Markets and ECB FX |
|
| US/EU/UK/BR exchange status and 30+ ECB FX rates |
Crypto Spot Prices |
|
| Live spot prices and 24h change for BTC, ETH, SOL, USDC and BASE |
BCB / IBGE Macro Indicators |
|
| Official Selic, CDI and 12-month IPCA rates |
National Holidays (BR) |
|
| National and ANBIMA/Febraban banking holiday calendar |
ANBIMA Business Days |
|
| Banking workday counting and D+N maturity projection |
Brazil Postal Code (CEP) |
|
| Street, neighborhood, city, state and official IBGE municipality code |
DNS Resolution |
|
| A, AAAA, MX, TXT, NS and CNAME records with query latency |
SSL/TLS Inspector |
|
| Issuer, expiration, remaining days and cipher suite |
ASN and BGP Intelligence |
|
| ASN number, BGP prefix, owner organization and country |
Web-to-Markdown Extractor |
|
| SSRF-hardened HTML-to-Markdown extraction for LLMs and RAG |
B2B Email Verification |
|
| Zero-PII RFC, MX, SPF, DMARC, disposable domain check and 0–100 score |
SHA-256 Notarization |
|
| Cryptographic timestamp and ECDSA proof of existence |
Prepaid Session Pass |
|
| Issue sub-15ms prepaid pass (400 / 1,200 / 6,000 credits) |
Pass Balance and Statement |
| Free | Check remaining credits, Spend Controls and CSV/JSON statement |
Oracle Proof Verifier |
| Free | Stateless mathematical verification of |
Payment Modes
Mode | Header / Flow | Best For | Latency |
Sandbox (Free) |
| Testing, CI/CD, trying endpoints |
|
Session Pass (Prepaid) |
| Production apps, n8n, MCP, high-frequency agents |
|
x402 v2 Gasless |
| Autonomous Web3 agents with wallets | ~1–2s |
On-Chain TxHash |
| Direct wallet transfers | ~1–3s |
Session Pass Packages (https://grid402.online/pass)
Starter:
2.00 USDCorR$ 12(Pix) -> 400 credits (180 days validity)Pro:
5.00 USDCorR$ 29(Pix) -> 1,200 credits (1,000 base + 20% bonus, 180 days validity)Fleet:
20.00 USDCorR$ 115(Pix) -> 6,000 credits (4,000 base + 50% bonus, 365 days validity)
Official recipient wallets:
EVM (Base, Arbitrum, Polygon, Optimism, Ethereum):
0xa592625adbceb8e025ac383f1a3fd8ebb6a63f90Solana Mainnet (SPL USDC):
CSgJyQTwehb3vF2vbsDMdUuBPdcuvx1vdEEhGvVCCF8C
Framework Integrations
1. MCP Server (grid402-mcp + smithery.yaml)
Configure in Claude Desktop or Cursor using a Session Pass (no private key required):
{
"mcpServers": {
"grid402": {
"command": "npx",
"args": ["-y", "grid402-mcp"],
"env": {
"GRID402_SESSION_PASS": "pass_g402_your_token_here"
}
}
}
}Also available via PayAPI Market (https://payapi.market/mcp) and public Streamable HTTP MCP (https://grid402.online/mcp).
2. Coinbase CDP AgentKit (M2M Auto-Settlement)
import { AgentKit, CdpWalletProvider } from "@coinbase/agentkit";
import { Grid402ActionProvider } from "./integrations/agentkit/grid402_action_provider";
const walletProvider = await CdpWalletProvider.configureWithWallet();
const agentKit = await AgentKit.from({
walletProvider,
actionProviders: [new Grid402ActionProvider()]
});Full TypeScript and Python guides: integrations/agentkit/README.md.
3. ElizaOS Plugin (grid402-plugin-elizaos)
import { grid402Plugin } from "grid402-plugin-elizaos";
export const character = {
name: "CryptoComplianceAgent",
plugins: [grid402Plugin],
settings: {
secrets: {
GRID402_PASS_TOKEN: "pass_g402_live..."
}
}
};See integrations/elizaos/README.md.
4. Python SDK / LangChain and CrewAI
pip install grid402from examples.langchain_quickstart import Grid402Client
client = Grid402Client(use_sandbox=True)
forex = client.get_forex()
print("USD/BRL:", forex["rates"]["USD"]["bid"])See examples/langchain_quickstart.py.
Verified Directories and Ecosystem Badges
Repository Structure and Local Tests
├── smithery.yaml # Smithery.ai 1-click MCP manifest
├── mcp/ # Official MCP server package (grid402-mcp, 27 tools)
├── sdk/ # Official JavaScript/TypeScript SDK (npm: grid402)
├── python/ # Official Python SDK (PyPI: grid402)
├── integrations/ # Coinbase CDP AgentKit and ElizaOS plugins
├── examples/ # Ready-to-run n8n, LangChain, Node and Python recipes
├── public_html/ # Production gateway (PHP 8.1+ Zero-DB, x402, OpenAPI, llms.txt)
├── docs/ # Architecture and Base Grants / CDP dossier
└── tests/ # Automated maturity, concurrency, E2E and integration suitesRun the local test suites (PHP 8.1+ and Node.js):
php scripts/verify_storage_integrity.php
php tests/test_maturity_and_m2m_controls.php
php tests/test_concurrency_and_load.php
php tests/test_session_pass_statement.php
php tests/test_agentkit_integration.php
node mcp/test_mcp.mjsNon-Custodial Security and M2M Key Hygiene
Zero Key Custody: The Grid402 gateway never requests or stores client private keys or seed phrases.
Isolated Agent Budgets: When using
GRID402_PRIVATE_KEYingrid402-mcpor AgentKit, always use a dedicated operational wallet funded strictly with your automation budget.Spend Controls via Session Pass: To eliminate private key exposure in agent runtimes, issue a
pass_g402_...token withdaily_credit_limitandallowed_endpoints, and monitor usage viaGET /api/v1/pass/balance.
Dual Licensing
Layer / Directory | License | Scope |
SDKs, MCP Server and Integrations ( | MIT License | Free commercial and open-source use in AI agents, forks and SaaS products |
Gateway and Server Platform ( | Proprietary (All Rights Reserved) | HTTP x402 gateway, ECDSA oracle signer, Session Pass engine, web portal and admin panel |
Underlying Public Data | Public Domain / CC0 / LAI | Official public registries and open IETF network protocols |
Institutional dossier: docs/BASE_GRANTS_AND_CDP_DOSSIER.md · Terms: LICENSE · AI Discovery: public_html/llms.txt.
Community and Contributions
Like what we are building? Give this repository a Star so more AI and automation builders can find it.
Need a new public data endpoint? Open a thread in GitHub Discussions with the upstream source and use case.
Built an n8n, Make, LangGraph or CrewAI template? PRs adding new recipes to
examples/(MIT licensed) are very welcome.
© 2026 Grid402 Network Intelligence.
Available Tools
27 toolsgrid402_asnAInspect
Consulta inteligência de rede BGP, identificando número de ASN, bloco IP alocado, provedor/organização e país de origem (0.0050 USDC / 1 crédito).
Inputs: ip, payment_tx_hash.
grid402_cepAInspect
Consulta a base pública de endereçamento postal brasileiro retornando logradouro, bairro, município, UF e código IBGE oficial (0.0050 USDC / 1 crédito).
Inputs: code (required), payment_tx_hash.
grid402_cnpjBInspect
Consulta dados cadastrais públicos de Pessoa Jurídica da Receita Federal (razão social, nome fantasia, situação cadastral, CNAE, endereço e capital social). Requer 0.0200 USDC (4 créditos).
Inputs: cnpj (required), payment_tx_hash.
grid402_complianceAInspect
Calcula o Compliance Score 360 consolidado (0 a 100) e status de aprovacao de um CNPJ cruzando Receita Federal, CGU e historico (0.0300 USDC / 6 créditos).
Inputs: cnpj (required).
grid402_cryptoBInspect
Consulta preços de mercado spot em tempo real de BTC, ETH, SOL, USDC e BASE em USD e BRL (0.0050 USDC / 1 crédito).
Inputs: payment_tx_hash.
grid402_dnsBInspect
Executa resolução DNS autoritativa de registros A, AAAA, MX, TXT, NS e CNAME para qualquer domínio da internet (0.0050 USDC / 1 crédito).
Inputs: domain (required), payment_tx_hash.
grid402_domain_auditAInspect
Auditoria completa de infraestrutura de domínio (DNS + TLS/SSL + BGP/ASN) em chamada única consolidada (0.0150 USDC / 3 créditos).
Inputs: domain (required), payment_tx_hash.
grid402_email_verifyBInspect
Audita entregabilidade de e-mail B2B estritamente Zero-PII: sintaxe RFC, DNS MX, SPF, DMARC, detecção de domínio descartável (disposable), provedor gratuito e role-based (0.0050 USDC / 1 crédito).
Inputs: email (required), payment_tx_hash.
grid402_extractAInspect
Extrai páginas web públicas HTTP/HTTPS com proteção SSRF e devolve Markdown limpo pronto para LLMs e RAG, incluindo título, descrição e links absolutos (0.0050 USDC / 1 crédito).
Inputs: url (required), max_chars, payment_tx_hash.
grid402_forexBInspect
Consulta cotações fiduciárias oficiais em tempo real de USD, EUR e GBP para BRL com variação percentual diária (0.0050 USDC / 1 crédito).
Inputs: payment_tx_hash.
grid402_get_dossier_360AInspect
Dossiê 360º KYB Premium com Veredito Sintetizado para IA (APPROVED, FLAGGED, REJECTED), score 0-100, Receita Federal (CNPJ), Simples/MEI e Sanções CGU (CEIS/CNEP) em chamada única (0.0500 USDC / 10 créditos).
Inputs: cnpj (required), payment_tx_hash.
grid402_global_marketsBInspect
Calendário de liquidação de bolsas globais (US NYSE/Fed, EU TARGET2, UK LSE, BR B3) e mais de 30 taxas de câmbio de referência do BCE (0.0050 USDC / 1 crédito).
Inputs: base, date, market, payment_tx_hash.
grid402_holidaysBInspect
Consulta o calendário oficial de feriados nacionais e dias sem expediente bancário (ANBIMA e Febraban) com cálculo de feriados móveis (0.0050 USDC / 1 crédito).
Inputs: year, payment_tx_hash.
grid402_indicatorsAInspect
Consulta taxas oficiais Selic meta e diária, CDI anual e diário, IPCA acumulado 12m e mensal do Banco Central e IBGE (0.0050 USDC / 1 crédito).
Inputs: payment_tx_hash.
grid402_kyb_auditBInspect
Auditoria corporativa global KYB em chamada única: Receita Federal CNPJ + Sanções OFAC/ONU + Identidade Global GLEIF LEI (0.0200 USDC / 4 créditos).
Inputs: cnpj (required), payment_tx_hash.
grid402_leiBInspect
Consulta identidade corporativa internacional oficial (ISO 17442) em mais de 200 jurisdições via GLEIF (0.0200 USDC / 4 créditos).
Inputs: lei (required), payment_tx_hash.
grid402_market_snapshotBInspect
Panorama financeiro e macroeconômico consolidado em chamada única: Câmbio + Cripto + Selic/CDI/IPCA + Calendário ANBIMA (0.0150 USDC / 3 créditos).
Inputs: payment_tx_hash.
grid402_notarizeBInspect
Carimbo do tempo criptográfico M2M e prova de existência SHA-256 assinada com ECDSA secp256k1 (0.0050 USDC / 1 crédito).
Inputs: content (required), payment_tx_hash.
grid402_ofacBInspect
Triagem de sanções globais (OFAC SDN / ONU) e risco AML Web3 na Base Mainnet para carteiras 0x, códigos LEI ou entidades (0.0200 USDC / 4 créditos).
Inputs: target (required), payment_tx_hash.
grid402_passBInspect
Emite um Session Pass pré-pago x402 (Starter 2 USDC = 400 créditos, Pro 5 USDC = 1.000 créditos, Fleet 20 USDC = 6.000 créditos; 1 crédito = 0.0050 USDC) ou consulta status via ?status=pass_g402_...
Inputs: status, payment_tx_hash.
grid402_pass_balanceAInspect
Consulta gratuita em tempo real do saldo de créditos, validade e Spend Controls (daily_credit_limit, credits_used_today, allowed_endpoints) de um Session Pass.
Inputs: token.
grid402_sanctionsBInspect
Consulta o Cadastro de Empresas Inidoneas e Suspensas (CEIS) e Cadastro Nacional de Empresas Punidas (CNEP) da CGU para um CNPJ (0.0100 USDC / 2 créditos).
Inputs: cnpj (required).
grid402_simplesAInspect
Consulta o enquadramento de um CNPJ no regime tributario do Simples Nacional e se e Microempreendedor Individual (MEI) (0.0100 USDC / 2 créditos).
Inputs: cnpj (required).
grid402_sslBInspect
Inspeciona e valida o certificado TLS/SSL na porta 443 de um host (emissor, validade, SANs e contagem de dias restantes até expirar) (0.0050 USDC / 1 crédito).
Inputs: host (required), payment_tx_hash.
grid402_summaryBInspect
Consulta o resumo consolidado de saúde e disponibilidade dos 25 micro-serviços do Grid402 (gratuito, sem cobrança x402).
Inputs: no named parameters.
grid402_verifyAInspect
Valida a integridade matematica da prova criptografica de oraculo (_oracle_proof) secp256k1 em uma resposta do Grid402 (gratuito).
Inputs: payload (required).
grid402_workdaysBInspect
Calcula dias úteis financeiros e projeção de vencimentos na convenção ANBIMA (D+0 exclusivo no início e inclusivo no fim) ou verifica se uma data é dia útil bancário (0.0050 USDC / 1 crédito).
Inputs: date, days, end_date, start_date, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Most tools map to a distinct data source (dns, ssl, asn, cep, cnpj, forex, crypto), but there is a cluster of overlapping composite tools: grid402_kyb_audit, grid402_compliance, and grid402_get_dossier_360 all return a consolidated CNPJ risk/approval verdict from partially the same registries, and grid402_ofac vs grid402_sanctions both cover sanctions screening with differing sources. The descriptions do explain the differences (OFAC/ONU/GLEIF vs CGU CEIS/CNEP, credit cost, output shape), which keeps it from being worse than a 3.
All 27 tools share the grid402_ prefix with snake_case identifiers, so the surface is predictable. The only inconsistency is grammatical style: most are bare nouns (cep, cnpj, forex, dns) while a few are verbs or verb phrases (verify, notarize, extract, get_dossier_360), and one mixes naming conventions internally with a numeric token.
27 tools is above the comfortable range and the surface is visibly padded with aggregate-versus-primitive duplicates (domain_audit/dns+ssl+asn, market_snapshot/forex+crypto+indicators+holidays, kyb_audit/compliance/get_dossier_360). Several tools could be collapsed into a parameterized call, so the count is heavier than the underlying domain requires.
The domain implied is Brazilian financial/compliance reference data plus network and web intelligence, and coverage is broad: postal, corporate registry, tax regime, sanctions, LEI, rates, calendar, DNS/TLS/BGP, notarization, extraction, and a full Session Pass lifecycle (issue plus balance/spend controls). Gaps are minor — no explicit pass top-up/revocation, no batch endpoints, and no CPF/individual KYB counterpart to the CNPJ 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
- AlicenseAqualityDmaintenanceA Model Context Protocol server that connects AI assistants to Brazilian public data services, providing access to postal codes, company registrations, bank information, area codes, IBGE data, currency exchange rates, and domain registration status.114MIT
- FlicenseNot gradedqualityNot gradedmaintenanceOfficial UProc Model Context Protocol server that enables AI assistants to reference and make decisions based on public web data.-
- AlicenseNot gradedqualityDmaintenanceMCP server providing 50+ crypto, market intelligence, and AI inference endpoints with x402 pay-per-request micropayments on Base.2Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProduction-grade Model Context Protocol (MCP) server delivering paywalled Web3 micro-services powered by autonomous x402 payment challenges on Base Mainnet.-