L'Atlas / MCP servers / GHN MCP by usefulapi
MCP server

GHN MCP by usefulapi

io.usefulapi/ghn

MCP server OK 9 tools

Get a review See pricing

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

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.usefulapi/ghn.svg?lang=en)](https://latlas.dev/en/mcp/io.usefulapi/ghn)
HTML
<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

DateResultResponseTools
28 Nov 2026, 13:20OK187 ms9

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=.

ParameterTypeRequiredDescription
province_idintegeryesProvince 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=.

ParameterTypeRequiredDescription
district_idintegeryesDistrict 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.

ParameterTypeRequiredDescription
from_district_idintegeryesPickup district ID (from ghn_list_districts).
to_district_idintegeryesDelivery 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.

ParameterTypeRequiredDescription
weightintegeryesWeight in grams (maximum 50000).
to_district_idintegeryesDelivery district ID.
to_ward_codestringyesDelivery WardCode (from ghn_list_wards).
service_type_idnumber | numberyes2 = under 20 kg, 5 = 20 kg or more or multi-parcel.
from_district_idintegernoPickup district ID. Default: the shop address.
from_ward_codestringnoPickup WardCode. Default: the shop address.
lengthintegernoSize in cm (maximum 200).
widthintegernoSize in cm (maximum 200).
heightintegernoSize in cm (maximum 200).
insurance_valueintegernoDeclared value in VND (maximum 5000000).
cod_valueintegernoCash on delivery amount in VND (maximum 50000000).
couponstringnoDiscount coupon code.
itemsarray<object>noItems. 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=.

ParameterTypeRequiredDescription
order_codestringyesGHN 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=.

ParameterTypeRequiredDescription
client_order_codestringyesYour 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.

ParameterTypeRequiredDescription
client_order_codestringyesYour unique order code for this shop. Retries with the same code are safe.
to_namestringyesRecipient name.
to_phonestringyesRecipient phone.
to_addressstringyesRecipient full address.
to_ward_namestringyesRecipient ward name (from ghn_list_wards or the new province model).
to_district_namestringnoRecipient district name. Required when is_new_to_address is false.
to_province_namestringyesRecipient province or city name.
is_new_to_addressbooleannotrue for the 2025 address model (ward and province only). Default false.
weightintegeryesTotal weight in grams.
lengthintegeryesSize in cm (maximum 200).
widthintegeryesSize in cm (maximum 200).
heightintegeryesSize in cm (maximum 200).
service_type_idnumber | numberyes2 = under 20 kg, 5 = 20 kg or more or multi-parcel (then items with sizes are required).
payment_type_idnumber | numberyesWho pays the shipping fee: 1 = the shop, 2 = the recipient.
required_noteenum: "KHONGCHOXEMHANG" | "CHOXEMHANGKHONGTHU" | "CHOTHUHANG"yesDelivery rule: KHONGCHOXEMHANG = no inspection, CHOXEMHANGKHONGTHU = inspect but do not try, CHOTHUHANG = inspect and try.
contentstringnoGoods description. Send content or items.
itemsarray<object>noItems. Required when service_type_id is 5.
cod_amountintegernoCash on delivery to collect from the recipient, in VND. Default 0.
insurance_valueintegernoDeclared insurance value in VND (maximum 5000000). Default 0.
notestringnoNote 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.

ParameterTypeRequiredDescription
order_codesarray<string>yesGHN tracking codes to cancel, in one batch.
reason_codeenum: "GHN-CO001" | "GHN-CO002" | "GHN-CO003" | "GHN-CANCEL-OTHER"noGHN-CO001 = pickup taking too long, GHN-CO002 = out of stock, GHN-CO003 = recipient no longer wants it, GHN-CANCEL-OTHER = other.
reasonstringnoFree-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.

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

Ready-to-copy configs

Remote address used: https://ghn.usefulapi.io/mcp. Formats taken from each client’s documentation.

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"

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

Markdown
[GHN MCP by usefulapi — L’Atlas](https://latlas.dev/en/mcp/io.usefulapi/ghn)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 1 Dec 2026. L’Atlas adds no data beyond this source and its own tests.