Skip to main content
Glama
guilhermelirio

Brazilian CEP MCP

# 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 install

Como usar

Compilação do projeto

Para compilar o código TypeScript:

npm run build

Execução do servidor

Para iniciar o servidor em modo de desenvolvimento:

npm run dev

Para iniciar o servidor após compilação:

npm start

Consultando 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: 3550308

Tecnologias 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 arquivo

Autor

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 tool
consultar-cepA

Query address information from a Brazilian postal code (CEP)

ParametersJSON Schema
NameRequiredDescriptionDefault
cepYesPostal code to be queried (only numbers, 8 digits)

TDQS

A3.7/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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

A3.6/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count2/5

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.

Completeness2/5

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

ActivityInactive
ResponsivenessSyncing

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

Related MCP Servers

Latest Blog Posts

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