Brazilian CEP MCP
Used to make HTTP requests to the ViaCEP API for retrieving postal code information
Provides the runtime environment for the MCP server
Used as the programming language for type-safe development of the MCP server
Handles data validation of CEP (postal code) input and response schemas
Click 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., "@Brazilian CEP MCPlook up the address for CEP 01001000"
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.
# brazilian-cep-mcp
Descrição
Este é um servidor MCP (Model Context Protocol) que fornece ferramentas para consulta de informações de Códigos de Endereçamento Postal (CEP) brasileiros. O servidor utiliza a API ViaCEP para obter dados detalhados de endereços a partir do CEP informado.
Related MCP server: mcp-server-brasil
Funcionalidades
Consulta de endereços completos através do CEP
Retorno de informações como logradouro, bairro, cidade, estado, região, DDD e código IBGE
Implementação do protocolo MCP para integração com agentes de IA
Instalação
# Clone o repositório
git clone https://github.com/guilhermelirio/brazilian-cep-mcp.git
cd brazilian-cep-mcp
# Instale as dependências
npm installComo usar
Compilação do projeto
Para compilar o código TypeScript:
npm run buildExecução do servidor
Para iniciar o servidor em modo de desenvolvimento:
npm run devPara iniciar o servidor após compilação:
npm startConsultando um CEP
O servidor disponibiliza a ferramenta consultar-cep que aceita um parâmetro:
cep: Código postal no formato de 8 dígitos numéricos (obrigatório)
Exemplo de uso:
{
"cep": "01001000"
}Resposta:
Endereço encontrado:
CEP: 01001-000
Logradouro: Praça da Sé
Complemento: lado ímpar
Bairro: Sé
Cidade: São Paulo
Estado: SP (São Paulo)
Região: Sudeste
DDD: 11
IBGE: 3550308Tecnologias utilizadas
TypeScript
Node.js
Axios para requisições HTTP
Zod para validação de esquemas
SDK do Model Context Protocol
Configuração Smithery
Este projeto está configurado para funcionar com a plataforma Smithery.ai, que facilita a distribuição e execução de servidores MCP.
Estrutura do projeto
brazilian-cep-mcp/
├── src/
│ └── index.ts # Código-fonte principal
├── dist/ # Código compilado
├── node_modules/ # Dependências
├── smithery.yaml # Configuração do Smithery
├── package.json # Configuração do projeto
├── tsconfig.json # Configuração do TypeScript
└── README.md # Este arquivoAutor
Guilherme Lirio Tomasi de Oliveira
Licença
Este projeto está licenciado sob a licença MIT - veja o arquivo LICENSE para mais detalhes.
Contribuições
Contribuições são bem-vindas! Sinta-se à vontade para abrir issues ou enviar pull requests.
Available Tools
1 toolconsultar-cepA
Query address information from a Brazilian postal code (CEP)
| Name | Required | Description | Default |
|---|---|---|---|
| cep | Yes | Postal code to be queried (only numbers, 8 digits) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool queries address information, which implies a read-only operation, but it does not disclose other traits such as rate limits, error handling, authentication needs, or data sources. The description adds minimal behavioral context beyond the basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without any unnecessary words. It is front-loaded with the core purpose and appropriately sized for a simple tool with one parameter.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (one parameter, no output schema, no annotations), the description is adequate but has gaps. It covers the basic purpose and parameter context but lacks details on behavioral aspects like error cases or return format, which would be helpful for an agent to use it correctly without structured output information.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, clearly documenting the 'cep' parameter with format and length constraints. The description adds value by specifying that it queries 'address information' and mentions 'Brazilian postal code (CEP)', providing context about the parameter's purpose and regional scope, which compensates for the lack of output schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Query address information') and resource ('from a Brazilian postal code (CEP)'). It uses a precise verb and distinguishes the tool's purpose without redundancy, as there are no sibling tools to differentiate from.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieving address data from Brazilian postal codes, but it does not provide explicit guidance on when to use this tool versus alternatives (e.g., other geolocation tools) or any exclusions. Since there are no sibling tools, the lack of comparative guidance is less critical, but it still offers only implied context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The tool's purpose is clearly defined and singular.
Since there is only one tool, naming consistency is inherently perfect, as there are no other tool names to compare it against for patterns or conventions.
A single tool for a CEP lookup server feels thin and under-scoped, as it only provides query functionality without supporting related operations like validation, batch processing, or reverse lookup. This limits the server's utility for broader agent workflows.
The server is severely incomplete for a CEP domain, as it only offers a query tool without any complementary operations such as address validation, error handling for invalid CEPs, or integration with other Brazilian address services, leaving significant gaps in functionality.
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 Connectors
Correios: CEP, official-source lookup. Platform-hosted, pay per query with prepaid credit.
Returns the postal code (CEP) and standardized address from the Brazilian Post from a given address.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
日本の住所と郵便番号を相互変換するMCPサーバー。住所から郵便番号を検索、郵便番号から住所を逆引きします。
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables lookup of Brazilian addresses by CEP (postal code) using the ViaCEP API, returning formatted address information including street, neighborhood, city, and state.1
- AlicenseAqualityCmaintenanceProvides tools to query Brazilian CNPJ (company registration), CEP (postal codes), and currency exchange rates (USD and EUR) through an MCP server.3MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides a tool to query Brazilian postal codes (CEPs) via the ViaCEP API, returning address details such as street, neighborhood, city, and state.
- 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.501MIT
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/guilhermelirio/brazilian-cep-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server