apipj MCP server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: Cadastro PJ Básico
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
Free lookup of 28.4M active Brazilian companies by CNPJ or name (Receita Federal open data).
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.420 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides 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
- AlicenseBqualityBmaintenanceEnables querying Brazil's official CNPJ company registry data, counting and listing establishments by municipality, state, CNAE activity, size, or status, with caveats about official dump limitations such as non-IBGE municipality codes and secondary activities.4MIT
- AlicenseAqualityCmaintenanceEnables querying Brazilian company records from open Receita Federal data without a local database, covering CNPJ lookups, partners, corporate networks, addresses, filters, and DJEN legal notices. It uses public APIs and remote Parquet files to support partial reads and caching.102AGPL 3.0