cnpjaberto
OfficialClick on "Install 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: mcp-server-brasil
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.1617MIT
- AlicenseAqualityBmaintenanceProvides tools to query Brazilian CNPJ (company registration), CEP (postal codes), and currency exchange rates (USD and EUR) through an MCP server.3MIT
- AlicenseAqualityBmaintenanceAn MCP server for Brazilian company and public procurement data, enabling CNPJ lookup, company search, tender resolution, and more via paid USDC-based API calls.15255MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Brazilian data lookups (Pix codes, CEP, CNPJ) and web rendering tasks (Markdown, screenshots, PDFs) via a paid HTTP API with x402 billing.571MIT
Related MCP Connectors
CNPJ Brazil MCP — Brazilian company-registry (Receita Federal) lookup via
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cnpjaberto/cnpjaberto-py'
If you have feedback or need assistance with the MCP directory API, please join our Discord server