apipj MCP server
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., "@apipj MCP serverWhat's the registration status and address of CNPJ 11.378.117/0001-20?"
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.
apipj MCP server: Brazilian CNPJ lookup (API CNPJ)
Remote Model Context Protocol server for looking up and validating Brazilian companies by CNPJ, using the open data that Receita Federal publishes every month. Works in Claude, ChatGPT, Claude Code, Cursor, VS Code and any MCP client that supports Streamable HTTP.
https://apipj.com.br/mcpThis repository holds the public documentation and the MCP Registry manifest (server.json, name br.com.apipj/cnpj). The server itself is hosted by apipj; there is nothing to install or run.
Tools
Tool | What it does | Account |
| Company record for a CNPJ: legal name, trade name, registration status and date, legal nature, size, share capital, opening date, full address with IBGE code, registered phone and e-mail, main and secondary activities (CNAE), Simples Nacional and MEI status, partners and administrators (QSA, CPF masked as published). Formats: | Required |
| Checks format and check digits of a CNPJ, numeric or the new alphanumeric format (e.g. | Not required |
| Which monthly Receita Federal release is loaded, when it was generated and how many CNPJs it has. | Not required |
| Active companies by economic activity (CNAE) and/or municipality, paginated, without partner data. Available from 2026-10-28. | Required |
All tools are read-only (readOnlyHint: true, destructiveHint: false).
Related MCP server: checkpj-mcp-server
Authentication
OAuth 2.1 (recommended): clients that support MCP authorization (Claude, ChatGPT, Claude Code, Cursor, VS Code) open the apipj sign-in page the first time a tool needs an account. Sign in with Google (or e-mail and password) and click Autorizar. The server supports Client ID Metadata Documents and Dynamic Client Registration, with PKCE S256.
API key: clients without OAuth can send
Authorization: Bearer apipj_live_.... Create a free account and a key at apipj.com.br/criar-conta.
Each lookup counts toward the per-minute limit and the monthly quota of your apipj account. See plans.
Connect
Claude (claude.ai, Desktop, mobile): Customize → Connectors → Add custom connector → URL https://apipj.com.br/mcp. Leave the OAuth client fields empty.
ChatGPT: Settings → Apps & Connectors → enable Developer mode → Add custom MCP server → URL https://apipj.com.br/mcp, authentication OAuth.
Claude Code:
claude mcp add --transport http apipj https://apipj.com.br/mcpCursor: use the install button above, or the apipj Cursor plugin, or add to .cursor/mcp.json:
{ "mcpServers": { "apipj": { "url": "https://apipj.com.br/mcp" } } }VS Code: use the install button above, or add to .vscode/mcp.json:
{ "servers": { "apipj": { "type": "http", "url": "https://apipj.com.br/mcp" } } }Cline: add the server to cline_mcp_settings.json as described in llms-install.md.
Other clients (with an API key):
{
"mcpServers": {
"apipj": {
"type": "http",
"url": "https://apipj.com.br/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Example prompts
"What is the registration status and address of CNPJ 11.378.117/0001-20?"
"Who are the partners of CNPJ 11.378.117/0001-20, and is it in Simples Nacional?"
"Is the CNPJ 12.ABC.345/01DE-35 valid?"
"Which month of Receita Federal data does apipj have loaded?"
Data and limits
Source: Receita Federal open data (CNPJ), loaded monthly. Data may be out of date and is not an official certificate.
Partner CPF numbers are masked exactly as Receita Federal publishes them; the server never reveals full CPF numbers.
Transport: Streamable HTTP, stateless, protocol versions 2025-11-25, 2025-06-18 and 2025-03-26.
Server status: apipj.com.br/status.
Em português
Servidor MCP remoto do apipj para consultar CNPJ e validar CNPJ (inclusive o CNPJ alfanumérico) direto no Claude, no ChatGPT, no Cursor e em outros assistentes, com os dados abertos da Receita Federal (carga mensal). A consulta usa uma conta apipj: na primeira vez, o assistente pede para conectar; entre com o Google e clique em Autorizar. Validação e status funcionam sem conta. Guia completo: apipj.com.br/guias/consultar-cnpj-ia-mcp.
Links
Documentation: https://apipj.com.br/docs
JavaScript/TypeScript client: apipj/apipj-js · Python client: apipj/apipj-py · n8n node: apipj/n8n-nodes-apipj
Terms: https://apipj.com.br/termos · Privacy: https://apipj.com.br/privacidade
Support: brunogalizzi@masterbi.com
Operated by MASTER BI TECNOLOGIA LTDA (CNPJ 35.659.589/0001-19). Documentation licensed under MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Brazilian company data, CNPJ/CPF validation and KYB risk score. Pay per call via x402 (USDC).
Official-source lookups on people and companies: registration status (CPF/CNPJ), Simples/MEI, SINTEG
Brazilian company and person data by CNPJ/CPF: registry, partners, tax status, sanctions, lawsuits.
Bulk CNPJ lookup and enrichment with official Brazilian company registry data.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceBrazilian company-registry lookup via Receita Federal, allowing AI agents to query CNPJ data.21 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides tools to look up Brazilian companies by CNPJ, search companies, get risk scores, and validate CNPJ using the CheckPJ API.10 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides Brazilian company basic registration data (legal name, status, legal nature) from CNPJ through a single read-only MCP tool, hosted with pay-per-use credits.MIT
- AlicenseNot gradedqualityCmaintenanceProvides a single read-only tool to fetch extended Brazilian company registration data from a CNPJ number, including basic details. Works over HTTP MCP with any client.MIT