L'Atlas / Serveurs MCP / GHN MCP by usefulapi
Serveur MCP

GHN MCP by usefulapi

io.usefulapi/ghn

Serveur MCP OK 9 outils

Faire examiner Voir les tarifs

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

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.usefulapi/ghn.svg)](https://latlas.dev/mcp/io.usefulapi/ghn)
HTML
<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

DateRésultatRéponseOutils
28 nov. 2026, 13:20OK187 ms9

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ètreTypeRequisDescription
province_idintegerouiProvince 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ètreTypeRequisDescription
district_idintegerouiDistrict 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ètreTypeRequisDescription
from_district_idintegerouiPickup district ID (from ghn_list_districts).
to_district_idintegerouiDelivery 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ètreTypeRequisDescription
weightintegerouiWeight in grams (maximum 50000).
to_district_idintegerouiDelivery district ID.
to_ward_codestringouiDelivery WardCode (from ghn_list_wards).
service_type_idnumber | numberoui2 = under 20 kg, 5 = 20 kg or more or multi-parcel.
from_district_idintegernonPickup district ID. Default: the shop address.
from_ward_codestringnonPickup WardCode. Default: the shop address.
lengthintegernonSize in cm (maximum 200).
widthintegernonSize in cm (maximum 200).
heightintegernonSize in cm (maximum 200).
insurance_valueintegernonDeclared value in VND (maximum 5000000).
cod_valueintegernonCash on delivery amount in VND (maximum 50000000).
couponstringnonDiscount coupon code.
itemsarray<object>nonItems. 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ètreTypeRequisDescription
order_codestringouiGHN 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ètreTypeRequisDescription
client_order_codestringouiYour 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ètreTypeRequisDescription
client_order_codestringouiYour unique order code for this shop. Retries with the same code are safe.
to_namestringouiRecipient name.
to_phonestringouiRecipient phone.
to_addressstringouiRecipient full address.
to_ward_namestringouiRecipient ward name (from ghn_list_wards or the new province model).
to_district_namestringnonRecipient district name. Required when is_new_to_address is false.
to_province_namestringouiRecipient province or city name.
is_new_to_addressbooleannontrue for the 2025 address model (ward and province only). Default false.
weightintegerouiTotal weight in grams.
lengthintegerouiSize in cm (maximum 200).
widthintegerouiSize in cm (maximum 200).
heightintegerouiSize in cm (maximum 200).
service_type_idnumber | numberoui2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required).
payment_type_idnumber | numberouiWho pays the shipping fee: 1 = the shop, 2 = the recipient.
required_noteenum: "KHONGCHOXEMHANG" | "CHOXEMHANGKHONGTHU" | "CHOTHUHANG"ouiDelivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try.
contentstringnonGoods description. Send content or items.
itemsarray<object>nonItems. Required when service_type_id is 5.
cod_amountintegernonCash on delivery to collect from the recipient, in VND. Default 0.
insurance_valueintegernonDeclared insurance value in VND (maximum 5000000). Default 0.
notestringnonNote 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ètreTypeRequisDescription
order_codesarray<string>ouiGHN tracking codes to cancel, in one batch.
reason_codeenum: "GHN-CO001" | "GHN-CO002" | "GHN-CO003" | "GHN-CANCEL-OTHER"nonGHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other.
reasonstringnonFree-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.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://ghn.usefulapi.io/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http ghn https://ghn.usefulapi.io/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : ghn ; URL : https://ghn.usefulapi.io/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : ghn ; Server URL : https://ghn.usefulapi.io/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "ghn": {
      "url": "https://ghn.usefulapi.io/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "ghn": {
      "type": "http",
      "url": "https://ghn.usefulapi.io/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "ghn": {
      "url": "https://ghn.usefulapi.io/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "ghn": {
      "httpUrl": "https://ghn.usefulapi.io/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[GHN MCP by usefulapi — L’Atlas](https://latlas.dev/mcp/io.usefulapi/ghn)
Méthode et limites des tests

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.