GHN MCP by usefulapi
io.usefulapi/ghn
MCP server OK 9 tools
Quote shipping fees, track orders, and create or cancel shipping orders in GHN.
Technical sheet
- Author
- usefulapi.io (registry namespace)
- Repository
- github.com/m190/usefulapi-mcp
- Site
- usefulapi.io/ghn
- Version
- 1.5.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://ghn.usefulapi.io/mcp Streamable HTTP
- Tools
- 9
- Categories
- —
- Last updated
- 21 Nov 2026
- Published
- 21 Nov 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.usefulapi/ghn)<a href="https://latlas.dev/en/mcp/io.usefulapi/ghn"><img src="https://latlas.dev/badge/fiche/io.usefulapi/ghn.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://ghn.usefulapi.io/mcp
- Last result
- OK 28 Nov 2026, 13:20
- Response time
- 187 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- ghn-mcp 1.5.0
- Tools
- 9
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 13:20 | OK | 187 ms | 9 |
Exposed tools (9, from tools/list, 28 Nov 2026)
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.
No parameters.
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=.
| Parameter | Type | Required | Description |
|---|---|---|---|
| province_id | integer | yes | Province ID (from ghn_list_provinces). |
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=.
| Parameter | Type | Required | Description |
|---|---|---|---|
| district_id | integer | yes | District ID (from ghn_list_districts). |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| from_district_id | integer | yes | Pickup district ID (from ghn_list_districts). |
| to_district_id | integer | yes | Delivery district ID (from ghn_list_districts). |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| weight | integer | yes | Weight in grams (maximum 50000). |
| to_district_id | integer | yes | Delivery district ID. |
| to_ward_code | string | yes | Delivery WardCode (from ghn_list_wards). |
| service_type_id | number | number | yes | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel. |
| from_district_id | integer | no | Pickup district ID. Default: the shop address. |
| from_ward_code | string | no | Pickup WardCode. Default: the shop address. |
| length | integer | no | Size in cm (maximum 200). |
| width | integer | no | Size in cm (maximum 200). |
| height | integer | no | Size in cm (maximum 200). |
| insurance_value | integer | no | Declared value in VND (maximum 5000000). |
| cod_value | integer | no | Cash on delivery amount in VND (maximum 50000000). |
| coupon | string | no | Discount coupon code. |
| items | array<object> | no | Items. Same shape as ghn_create_order items. |
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=.
| Parameter | Type | Required | Description |
|---|---|---|---|
| order_code | string | yes | GHN tracking code, e.g. LADFYR (returned by ghn_create_order). |
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=.
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_order_code | string | yes | Your own order code (the client_order_code set when the order was created). |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_order_code | string | yes | Your unique order code for this shop. Retries with the same code are safe. |
| to_name | string | yes | Recipient name. |
| to_phone | string | yes | Recipient phone. |
| to_address | string | yes | Recipient full address. |
| to_ward_name | string | yes | Recipient ward name (from ghn_list_wards or the new province model). |
| to_district_name | string | no | Recipient district name. Required when is_new_to_address is false. |
| to_province_name | string | yes | Recipient province or city name. |
| is_new_to_address | boolean | no | true for the 2025 address model (ward and province only). Default false. |
| weight | integer | yes | Total weight in grams. |
| length | integer | yes | Size in cm (maximum 200). |
| width | integer | yes | Size in cm (maximum 200). |
| height | integer | yes | Size in cm (maximum 200). |
| service_type_id | number | number | yes | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required). |
| payment_type_id | number | number | yes | Who pays the shipping fee: 1 = the shop, 2 = the recipient. |
| required_note | enum: "KHONGCHOXEMHANG" | "CHOXEMHANGKHONGTHU" | "CHOTHUHANG" | yes | Delivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try. |
| content | string | no | Goods description. Send content or items. |
| items | array<object> | no | Items. Required when service_type_id is 5. |
| cod_amount | integer | no | Cash on delivery to collect from the recipient, in VND. Default 0. |
| insurance_value | integer | no | Declared insurance value in VND (maximum 5000000). Default 0. |
| note | string | no | Note for the shipper. |
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| order_codes | array<string> | yes | GHN tracking codes to cancel, in one batch. |
| reason_code | enum: "GHN-CO001" | "GHN-CO002" | "GHN-CO003" | "GHN-CANCEL-OTHER" | no | GHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other. |
| reason | string | no | Free-text reason for every order in the batch. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://ghn.usefulapi.io/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http ghn https://ghn.usefulapi.io/mcpCustomize > Connectors > + Add > Add custom connector ; Name : ghn ; URL : https://ghn.usefulapi.io/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : ghn ; Server URL : https://ghn.usefulapi.io/mcp ; Create as a plugin{
"mcpServers": {
"ghn": {
"url": "https://ghn.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"ghn": {
"type": "http",
"url": "https://ghn.usefulapi.io/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"ghn": {
"url": "https://ghn.usefulapi.io/mcp"
}
}
}{
"mcpServers": {
"ghn": {
"httpUrl": "https://ghn.usefulapi.io/mcp"
}
}
}[mcp_servers.ghn]
url = "https://ghn.usefulapi.io/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
GHN MCP by usefulapi · L’Atlas · Tested on
[GHN MCP by usefulapi — L’Atlas](https://latlas.dev/en/mcp/io.usefulapi/ghn)Source : Registre officiel MCP · retrieved 1 Dec 2026. L’Atlas adds no data beyond this source and its own tests.