cnpjaberto
Officialcnpjaberto
ブラジルの企業登録(CNPJ)のオープンデータベースである cnpjaberto.com.br 用のPython SDKおよび Model Context Protocol (MCP) サーバーです。企業照会、パートナーグラフ、住所や連絡先による結合、CNAE(経済活動分類)統計、国別および年次の概要調査が可能です。
pip install cnpjaberto # apenas SDK
pip install cnpjaberto[mcp] # SDK + servidor MCP para Claude Desktop e similaresSDKのクイックスタート
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")匿名呼び出しは可能ですが、パブリックレート制限の対象となります。Proプランの1日あたりの割り当てを利用するには、cnpjaberto.com.br/planos でキーを生成し、以下のようにエクスポートしてください。
export CNPJABERTO_API_KEY=sua_chave_aquiRelated MCP server: brdata-mcp
MCPサーバー (Claude Desktop, Cursor, Cline)
エクストラをインストールし、クライアントに以下の設定を追加してください。
pip install cnpjaberto[mcp]~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cnpjaberto": {
"command": "cnpjaberto-mcp",
"env": { "CNPJABERTO_API_KEY": "sua_chave_aqui" }
}
}
}Claude Desktopを再起動します。これで以下のような質問ができるようになります:
"CNPJ 18.236.120/0001-58を照会して、設立日を教えて。"
"2024年と2023年を比較して、ブラジルで何社が設立された?どの州が最も成長した?"
"'Maria Silva'がパートナーとして登録されている企業を州ごとにグループ化して探して。"
"Magazine Luizaの本社と同じ住所に登録されている他の企業は?"
公開されているツール
ツール | 戻り値 |
| 完全な登録情報:商号、資本金、パートナー、 |
| 本社の支店一覧(ページネーション対応、UFによるフィルタリング可) |
| 商号、屋号、またはCNPJの数字による検索(最小3文字) |
| 特定の人物がパートナーとして登録されている企業( |
| 同じ住所に登録されている他の企業 |
| 同じメールアドレスまたは電話番号を共有している企業 |
| CNAEの集計統計(件数、上位UF、上位自治体) |
| 国別の統計:上位UFとCNAE、資本金範囲、設立年数、過去10年の履歴 |
| 年次データ:設立数と閉鎖数、月次推移、MEI(個人零細企業)の割合 |
型付きエラー
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:
...データソース
すべてのデータは、連邦歳入庁(Receita Federal)の公開CNPJダンプから取得されており、毎月更新されます。cnpjaberto.com.brは、約7,000万の事業所と6,700万の企業に関するデータをインジェストおよびインデックス化し、サブ秒単位のルックアップと付加価値結合(パートナーグラフ、共有住所、CNAE集計など)を提供します。
ライセンス
MIT。
This server cannot be deployed
Maintenance
Related MCP Connectors
Official remote MCP server for Brazilian company data (CNPJ): lookup, filtered search, contacts and partners with masked CPF. 70M CNPJs, base of Aug 2026; updated monthly, with the base date in every response. https://cnpj.ia.br/?utm_source=glama&utm_medium=listing
CNPJ Brazil MCP — Brazilian company-registry (Receita Federal) lookup via
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
Brazilian company and person data by CNPJ/CPF: registry, partners, tax status, sanctions, lawsuits.
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.1544 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