Koskamo

Retrieve Brazilian company registration details

The agent retrieves the complete or simplified legal registration data for a Brazilian company (CNPJ), including trade name, status, address, and activity codes, sourced from official federal records.

How it works

Read-onlyData and analysis

The agent identifies the target CNPJ number from the user's request. It constructs a GET request to the apipj-mcp endpoint /v1/cnpj/{cnpj}, ensuring the CNPJ is formatted correctly (alphanumeric, with or without punctuation). The agent includes the necessary API key in the Authorization header. It parses the JSON response to extract key fields such as 'razao_social' (trade name), 'situacao_cadastral' (registration status), and address details. The agent verifies the HTTP status code to ensure the request was successful (200 OK) and checks for rate limit headers if necessary. It then formats the data for the user, optionally converting ISO dates to a more readable format if the 'simplified' format was requested.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Retrieve Brazilian company registration details
Look up the registration details for CNPJ 11.378.117/0001-20 using the apipj-mcp server. Provide the company's legal name, current registration status, and main address.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

GET /v1/cnpj/{cnpj} Devolve o documento cadastral de um CNPJ.
Documentação da API de CNPJ: endpoints e erros · apipj

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.