MCP-CEP
MCP-CEP
ViaCEPパブリック API を使用して郵便番号を照会するための MCP サーバー。
コマンドライン拡張機能としてGooseと互換性があります。
👤 著者
ウェンデル・バレット
https://github.com/wendellbigato
🚀 インストール
1. このリポジトリをクローンする
git clone https://github.com/wendellbigato/mcp-cep.git
cd mcp-cep投稿の際は上記のURLを実際のものに変更してください。
2. 仮想環境を作成してアクティブ化する
python3.11 -m venv .venv
source .venv/bin/activate # Linux/macOS
# ou
.venv\Scripts\activate.bat # Windows3. uvまたはpipで依存関係をインストールする
uvの使用:
uv pip install -e ".[cli]"または通常のpipの場合:
pip install -e ".[cli]"Related MCP server: cep-tools
🧩 Gooseで拡張機能として設定する
実行する:
goose configureAdd Extension選択Command-line Extensionを選択以下のフィールドに入力します:
分野 | 価値 |
拡張機能名 |
|
実行するコマンド |
|
タイムアウト |
|
環境 | (空白、または必要に応じてカスタマイズ) |
which uvとpwdを使用して正しいパスを見つけます。
✅ Gooseでテストする方法
セットアップ後、開始します:
goose session --with-extension mcp-cep次のようなコマンドを送信します。
Repita: Olá!
Qual o endereço do CEP 01001000?🧰 利用可能なツール
echo(texto: str): 送信されたテキストを繰り返します。buscar_cep(cep: str): ViaCEP 経由でアドレス情報をクエリします。
📄 ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています。
Available Tools
3 toolsbuscar_cepB
Consulta informações de um CEP brasileiro usando a API ViaCEP.
Args:
cep: Código de Endereçamento Postal no formato 01001000 ou 01001-000.
Returns:
Um dicionário com informações de endereço como rua, bairro, cidade e estado.
Inputs: cep (required).
buscar_ceps_por_logradouroA
Busca todos os CEPs associados a um logradouro em uma cidade e estado.
Args:
uf: Sigla do estado (ex: SP, RJ)
cidade: Nome da cidade (ex: São Paulo)
logradouro: Nome da rua, avenida, praça etc (ex: Praça da Sé)
Returns:
Lista de dicionários com endereços que correspondem à busca.
Inputs: uf (required), cidade (required), logradouro (required).
echoB
Repete o texto enviado.
Inputs: texto (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The first two tools have clearly distinct purposes: buscar_cep queries by CEP number, while buscar_ceps_por_logradouro queries by address components. However, the echo tool is completely unrelated to the CEP domain, creating a minor ambiguity about the server's primary focus. The core CEP tools are well-differentiated.
Two tools follow a consistent Portuguese verb_noun pattern (buscar_cep, buscar_ceps_por_logradouro), but the third tool (echo) breaks this pattern with an English name. The naming is readable but lacks full consistency across the set due to the language and pattern mismatch.
Three tools is borderline for a CEP server. While the two core CEP tools provide basic lookup functionality, the inclusion of an unrelated echo tool makes the count feel artificially inflated. For a focused CEP service, 2-4 domain-specific tools would be more appropriate.
The server covers the essential CEP lookup operations: query by CEP and query by address components. However, there are notable gaps for a complete CEP service - no tools for address validation, reverse geocoding, or handling CEP ranges. The echo tool adds no value to the CEP domain coverage.
Maintenance
Related MCP Connectors
Correios: Completa CEP (CEP + Área territorial brasileira), official-source lookup. Platform-hosted,
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.
Brazil's Correios for AI agents: shipping quotes (frete), tracking (rastreio) and labels (etiqueta).
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables querying detailed address information from Brazilian postal codes (CEPs) via the ViaCEP API, returning data such as street names, neighborhoods, cities, states, regions, and IBGE codes.212MIT
- 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 gradedqualityDmaintenanceMCP server for querying Brazilian postal codes (CEP) from the official Correios source, supporting read-only lookups via natural language in any MCP-compatible client.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for querying Brazilian postal codes (CEP) and territorial areas using official Correios data, providing a read-only tool to complete CEP information.MIT