CNPJ CEP FIPE

CNPJ — company registry

Look up a Brazilian company by its 14-digit CNPJ, or search by name/state/business activity/size. Backed by the Receita Federal do Brasil ("Dados Abertos do CNPJ") monthly open-data dump.

cnpj_lookup (MCP tool) / GET /v1/cnpj/:cnpj (REST)

Returns legal name (razão social), trade name, registration status, primary/secondary CNAE codes, address, contact info, partners (QSA, CPF partially masked per LGPD), company size (porte), and Simples Nacional/MEI flags.

curl "https://api.mcp-dados-br.dev/v1/cnpj/01426461000193" \
  -H "X-API-Key: $KEY"
{
  "cnpj": "01426461000193",
  "razaoSocial": "PROMOFARMA DROGARIA LTDA",
  "nomeFantasia": "...",
  "situacaoCadastral": "Ativa",
  "cnaePrincipal": { "codigo": "4771701", "descricao": "..." },
  "endereco": { "uf": "MG", "municipio": "...", "cep": "36947000", "..." : "..." },
  "socios": [ { "nome": "...", "cpfCnpjMascarado": "***123456**" } ],
  "simplesNacional": { "optante": true, "dataOpcao": "..." },
  "mei": { "optante": false, "dataOpcao": null }
}

cnpj_search (MCP tool) / GET /v1/cnpj/search (REST)

Search by name (prefix match), UF, CNAE, and/or porte — paginated, max 50 results/page. At least one filter is required.

curl "https://api.mcp-dados-br.dev/v1/cnpj/search?name=magazine+luiza" \
  -H "X-API-Key: $KEY"

curl "https://api.mcp-dados-br.dev/v1/cnpj/search?uf=SP&cnae=6201500&limit=20" \
  -H "X-API-Key: $KEY"
ParamTypeNotes
namestringPrefix match against razão social, min 3 chars.
ufstring2-letter state code, e.g. SP.
cnaestringCNAE fiscal principal code.
portestring00/01/03/05 — see below.
pageinteger1-based, default 1.
limitintegerDefault 20, max 50.

Reference codes

porteMeaning
00Não informado
01Micro Empresa
03Empresa de Pequeno Porte
05Demais (Normal/Grande)

Errors

CodeHTTPMeaning
invalid_input400Malformed CNPJ, missing filters, or bad UF.
not_found404CNPJ not in the dataset.
rate_limited429Anonymous per-IP daily cap reached.
payment_required402Monthly API-key quota exhausted.

Source & license

Receita Federal do Brasil, "Dados Abertos do CNPJ" — public open data under Brazil's Open Data Policy (Decreto 8.777/2016). Attribution: "Fonte: Receita Federal do Brasil — Dados Abertos do CNPJ".