Brazil CNPJ company registry
io.github.bnovarini/cnpj-mcp
MCP server OK 8 tools
Brazil's open CNPJ registry: filter and count companies by sector, place, size, MEI, partners.
Technical sheet
- Author
- bnovarini (registry namespace)
- Repository
- github.com/bnovarini/cnpj-mcp
- Site
- —
- Version
- 0.1.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://cnpj-mcp.fly.dev/mcp Streamable HTTP
- Tools
- 8
- Categories
- —
- Last updated
- 8 Oct 2026
- Published
- 8 Oct 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 1 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.bnovarini/cnpj-mcp)<a href="https://latlas.dev/en/mcp/io.github.bnovarini/cnpj-mcp"><img src="https://latlas.dev/badge/statut/mcp/io.github.bnovarini/cnpj-mcp.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.bnovarini/cnpj-mcp)<a href="https://latlas.dev/en/mcp/io.github.bnovarini/cnpj-mcp"><img src="https://latlas.dev/badge/fiche/io.github.bnovarini/cnpj-mcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://cnpj-mcp.fly.dev/mcp
- Last result
- OK 28 Nov 2026, 09:18
- Response time
- 1,587 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- cnpj-mcp 1.30.0
- Tools
- 8
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:18 | OK | 1,587 ms | 8 |
Exposed tools (8, from tools/list, 28 Nov 2026)
dataset_info
What data is loaded: source, snapshot month, row counts, field meanings and caveats. Call first if unsure what the tools cover.
No parameters.
search_companies
Find companies/establishments matching filters. Filters (all optional, combined with AND): cnae (CNAE code or prefix, e.g. '4711' or '47', list ok; add include_secondary to also match secondary activities), cnae_secao (letter A-U), uf, municipio (name as in Receita, accents ignored), municipio_codigo, situacao (ativa, baixada, suspensa, inapta, nula), matriz_only, porte (micro = ME, pequeno = EPP, demais, nao_informado), natureza_juridica (code prefix like '2062' or text like 'sociedade limitada'), capital_min/capital_max (BRL), opened_from/opened_to (data_inicio_atividade, YYYY-MM or YYYY-MM-DD), closed_from/closed_to (data da baixa), mei, simples (true/false), name_contains (razao social or nome fantasia; 3-256 characters and uf required), cep, partner_name (a partner's name contains this text). Returns up to 100 rows per page, ordered by opening date (newest first) unless order_by is capital_social or razao_social. Use count_companies for 'how many' questions. Set include_contacts to add email, phones, full address and a registry_contact_quality block (0-100 score of how likely the REGISTERED email/phone from Receita is a real direct contact, with the signals behind it; it says nothing about the website) and, when the company's own website was crawled, a separate website_contacts block (WhatsApp, phones, emails, social profiles found on its public pages, each with source_url). A whatsapp_business block appears only when a WhatsApp Business account was found on one of the…
| Parameter | Type | Required | Description |
|---|---|---|---|
| cnae | array<string> | null | no | |
| cnae_secao | string | null | no | |
| include_secondary | boolean | no | |
| uf | string | null | no | |
| municipio | string | null | no | |
| municipio_codigo | string | null | no | |
| situacao | string | null | no | |
| matriz_only | boolean | no | |
| porte | string | null | no | |
| natureza_juridica | string | null | no | |
| capital_min | number | null | no | |
| capital_max | number | null | no | |
| opened_from | string | null | no | |
| opened_to | string | null | no | |
| closed_from | string | null | no | |
| closed_to | string | null | no | |
| mei | boolean | null | no | |
| simples | boolean | null | no | |
| name_contains | string | null | no | |
| cep | string | null | no | |
| partner_name | string | null | no | |
| order_by | string | no | |
| include_contacts | boolean | no | |
| min_contact_score | integer | string | null | no | |
| limit | integer | no | |
| offset | integer | no |
count_companies
Count companies or establishments, optionally grouped by one or two fields. Filters (all optional, combined with AND): cnae (CNAE code or prefix, e.g. '4711' or '47', list ok; add include_secondary to also match secondary activities), cnae_secao (letter A-U), uf, municipio (name as in Receita, accents ignored), municipio_codigo, situacao (ativa, baixada, suspensa, inapta, nula), matriz_only, porte (micro = ME, pequeno = EPP, demais, nao_informado), natureza_juridica (code prefix like '2062' or text like 'sociedade limitada'), capital_min/capital_max (BRL), opened_from/opened_to (data_inicio_atividade, YYYY-MM or YYYY-MM-DD), closed_from/closed_to (data da baixa), mei, simples (true/false), name_contains (razao social or nome fantasia; 3-256 characters and uf required), cep, partner_name (a partner's name contains this text). group_by options: uf, municipio, cnae_principal, cnae_divisao, cnae_secao, natureza_juridica, porte, situacao, ano_abertura, mes_abertura, ano_baixa, mes_baixa, mei, simples, matriz_filial, motivo_situacao. unit='estabelecimentos' (default) counts every CNPJ incl. filiais; unit='empresas' counts companies (matriz only). metric='sum_capital' sums declared capital social (BRL, companies only). Examples: MEIs opened per month in a state, active agro companies per municipality, closures by year.
| Parameter | Type | Required | Description |
|---|---|---|---|
| group_by | array<string> | null | no | |
| unit | string | no | |
| metric | string | no | |
| cnae | array<string> | null | no | |
| cnae_secao | string | null | no | |
| include_secondary | boolean | no | |
| uf | string | null | no | |
| municipio | string | null | no | |
| municipio_codigo | string | null | no | |
| situacao | string | null | no | |
| matriz_only | boolean | no | |
| porte | string | null | no | |
| natureza_juridica | string | null | no | |
| capital_min | number | null | no | |
| capital_max | number | null | no | |
| opened_from | string | null | no | |
| opened_to | string | null | no | |
| closed_from | string | null | no | |
| closed_to | string | null | no | |
| mei | boolean | null | no | |
| simples | boolean | null | no | |
| name_contains | string | null | no | |
| cep | string | null | no | |
| partner_name | string | null | no | |
| order | string | no | |
| limit | integer | no |
get_company
One company by CNPJ (14 digits, with or without punctuation; or the 8-digit root to get the matriz): registration, company data, Simples/MEI, address and contacts, secondary CNAEs, partners (with names), and how many establishments the company has.
| Parameter | Type | Required | Description |
|---|---|---|---|
| cnpj | string | yes |
list_partners
Partners (socios) of one company by CNPJ root or full CNPJ: names, type, role (qualificacao), entry date, age band. CPFs are masked by Receita. faixa_etaria: 1 = 0-12, 2 = 13-20, 3 = 21-30, 4 = 31-40, 5 = 41-50, 6 = 51-60, 7 = 61-70, 8 = 71-80, 9 = over 80, 0 = not applicable.
| Parameter | Type | Required | Description |
|---|---|---|---|
| cnpj | string | yes |
search_partners
Find the companies a person or entity is a partner of, by name. Exact (accent-insensitive, case-insensitive) match on the partner name by default; set contains=true for a substring match (uf required). Optionally narrow with cpf_middle (the 6 digits Receita publishes, e.g. '240659') because the same name can belong to different people. Returns company name, status and role.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | |
| contains | boolean | no | |
| cpf_middle | string | null | no | |
| uf | string | null | no | |
| limit | integer | no | |
| offset | integer | no |
companies_at_address
Establishments registered at one address, by CEP (8 digits), optionally narrowed by street text, number, municipio or uf. Use it to find companies sharing an address.
| Parameter | Type | Required | Description |
|---|---|---|---|
| cep | string | null | no | |
| logradouro_contains | string | null | no | |
| numero | string | null | no | |
| municipio | string | null | no | |
| uf | string | null | no | |
| situacao | string | null | no | |
| limit | integer | no | |
| offset | integer | no |
lookup_codes
Look up Receita's code tables by text or code. kind: cnae (activity), natureza_juridica (legal form), municipio, motivo (reason for status), qualificacao (partner role), pais. CNAE text returns ranked candidates using exact descriptions, curated everyday aliases, word matches and spelling suggestions. Read match_type, match_note and every official description; ambiguous terms are not an automatic classification. Numeric codes/prefixes keep the original lookup. Other tables use literal text. Use this before sector or municipio filtering.
| Parameter | Type | Required | Description |
|---|---|---|---|
| kind | string | yes | |
| text | string | yes | |
| limit | integer | no |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://cnpj-mcp.fly.dev/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http cnpj-mcp https://cnpj-mcp.fly.dev/mcpCustomize > Connectors > + Add > Add custom connector ; Name : cnpj-mcp ; URL : https://cnpj-mcp.fly.dev/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : cnpj-mcp ; Server URL : https://cnpj-mcp.fly.dev/mcp ; Create as a plugin{
"mcpServers": {
"cnpj-mcp": {
"url": "https://cnpj-mcp.fly.dev/mcp"
}
}
}{
"mcpServers": {
"cnpj-mcp": {
"type": "http",
"url": "https://cnpj-mcp.fly.dev/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"cnpj-mcp": {
"url": "https://cnpj-mcp.fly.dev/mcp"
}
}
}{
"mcpServers": {
"cnpj-mcp": {
"httpUrl": "https://cnpj-mcp.fly.dev/mcp"
}
}
}[mcp_servers.cnpj-mcp]
url = "https://cnpj-mcp.fly.dev/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Brazil CNPJ company registry · L’Atlas · Tested on
[Brazil CNPJ company registry — L’Atlas](https://latlas.dev/en/mcp/io.github.bnovarini/cnpj-mcp)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.