GHN MCP by usefulapi
io.usefulapi/ghn
Serveur MCP OK 9 outils
Quote shipping fees, track orders, and create or cancel shipping orders in GHN.
Fiche technique
- Auteur
- usefulapi.io (espace de noms du registre)
- Dépôt
- github.com/m190/usefulapi-mcp
- Site
- usefulapi.io/ghn
- Version
- 1.5.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://ghn.usefulapi.io/mcp Streamable HTTP
- Outils
- 9
- Catégories
- —
- Dernière mise à jour
- 21 nov. 2026
- Publication
- 21 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.usefulapi/ghn)<a href="https://latlas.dev/mcp/io.usefulapi/ghn"><img src="https://latlas.dev/badge/fiche/io.usefulapi/ghn.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://ghn.usefulapi.io/mcp
- Dernier résultat
- OK 28 nov. 2026, 13:20
- Temps de réponse
- 187 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- ghn-mcp 1.5.0
- Outils
- 9
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 13:20 | OK | 187 ms | 9 |
Outils exposés (9, réponse à 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.
Aucun paramètre.
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=.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| province_id | integer | oui | 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=.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| district_id | integer | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| from_district_id | integer | oui | Pickup district ID (from ghn_list_districts). |
| to_district_id | integer | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| weight | integer | oui | Weight in grams (maximum 50000). |
| to_district_id | integer | oui | Delivery district ID. |
| to_ward_code | string | oui | Delivery WardCode (from ghn_list_wards). |
| service_type_id | number | number | oui | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel. |
| from_district_id | integer | non | Pickup district ID. Default: the shop address. |
| from_ward_code | string | non | Pickup WardCode. Default: the shop address. |
| length | integer | non | Size in cm (maximum 200). |
| width | integer | non | Size in cm (maximum 200). |
| height | integer | non | Size in cm (maximum 200). |
| insurance_value | integer | non | Declared value in VND (maximum 5000000). |
| cod_value | integer | non | Cash on delivery amount in VND (maximum 50000000). |
| coupon | string | non | Discount coupon code. |
| items | array<object> | non | 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=.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| order_code | string | oui | 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=.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_order_code | string | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| client_order_code | string | oui | Your unique order code for this shop. Retries with the same code are safe. |
| to_name | string | oui | Recipient name. |
| to_phone | string | oui | Recipient phone. |
| to_address | string | oui | Recipient full address. |
| to_ward_name | string | oui | Recipient ward name (from ghn_list_wards or the new province model). |
| to_district_name | string | non | Recipient district name. Required when is_new_to_address is false. |
| to_province_name | string | oui | Recipient province or city name. |
| is_new_to_address | boolean | non | true for the 2025 address model (ward and province only). Default false. |
| weight | integer | oui | Total weight in grams. |
| length | integer | oui | Size in cm (maximum 200). |
| width | integer | oui | Size in cm (maximum 200). |
| height | integer | oui | Size in cm (maximum 200). |
| service_type_id | number | number | oui | 2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required). |
| payment_type_id | number | number | oui | Who pays the shipping fee: 1 = the shop, 2 = the recipient. |
| required_note | enum: "KHONGCHOXEMHANG" | "CHOXEMHANGKHONGTHU" | "CHOTHUHANG" | oui | Delivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try. |
| content | string | non | Goods description. Send content or items. |
| items | array<object> | non | Items. Required when service_type_id is 5. |
| cod_amount | integer | non | Cash on delivery to collect from the recipient, in VND. Default 0. |
| insurance_value | integer | non | Declared insurance value in VND (maximum 5000000). Default 0. |
| note | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| order_codes | array<string> | oui | GHN tracking codes to cancel, in one batch. |
| reason_code | enum: "GHN-CO001" | "GHN-CO002" | "GHN-CO003" | "GHN-CANCEL-OTHER" | non | GHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other. |
| reason | string | non | Free-text reason for every order in the batch. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://ghn.usefulapi.io/mcp. Formats repris de la documentation de chaque client.
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"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
GHN MCP by usefulapi · L’Atlas · Test du
[GHN MCP by usefulapi — L’Atlas](https://latlas.dev/mcp/io.usefulapi/ghn)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.