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 集成