Mcp Melhor Envio

io.github.codespar由 GitHub 帳號 codespar 發布v0.1.4更新於 Oct 24, 2026

MCP server for Melhor Envio — shipping rates, labels, tracking, agencies

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

針對 Melhor Envio 的本機 MCP 伺服器,讓助理計算運費、建立與追蹤貨件,並管理託運單與取件據點。

可以做什麼
比較多家承運商的運費,並列出某條路線可用的配送服務,產生前可先預覽託運單。建立、列出、檢視與取消貨件訂單,並查詢含完整事件的物流追蹤紀錄。產生、預覽、列印或下載貨運託運單 PDF。將訂單加入購物車、結帳並支付購物車,以及查詢帳戶餘額。查詢商店資訊,建立已儲存的寄件人或收件人地址,並依服務與位置列出或搜尋取件據點。
適用情境
適合透過 Melhor Envio 處理巴西物流的情境,希望助理在對話中比較承運商運費、準備託運單、追蹤配送,或管理貨件訂單與取件點。
執行需求
透過 npm 套件以 npx 在本機執行,需要 Node.js。需要 Melhor Envio 帳戶,並在 MELHOR_ENVIO_TOKEN 環境變數中提供 Bearer 權杖。選用的 MELHOR_ENVIO_SANDBOX 設為 true 可切換至沙箱。需要連線至 Melhor Envio 的網路。
安裝前請注意
MELHOR_ENVIO_TOKEN 是帳戶憑證,應避免寫入共用設定。結帳與付款工具會從帳戶餘額實際扣款,建立、取消或列印貨件會異動真實訂單。建議先以 MELHOR_ENVIO_SANDBOX 測試。貨件、地址與商店資料會傳送給 Melhor Envio。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Melhor Envio,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-melhor-envio

MCP server for Melhor Envio — shipping aggregator with multi-carrier rate comparison

[npm] [License: MIT]

Quick Start

Claude Desktop

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

json
{  "mcpServers": {    "melhor-envio": {      "command": "npx",      "args": ["-y", "@codespar/mcp-melhor-envio"],      "env": {        "MELHOR_ENVIO_TOKEN": "your-token",        "MELHOR_ENVIO_SANDBOX": "true"      }    }  }}

Claude Code

bash
claude mcp add melhor-envio -- npx @codespar/mcp-melhor-envio

Cursor / VS Code

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

json
{  "servers": {    "melhor-envio": {      "command": "npx",      "args": ["-y", "@codespar/mcp-melhor-envio"],      "env": {        "MELHOR_ENVIO_TOKEN": "your-token",        "MELHOR_ENVIO_SANDBOX": "true"      }    }  }}

Tools (18)

ToolPurpose
calculate_shippingCalculate shipping rates from multiple carriers
create_shipmentCreate a shipment order
track_shipmentTrack a shipment by order ID
generate_labelGenerate shipping label for an order
list_agenciesList carrier pickup agencies near a location
cancel_shipmentCancel a shipment order
get_balanceGet current account balance
add_cartAdd shipment orders to cart for batch checkout
checkout_cartCheckout all items in the cart and pay
preview_labelPreview a shipping label before generating
print_labelPrint/download label PDF
get_shipmentGet shipment order details by ID
list_shipmentsList all shipment orders with filters
get_storeGet store/company information
search_agenciesSearch pickup agencies by service and location
create_addressCreate a stored address for sender/recipient
list_services_availableList available shipping services for a route
get_tracking_historyGet complete tracking history with events

Authentication

Melhor Envio uses a Bearer token for authentication.

Sandbox / Testing

Melhor Envio provides a sandbox at sandbox.melhorenvio.com.br. Set MELHOR_ENVIO_SANDBOX=true to use it.

Get your credentials

  1. Go to Melhor Envio
  2. Create an account
  3. Navigate to API settings and generate a token
  4. Set the MELHOR_ENVIO_TOKEN environment variable

Environment Variables

VariableRequiredDescription
MELHOR_ENVIO_TOKENYesBearer token from Melhor Envio
MELHOR_ENVIO_SANDBOXNoSet to "true" for sandbox mode

Roadmap

v0.2 (planned)

  • create_store — Create a store in Melhor Envio
  • update_store — Update store details
  • get_receipt — Get shipping receipt/label
  • list_companies — List available shipping companies
  • get_invoice — Get invoice for a shipment

v0.3 (planned)

  • batch_shipments — Create multiple shipments in a single request
  • detailed_reports — Generate detailed shipping reports
  • webhook_management — Register, list, and delete webhooks

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/melhor-envio/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分