Brazilayer: Brazilian Public Data
LocalAbout Brazilayer: Brazilian Public Data
Brazilayer's pedagio-mcp exposes Brazilian CNPJ company data and free trust checks as MCP tools. Paid API calls use x402 with USDC on Base from a configured wallet.
Key features
- 01Query company registry records
- 02List company partners
- 03Search companies and partners
- 04Retrieve a sample record
- 05Check service, skill, and agent trust
- 06Pay API requests with USDC on Base
Use cases
- 01Look up a Brazilian company's registry data
- 02Search companies by partner or query
- 03Check trust ratings before paying or delegating
MCP support
The server exposes CNPJ queries and trust checks to MCP clients as tools. Paid data tools call the public API and use x402 to settle with USDC on Base via the configured wallet.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEpedagio-mcp: servidor MCP
Distribuição pública: este servidor é publicado em github.com/brazilayer/mcp (instalação para usuários finais lá). Esta pasta é a fonte interna; alterações aqui devem ser espelhadas no repo público.
Cliente fino da API pública do pedagio (SPEC §8): expõe os dados de CNPJ como ferramentas MCP pagáveis via x402. Sem acesso direto ao banco: cada ferramenta chama a API HTTP e paga com USDC (rede Base) usando a carteira configurada.
Ferramentas
| Ferramenta | Endpoint | Preço |
|---|---|---|
cnpj_consultar_empresa | GET /v1/cnpj/empresa/{cnpj} | US$ 0.005 |
cnpj_listar_socios | GET /v1/cnpj/empresa/{cnpj}/socios | US$ 0.005 |
cnpj_consultar_empresa_completo | GET /v1/cnpj/empresa/{cnpj}/completo | US$ 0.01 |
cnpj_buscar_empresas | GET /v1/cnpj/busca | US$ 0.01 |
cnpj_buscar_por_socio | GET /v1/cnpj/socio/busca | US$ 0.02 |
cnpj_obter_amostra | GET /v1/cnpj/amostra | grátis |
trust_check | Trust rating of any x402 service before paying it (Agent Economy Report, free) | free |
skill_check | Trust rating of any agent skill before installing it (Agent Economy Report, free) | free |
conduct_check | Conduct rating of any AI agent or framework before delegating to it (Agent Economy Report arena, free) | free |
Instalação (Claude Code)
git clone https://github.com/aladaf/pedagio && cd pedagio/mcp && npm install
claude mcp add pedagio -e BRAZILAYER_PRIVATE_KEY=0xSUACHAVE -- npx tsx /caminho/para/pedagio/mcp/servidor.ts
Instalação (Claude Desktop / Cursor)
{
"mcpServers": {
"pedagio": {
"command": "npx",
"args": ["tsx", "/caminho/para/pedagio/mcp/servidor.ts"],
"env": {
"BRAZILAYER_PRIVATE_KEY": "0xCHAVE_DA_CARTEIRA_QUE_PAGA"
}
}
}
}
Variáveis
BRAZILAYER_API_URL: defaulthttps://api.brazilayer.comBRAZILAYER_PRIVATE_KEY: chave privada (0x…) da carteira que paga as chamadas (precisa de USDC na rede Base; na testnet, USDC de faucet na Base Sepolia). Sem ela, apenascnpj_obter_amostrafunciona; as demais explicam o 402.
⚠️ A chave configurada aqui assina pagamentos reais. Use uma carteira dedicada com saldo pequeno.
Escolha da integração x402↔MCP (SPEC §8)
Avaliado em 2026-07-20: adotados os pacotes oficiais @x402/fetch + @x402/evm
(v2.19), que envelopam o fetch com o fluxo 402→assinatura→retry, e o servidor MCP usa
esse fetch pagante em cada ferramenta. Alternativas de bridge MCP de terceiros foram
descartadas por serem menos mantidas que o SDK oficial.
Building on the agent economy? We publish the Agent Economy Report, a free weekly, data-generated index of the machine-to-machine economy (x402 services, on-chain settlement, MCP and paid-web adoption). One e-mail a week.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.