cnpjaberto
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cnpjabertoConsulta o CNPJ 18.236.120/0001-58 e me diz quando foi fundado."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cnpjaberto
Python SDK and Model Context Protocol (MCP) server for cnpjaberto.com.br, the open registry of Brazilian companies (CNPJ). It allows for company lookups, partner graphs, joins by address and contact, CNAE statistics, and national/annual overviews.
pip install cnpjaberto # apenas SDK
pip install cnpjaberto[mcp] # SDK + servidor MCP para Claude Desktop e similaresQuick start with the SDK
from cnpjaberto import Client
with Client() as cnpj: # lê CNPJABERTO_API_KEY do ambiente
empresa = cnpj.lookup("18.236.120/0001-58")
print(empresa["razao_social"])
achados = cnpj.search("nubank", per_page=5)
for h in achados["results"]:
print(h["cnpj"], h["razao_social"])
snap = cnpj.panorama_year(2024)
print(f"{snap['abertas']:,} abertas, {snap['fechadas']:,} fechadas em 2024")Anonymous calls work, subject to public rate limits. For the Pro plan daily quota, generate a key at cnpjaberto.com.br/planos and export it:
export CNPJABERTO_API_KEY=sua_chave_aquiRelated MCP server: brdata-mcp
MCP Server (Claude Desktop, Cursor, Cline)
Install the extra and add this config to your client.
pip install cnpjaberto[mcp]~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cnpjaberto": {
"command": "cnpjaberto-mcp",
"env": { "CNPJABERTO_API_KEY": "sua_chave_aqui" }
}
}
}Restart Claude Desktop. Now you can ask things like:
"Look up CNPJ 18.236.120/0001-58 and tell me when it was founded."
"How many Brazilian companies opened in 2024 vs 2023? Which states grew the most?"
"Find companies where 'Maria Silva' appears as a partner, grouped by state."
"What other companies are registered at the same address as the Magazine Luiza headquarters?"
Exposed Tools
Tool | What it returns | |
| Full record: company name, capital, partners, with | |
| Branches of a headquarters, paginated, optional filter by state (UF) | |
| Search by company name, trade name, or CNPJ digits (minimum 3 chars) | |
| Companies where the person appears as a partner; | |
| Other companies registered at the same address | |
`companies_by_contact(email | ddd+telefone)` | Companies that share the same email or phone number |
| Aggregated statistics for a CNAE (count, top states, top municipalities) | |
| National statistics: top states and CNAEs, capital ranges, age, 10-year history | |
| Annual snapshot: openings and closings, monthly series, MEI share |
Typed errors
from cnpjaberto import Client, NotFoundError, RateLimitError, AuthError
with Client() as cnpj:
try:
cnpj.lookup("00000000000000")
except NotFoundError:
...
except RateLimitError as e:
print("Cota diária:", e.payload)
except AuthError:
...Data source
All data comes from the public CNPJ dump from the Federal Revenue Service, updated monthly. cnpjaberto.com.br ingests, indexes, and serves with sub-second lookups, plus value-added joins (partner graph, shared addresses, CNAE aggregates) covering about 70 million establishments and 67 million companies.
License
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
CNPJ Brazil MCP — Brazilian company-registry (Receita Federal) lookup via
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
MCP server for 3M+ Polish companies — KRS & CEIDG financials, ownership, and industry search.
Remote MCP server to enrich company profiles with structured B2B data and confidence scores.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for querying data on 27 million Brazilian companies from the Federal Revenue, enabling searches by CNPJ, company name, location, and industry. It supports advanced features like partner discovery, sector benchmarking, and similarity analysis.1617 npmMIT
- AlicenseAqualityCmaintenanceAn MCP server for Brazilian company and public procurement data, enabling CNPJ lookup, company search, tender resolution, and more via paid USDC-based API calls.1539 npmMIT
- FlicenseNot gradedqualityBmaintenanceMCP server that provides access to Brazilian public and commercial data, including CNPJ company info, government procurement (PNCP) searches, and FIPE vehicle pricing, with optional alert registration for new tenders.-
- AlicenseNot gradedqualityCmaintenanceMCP server that issues joint federal debt certificates for Brazilian companies from CNPJ. Read-only, hosted, pay-per-use, works with any MCP client.MIT