Mcp Correios

io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.3更新于 Oct 24, 2026

MCP server for Correios — package tracking, shipping rates, CEP lookup

已验证STDIO仅桌面位置与生活商业与电商

概览

AI 生成的概览

面向巴西 Correios 邮政的 MCP 服务器:可查询包裹物流、计算运费、按 CEP 查地址,并管理预投递与取件订单。

可以做什么
  • 按 Correios 物流单号查询单个或批量包裹的物流状态。
  • 计算两个 CEP 之间的运费、时效、可用服务、投递方式及 CEP 区间。
  • 按 CEP 查询地址、批量查询,或按街道和地点搜索 CEP。
  • 创建、列出、查询和取消预投递订单,并将已投递对象封单生成 PLP。
  • 申请 SIGEP 面单区间、预约或取消上门取件,以及创建或查询逆向物流(退货)订单。
适用场景
适合需要巴西物流数据或 Correios 业务的场景:查看配送状态、按 CEP 报价运费、解析地址,或为持有 Correios 合同的用户处理预投递、面单、取件与退货。
运行要求
以 stdio 方式在本地运行,通常通过 npx 从 npm 包启动。需要 Correios API 合同与凭据:环境变量 CORREIOS_USER 和 CORREIOS_TOKEN(清单中仅声明 CORREIOS_TOKEN)。测试可使用 homologation 环境的单独凭据。仅支持桌面客户端。
安装前请注意
README 标明这是 alpha 版本,接口路径尚未完全经过线上验证,建议锁定精确版本。多个工具会创建、取消或提交真实的寄件订单、面单和取件,可能产生费用并改变物流状态。凭据以环境变量传入,应避免写入共享配置文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Correios,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-correios

Alpha release — published under the alpha npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during 0.x.x-alpha. Install with npm install <pkg>@alpha.

MCP server for Correios — Brazilian postal service tracking, rates, and shipping

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "correios": {      "command": "npx",      "args": ["-y", "@codespar/mcp-correios"],      "env": {        "CORREIOS_USER": "your-user",        "CORREIOS_TOKEN": "your-token"      }    }  }}

Claude Code

bash
claude mcp add correios -- npx @codespar/mcp-correios

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "correios": {      "command": "npx",      "args": ["-y", "@codespar/mcp-correios"],      "env": {        "CORREIOS_USER": "your-user",        "CORREIOS_TOKEN": "your-token"      }    }  }}

Tools (21)

ToolPurpose
track_packageTrack a package by Correios tracking code
track_bulkTrack multiple Correios packages in a single call (up to 50 codes)
calculate_shippingCalculate shipping rates between two CEPs
get_delivery_timeGet estimated delivery time between two CEPs
list_servicesList available Correios shipping services
find_cepLook up address by CEP via Correios
find_cep_bulkBatch address lookup for up to 20 CEPs in a single call
list_cep_rangesList CEP ranges (faixas de CEP) served by a given shipping service
get_delivery_modalityGet delivery modality (forma de entrega) for a CEP and service — whether delivery is domicile, agency picku...
create_prepostCreate a pre-posting order for shipping
get_prepostGet a pre-posting order by ID
list_prepostsList pre-posting orders with optional filters (date range, status)
cancel_prepostCancel a pre-posting order
buy_label_rangeRequest a range of SIGEP tracking labels (etiquetas) for a service
post_objectsClose and post a list of pre-posted objects (fechar postagem SIGEP) — creates a PLP
list_postal_codesSearch addresses by street name or location (returns matching CEPs)
create_collectionSchedule a package collection (pickup) from an address
get_collectionGet collection request details by ID
cancel_collectionCancel a scheduled collection request
create_reverseCreate a reverse logistics (return) order
get_reverseGet reverse logistics order details by ID

Authentication

Correios uses Basic Auth for token generation, then Bearer token for subsequent requests. The server automatically manages authentication.

Sandbox / Testing

Correios provides a homologation environment for testing. Contact Correios for homologation credentials.

Get your credentials

  1. Go to Correios CWS Portal
  2. Register for API access (requires a contract with Correios)
  3. Get your username and token
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
CORREIOS_USERYesCorreios API username
CORREIOS_TOKENYesCorreios API token

Roadmap

v0.2 (planned)

  • list_postal_codes — List postal codes for a region
  • get_postal_code_range — Get postal code range for a city
  • create_collection — Schedule a package collection
  • get_collection — Get collection request details
  • create_reverse — Create a reverse logistics (return) request

v0.3 (planned)

  • batch_tracking — Track multiple packages in a single request
  • international_shipping — Calculate international shipping rates

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

来源:packages/ecommerce/correios/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0-alpha.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分