GHN MCP by usefulapi is an MCP server published by io.usefulapi, hosted at ghn.usefulapi.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 9 tools, including ghn_list_provinces, ghn_list_districts, ghn_list_wards, ghn_list_services, ghn_calculate_fee.
Quote shipping fees, track orders, and create or cancel shipping orders in GHN.
4,362 connections through 5 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
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.
{
"name": "ghn_list_provinces",
"title": "List provinces",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "List provinces",
"readOnlyHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
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 | Description |
|---|---|---|
| province_id * | integer | Province ID (from ghn_list_provinces). |
{
"name": "ghn_list_districts",
"title": "List districts",
"description": "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=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"province_id"
],
"properties": {
"province_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Province ID (from ghn_list_provinces).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List districts",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| district_id * | integer | District ID (from ghn_list_districts). |
{
"name": "ghn_list_wards",
"title": "List wards",
"description": "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=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"district_id"
],
"properties": {
"district_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "District ID (from ghn_list_districts).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List wards",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| to_district_id * | integer | Delivery district ID (from ghn_list_districts). |
| from_district_id * | integer | Pickup district ID (from ghn_list_districts). |
{
"name": "ghn_list_services",
"title": "List delivery services",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"from_district_id",
"to_district_id"
],
"properties": {
"to_district_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Delivery district ID (from ghn_list_districts).",
"exclusiveMinimum": 0
},
"from_district_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pickup district ID (from ghn_list_districts).",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "List delivery services",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| items | array | Items. Same shape as ghn_create_order items. |
| width | integer | Size in cm (maximum 200). |
| coupon | string | Discount coupon code. |
| height | integer | Size in cm (maximum 200). |
| length | integer | Size in cm (maximum 200). |
| weight * | integer | Weight in grams (maximum 50000). |
| cod_value | integer | Cash on delivery amount in VND (maximum 50000000). |
| to_ward_code * | string | Delivery WardCode (from ghn_list_wards). |
| from_ward_code | string | Pickup WardCode. Default: the shop address. |
| to_district_id * | integer | Delivery district ID. |
| insurance_value | integer | Declared value in VND (maximum 5000000). |
| service_type_id * | any | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel. |
| from_district_id | integer | Pickup district ID. Default: the shop address. |
{
"name": "ghn_calculate_fee",
"title": "Calculate shipping fee",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"weight",
"to_district_id",
"to_ward_code",
"service_type_id"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"quantity"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"description": "Product code (SKU)."
},
"name": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Product name."
},
"price": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unit price in VND."
},
"width": {
"type": "integer",
"maximum": 200,
"description": "Width in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"height": {
"type": "integer",
"maximum": 200,
"description": "Height in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"length": {
"type": "integer",
"maximum": 200,
"description": "Length in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"weight": {
"type": "integer",
"maximum": 50000,
"description": "Weight in grams. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"quantity": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Quantity, minimum 1."
}
}
},
"maxItems": 100,
"description": "Items. Same shape as ghn_create_order items."
},
"width": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"coupon": {
"type": "string",
"maxLength": 100,
"description": "Discount coupon code."
},
"height": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"length": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"weight": {
"type": "integer",
"maximum": 50000,
"description": "Weight in grams (maximum 50000).",
"exclusiveMinimum": 0
},
"cod_value": {
"type": "integer",
"maximum": 50000000,
"minimum": 0,
"description": "Cash on delivery amount in VND (maximum 50000000)."
},
"to_ward_code": {
"type": "string",
"maxLength": 20,
"minLength": 1,
"description": "Delivery WardCode (from ghn_list_wards)."
},
"from_ward_code": {
"type": "string",
"maxLength": 20,
"minLength": 1,
"description": "Pickup WardCode. Default: the shop address."
},
"to_district_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Delivery district ID.",
"exclusiveMinimum": 0
},
"insurance_value": {
"type": "integer",
"maximum": 5000000,
"minimum": 0,
"description": "Declared value in VND (maximum 5000000)."
},
"service_type_id": {
"anyOf": [
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 5
}
],
"description": "2 = under 20 kg, 5 = 20 kg or more or multi-parcel."
},
"from_district_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Pickup district ID. Default: the shop address.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Calculate shipping fee",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| order_code * | string | GHN tracking code, e.g. LADFYR (returned by ghn_create_order). |
{
"name": "ghn_get_order",
"title": "Get an order",
"description": "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=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"order_code"
],
"properties": {
"order_code": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "GHN tracking code, e.g. LADFYR (returned by ghn_create_order)."
}
}
},
"annotations": {
"title": "Get an order",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| client_order_code * | string | Your own order code (the client_order_code set when the order was created). |
{
"name": "ghn_get_order_by_client_code",
"title": "Get an order by your code",
"description": "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=.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"client_order_code"
],
"properties": {
"client_order_code": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Your own order code (the client_order_code set when the order was created)."
}
}
},
"annotations": {
"title": "Get an order by your code",
"readOnlyHint": true
}
}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 | Description |
|---|---|---|
| note | string | Note for the shipper. |
| items | array | Items. Required when service_type_id is 5. |
| width * | integer | Size in cm (maximum 200). |
| height * | integer | Size in cm (maximum 200). |
| length * | integer | Size in cm (maximum 200). |
| weight * | integer | Total weight in grams. |
| content | string | Goods description. Send content or items. |
| to_name * | string | Recipient name. |
| to_phone * | string | Recipient phone. |
| cod_amount | integer | Cash on delivery to collect from the recipient, in VND. Default 0. |
| to_address * | string | Recipient full address. |
| to_ward_name * | string | Recipient ward name (from ghn_list_wards or the new province model). |
| required_note * | string | Delivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try. |
| insurance_value | integer | Declared insurance value in VND (maximum 5000000). Default 0. |
| payment_type_id * | any | Who pays the shipping fee: 1 = the shop, 2 = the recipient. |
| service_type_id * | any | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required). |
| to_district_name | string | Recipient district name. Required when is_new_to_address is false. |
| to_province_name * | string | Recipient province or city name. |
| client_order_code * | string | Your unique order code for this shop. Retries with the same code are safe. |
| is_new_to_address | boolean | true for the 2025 address model (ward and province only). Default false. |
{
"name": "ghn_create_order",
"title": "Create a shipping order",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"client_order_code",
"to_name",
"to_phone",
"to_address",
"to_ward_name",
"to_province_name",
"weight",
"length",
"width",
"height",
"service_type_id",
"payment_type_id",
"required_note"
],
"properties": {
"note": {
"type": "string",
"maxLength": 5000,
"description": "Note for the shipper."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"quantity"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"description": "Product code (SKU)."
},
"name": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"description": "Product name."
},
"price": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unit price in VND."
},
"width": {
"type": "integer",
"maximum": 200,
"description": "Width in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"height": {
"type": "integer",
"maximum": 200,
"description": "Height in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"length": {
"type": "integer",
"maximum": 200,
"description": "Length in cm. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"weight": {
"type": "integer",
"maximum": 50000,
"description": "Weight in grams. Required when service_type_id is 5.",
"exclusiveMinimum": 0
},
"quantity": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Quantity, minimum 1."
}
}
},
"maxItems": 100,
"description": "Items. Required when service_type_id is 5."
},
"width": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"height": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"length": {
"type": "integer",
"maximum": 200,
"description": "Size in cm (maximum 200).",
"exclusiveMinimum": 0
},
"weight": {
"type": "integer",
"maximum": 50000,
"description": "Total weight in grams.",
"exclusiveMinimum": 0
},
"content": {
"type": "string",
"maxLength": 2000,
"description": "Goods description. Send content or items."
},
"to_name": {
"type": "string",
"maxLength": 1024,
"minLength": 1,
"description": "Recipient name."
},
"to_phone": {
"type": "string",
"maxLength": 20,
"minLength": 6,
"description": "Recipient phone."
},
"cod_amount": {
"type": "integer",
"maximum": 50000000,
"minimum": 0,
"description": "Cash on delivery to collect from the recipient, in VND. Default 0."
},
"to_address": {
"type": "string",
"maxLength": 1024,
"minLength": 1,
"description": "Recipient full address."
},
"to_ward_name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Recipient ward name (from ghn_list_wards or the new province model)."
},
"required_note": {
"enum": [
"KHONGCHOXEMHANG",
"CHOXEMHANGKHONGTHU",
"CHOTHUHANG"
],
"type": "string",
"description": "Delivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try."
},
"insurance_value": {
"type": "integer",
"maximum": 5000000,
"minimum": 0,
"description": "Declared insurance value in VND (maximum 5000000). Default 0."
},
"payment_type_id": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
],
"description": "Who pays the shipping fee: 1 = the shop, 2 = the recipient."
},
"service_type_id": {
"anyOf": [
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 5
}
],
"description": "2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required)."
},
"to_district_name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Recipient district name. Required when is_new_to_address is false."
},
"to_province_name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Recipient province or city name."
},
"client_order_code": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Your unique order code for this shop. Retries with the same code are safe."
},
"is_new_to_address": {
"type": "boolean",
"description": "true for the 2025 address model (ward and province only). Default false."
}
}
},
"annotations": {
"title": "Create a shipping order",
"idempotentHint": true,
"destructiveHint": true
}
}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 | Description |
|---|---|---|
| reason | string | Free-text reason for every order in the batch. |
| order_codes * | array | GHN tracking codes to cancel, in one batch. |
| reason_code | string | GHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other. |
{
"name": "ghn_cancel_orders",
"title": "Cancel shipping orders",
"description": "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.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"order_codes"
],
"properties": {
"reason": {
"type": "string",
"maxLength": 500,
"description": "Free-text reason for every order in the batch."
},
"order_codes": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "GHN tracking code, e.g. LADFYR (returned by ghn_create_order)."
},
"maxItems": 20,
"minItems": 1,
"description": "GHN tracking codes to cancel, in one batch."
},
"reason_code": {
"enum": [
"GHN-CO001",
"GHN-CO002",
"GHN-CO003",
"GHN-CANCEL-OTHER"
],
"type": "string",
"description": "GHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other."
}
}
},
"annotations": {
"title": "Cancel shipping orders",
"idempotentHint": true,
"destructiveHint": true
}
}Tools for GHN, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Quote the shipping fee for a 2 kg parcel from district 1 to Hoan Kiem."; "Create a cash-on-delivery order for my customer, but ask me to confirm it first."; "What is the status of the order with my code SHOP-2026-00193?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes GHN data. Free plan: 50 tool calls per month. Run ghn_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run ghn_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run ghn_upgrade without a plan: it returns both plans, each with a payment link for the user to open. ghn_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.