Queries Brazilian public data through 15 MCP tools, including CNPJ, CEP, banks, holidays, exchange rates, IBGE data, and .br domains.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
This server is confirmed live β we successfully called its tools/list endpoint directly (see the verified badge above). We haven't yet sandbox-tested the stdio install command below specifically, which is a separate, ongoing check.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Brasil Data MCP.
consultar_cnpjConsulta dados cadastrais de uma empresa brasileira pelo CNPJ na Receita Federal (via BrasilAPI). Retorna em JSON: razΓ£o social, nome fantasia, situaΓ§Γ£o cadastral (ativa/baixada/etc), data de abertura, endereΓ§o completo, CNAE principal e secundΓ‘rios, sΓ³cios (QSA), capital social, natureza jurΓdica, porte (MEI/ME/EPP/Demais), telefones, e-mail, simples nacional/MEI. Use quando o usuΓ‘rio pedir informaΓ§Γ΅es sobre uma empresa identificada por CNPJ. NΓO use para: CPF (pessoa fΓsica), empresas estrangeiras, ou validaΓ§Γ£o local de formato (rejeite formato invΓ‘lido sem chamar a tool). Aceita CNPJ com ou sem mΓ‘scara.
consultar_cepConsulta endereΓ§o completo a partir de um CEP brasileiro via BrasilAPI v2 (agrega ViaCEP, Postmon e outros provedores com fallback automΓ‘tico). Retorna em JSON: estado (UF), cidade, bairro, logradouro e, quando disponΓvel, coordenadas geogrΓ‘ficas. Use quando o usuΓ‘rio pedir o endereΓ§o de um CEP, validar um CEP, ou descobrir cidade/UF a partir de um CEP. NΓO use para: cΓ³digos postais de outros paΓses, descobrir CEP a partir de endereΓ§o (a operaΓ§Γ£o Γ© sΓ³ CEP β endereΓ§o, nΓ£o inversa). Aceita CEP com ou sem hΓfen.
consultar_bancoConsulta os dados de um banco brasileiro pelo cΓ³digo COMPE/Febraban via BrasilAPI (fonte: BACEN). Retorna em JSON: nome curto, nome completo, cΓ³digo, ISPB (identificador no SPB). Use quando o usuΓ‘rio fornecer um cΓ³digo de banco e quiser saber o nome, ou quando precisar do ISPB pra montar um PIX/TED. NΓO use para: buscar banco por nome (use listar_bancos e filtre), validar conta corrente, ou consultar agΓͺncia/conta. CΓ³digos comuns: 001=BB, 104=CEF, 237=Bradesco, 341=ItaΓΊ, 260=Nubank, 077=Inter.
listar_bancosLista TODOS os bancos brasileiros cadastrados no BACEN via BrasilAPI. Retorna em JSON um array com nome, cΓ³digo COMPE/Febraban e ISPB de cada instituiΓ§Γ£o. Use quando o usuΓ‘rio quiser uma lista completa, buscar banco por nome (vocΓͺ filtra o resultado), ou descobrir o cΓ³digo de um banco especΓfico cujo nome ele forneceu. NΓO use quando o usuΓ‘rio jΓ‘ forneceu o cΓ³digo numΓ©rico β nesse caso use consultar_banco que Γ© mais barato. A lista tem ~250 entradas; cite sΓ³ os relevantes na resposta.
consultar_feriadosLista os feriados NACIONAIS brasileiros de um ano especΓfico via BrasilAPI. Retorna em JSON um array com data (YYYY-MM-DD), nome do feriado e tipo (national/optional). Inclui feriados mΓ³veis calculados (Carnaval, PΓ‘scoa, Corpus Christi). Use quando o usuΓ‘rio perguntar quando cai um feriado, listar feriados do ano, planejar emendas/pontes, ou calcular dias ΓΊteis. NΓO use para: feriados estaduais ou municipais (a API sΓ³ cobre nacionais), datas comemorativas sem dia de folga (Dia das MΓ£es etc.), ou anos fora da faixa 1900-2199.
consultar_dddLista as cidades atendidas por um cΓ³digo DDD brasileiro via BrasilAPI. Retorna em JSON: estado (UF) e lista de cidades que usam aquele DDD. Use quando o usuΓ‘rio perguntar de onde Γ© um DDD, quais cidades um DDD cobre, ou descobrir o estado de um nΓΊmero de telefone. NΓO use para: validar nΓΊmero de telefone completo, descobrir DDD a partir de cidade (a operaΓ§Γ£o sΓ³ Γ© DDD β cidades), ou consultar DDDs internacionais.
alanpcf/brasil-data-mcp MCP server gives compatible AI clients access to Brazilian public data through 15 tools. The tools query BrasilAPI and return structured JSON for common identifiers and reference datasets. Covered sources and domains include Receita Federal company records, CEP address lookup, BACEN bank and economic data, CVM broker records, IBGE states and municipalities, Registro.br domain status, PTAX exchange bulletins, and book metadata from multiple providers.
The project also includes two MCP prompts: analise-cnpj, which guides a structured company analysis, and panorama-economico, which combines current economic rates with upcoming national holidays.
An MCP client selects a tool based on the user's request, passes an identifier or other supported input, and receives JSON for the agent to interpret. Inputs generally accept Brazilian formats with or without punctuation where applicable, such as masked or unmasked CNPJ, CEP, and ISBN values.
The available operations are deliberately directional. CEP lookup returns an address from a CEP, but does not find a CEP from an address. Bank lookup accepts a COMPE or Febraban code, while name-based searches use the full bank list. Municipality lookup is scoped to one Brazilian state. Similar restrictions apply to DDD, ISBN, broker, and domain queries.
Exchange lookups use PTAX data for one date at a time. When no date is supplied, the service checks the previous day because the source does not expose the current day's quote. A non-trading date returns the most recent prior business-day bulletin.
alanpcf/brasil-data-mcp MCP server runs locally through the published npm package. No credentials, API key, or environment variables are required. The direct command is:
For Claude Desktop or Cursor, configure an MCP server with npx as the command and -y brasil-data-mcp as its arguments. The README also documents a Claude Code command and a local development setup using Node.js, npm, TypeScript tooling, and the repository build output.
The server can be used with Claude Desktop, Claude Code, Cursor, Windsurf, and other MCP-compatible clients. The listed client configurations use standard stdio transport.
The tool set includes:
.br domain is available or registered, including DNS hosts, expiration, and suggestions when provided.The data scope is Brazil-specific. CNPJ lookup is not intended for CPF records or foreign companies; CEP lookup does not support international postal codes; and domain checks cover .br only. Holiday lookup covers national holidays, not state or municipal calendars. Economic tools provide current values rather than historical series and support SELIC, CDI, and IPCA only.
Currency lookup supports the 10 currencies listed by the service and does not cover cryptocurrencies or BRL as a foreign currency. Municipality results can be large; SΓ£o Paulo, for example, has 645 entries. Domain results are not cached and represent the current status returned by the source. Invalid identifier formats should be rejected locally where the tool guidance requires validation before making a request.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/alanpcf-brasil-data-mcp)<a href="https://allmcps.com/mcp/alanpcf-brasil-data-mcp"><img src="https://allmcps.com/api/badge/alanpcf-brasil-data-mcp?style=directory" alt="Brasil Data MCP on AllMCPs" /></a>