GHN MCP by usefulapi

io.usefulapi由 usefulapi.io 發布官方發布者v1.0.1更新於 Nov 8, 2026

Quote shipping fees, track orders, and create or cancel shipping orders in GHN.

發布方自己的服務:Ably MCP by usefulapi

已驗證Streamable HTTP可網頁執行

概覽

AI 產生的概覽

面向 GHN 物流的託管 MCP 伺服器:讓助理查詢運費、查看訂單,並建立或取消真實配送訂單。

可以做什麼
  • 列出省、區、ward 等地址資料,並查詢某條路線可用的配送服務
  • 在不建立訂單的情況下為包裹報價運費
  • 依 GHN 運單號或自有客戶訂單號查詢訂單詳情
  • 建立真實配送訂單,包含貨到付款
  • 以全有或全無的方式批次取消配送訂單
  • 查看當月用量、提出功能需求,以及升級或取消付費方案
適用情境
適合使用 GHN 的商家與賣家,希望讓助理不必開啟 GHN 後台就能報價運費、查詢訂單狀態,或下單與取消運單。
執行需求
透過 streamable HTTP 連線的遠端端點,無需本機安裝。以 OAuth 登入,登入頁面要求填寫 GHN Token API 值與 GHN ShopId,伺服器會驗證並依使用者儲存。用戶端設定中不需填寫金鑰。
安裝前請注意
ghn_create_order 會建立真實運單,由 GHN 到府收件並配送,可能向店家收費或向收件人收取貨到付款;ghn_cancel_orders 會取消真實訂單。執行前請與使用者確認收件人、包裹、運費與訂單編號。你需要把 GHN Token API 值與 ShopId 交給第三方託管服務。免費額度為每月 50 次呼叫,付費方案透過 Stripe 結帳連結付款。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.usefulapi%2Fghn/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "ghn-by-usefulapi": {
      "type": "http",
      "url": "https://ghn.usefulapi.io/mcp"
    }
  }
}

README

GHN MCP by usefulapi

Use your GHN account from Claude, Cursor, or any MCP client. Quote shipping fees, read orders, and create or cancel GHN shipping orders. Hosted, no local install: connect with your own credentials.

Live endpoint: https://ghn.usefulapi.io/mcp · Homepage: https://usefulapi.io

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://ghn.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http ghn https://ghn.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
json
{  "mcpServers": {    "ghn": {      "url": "https://ghn.usefulapi.io/mcp"    }  }}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your GHN credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/ghn/

On first connect you provide your GHN Token API value (GHN Developer Portal, Manage token; reveal it with the OTP sent to your phone) and your GHN ShopId (in your GHN account information). The server validates them and stores them per user. No keys go in config files.

Tools

ToolTypeWhat it does
ghn_list_provincesreadList provinces
ghn_list_districtsreadList districts
ghn_list_wardsreadList wards
ghn_list_servicesreadList delivery services
ghn_calculate_feereadCalculate shipping fee
ghn_get_orderreadGet an order
ghn_get_order_by_client_codereadGet an order by your code
ghn_create_orderwriteCreate a shipping order
ghn_cancel_orderswriteCancel shipping orders
ghn_usage_statusmetaUsage status (free-tier meter)
ghn_request_featuremetaRequest a missing feature
ghn_upgrademetaUpgrade to Pro or Pro+
ghn_cancel_subscriptionmetaCancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Pro (per user)$9/mo or $90/yr (2 months free)Unlimited*

*Pro has a fair use limit of 10,000 tool calls a month on this server. For more, write to [email protected].

Pro covers this server only. Subscribe with ghn_upgrade (it returns a Stripe Checkout link). Cancel any time with ghn_cancel_subscription: Pro continues to the end of the paid period, with no refund for the current period, and running ghn_upgrade before then undoes the cancel. Or write to [email protected].

License

MIT — see LICENSE. Documentation only; the server is hosted.

來源:servers/ghn/README.md,提交 eece7cf

工具

9

ghn_list_provinces

List provinces

List all provinces and cities with their ProvinceID. Use the ProvinceID with ghn_list_districts. Uses the district address model. GHN: GET /master-data/province.

無需輸入參數。

ghn_list_districts

List districts

List the districts of one province with DistrictID and service support (SupportType: 0 locked, 1 pickup only, 2 delivery only, 3 both). GHN: GET /master-data/district?province_id=.

輸入參數province_id必填

ghn_list_wards

List wards

List the wards of one district. Use WardCode (a string) for ghn_calculate_fee and ghn_create_order ward fields. GHN: GET /master-data/ward?district_id=.

輸入參數district_id必填

ghn_list_services

List delivery services

List the delivery services GHN offers on a route for this shop. Returns service_type_id (2 = under 20 kg, 5 = 20 kg or more or multi-parcel). Call it before ghn_calculate_fee. GHN: POST /v2/shipping-order/available-services.

輸入參數to_district_id必填from_district_id必填

ghn_calculate_fee

Calculate shipping fee

Quote the shipping fee for a parcel to a ward, before creating an order. Quote only: no order is created. GHN: POST /v2/shipping-order/fee.

輸入參數itemswidthcouponheightlengthweight必填cod_valueto_ward_code必填from_ward_codeto_district_id必填insurance_valueservice_type_id必填另有 1 個

ghn_get_order

Get an order

Get the full details of one shipping order by its GHN tracking code: status, parties, COD, fees and items. GHN: GET /v2/shipping-order/detail?order_code=.

輸入參數order_code必填

ghn_get_order_by_client_code

Get an order by your code

Get the full details of one shipping order by your own client_order_code instead of the GHN tracking code. GHN: GET /v2/shipping-order/detail-by-client-code?client_order_code=.

輸入參數client_order_code必填

ghn_create_order

Create a shipping order

CREATES A REAL SHIPPING ORDER: GHN picks up and delivers the parcel and can charge the shop or collect cash on delivery (COD) from the recipient. Call only after the user explicitly confirms the recipient, the parcel and the fee in this chat (use ghn_calculate_fee first). client_order_code is required: a retry with the same code returns the first order and creates no duplicate. Set to_district_name when is_new_to_address is false. Send content or items. GHN: POST /v2/shipping-order/create.

輸入參數noteitemswidth必填height必填length必填weight必填contentto_name必填to_phone必填cod_amountto_address必填to_ward_name必填另有 8 個

ghn_cancel_orders

Cancel shipping orders

CANCELS REAL SHIPPING ORDERS. The batch is all-or-nothing: one unknown or foreign order code cancels nothing. Call only after the user explicitly confirms the order codes. An order that can no longer be cancelled returns result false. GHN: POST /v2/switch-status/cancel.

輸入參數reasonorder_codes必填reason_code

版本歷史

1
  1. v1.0.1最新Nov 8, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Usefulapi 整合