Chilexpress: coverage, quotes and tracking
Chilexpress coverage and commune codes, regions, offices and Pick Up points; shipping quotes and tracking with your free keys.
chilexpress_shipping
Use it over MCP
- Connect the server
https://mcp.betterllama.com/mcpin your client (setup per client). - Ask your agent, for example:
- «What is Viña del Mar's Chilexpress coverage code?»
- «How much does it cost to ship 3 kg from Santiago to Temuco?»
- Or call the tool
chilexpress_shippingwith these arguments:
{
"operation": "coberturas",
"regions": [
"RM"
],
"comunas": [
"providencia"
]
}You need your own free key for some operations. For coverage and regions, no. To quote you need your free «Cotizador» key, to track the «Envíos» key, and for offices the «Coberturas» key is recommended, all from developers.wschilexpress.com. Send them in the X-Chilexpress-Cotizador-Key, X-Chilexpress-Envios-Key and X-Chilexpress-Coberturas-Key headers; Better Llama does not store them.
Headers: X-Chilexpress-Cotizador-Key, X-Chilexpress-Envios-Key, X-Chilexpress-Coberturas-Key. Example for Cursor:
{
"mcpServers": {
"better-llama": {
"url": "https://mcp.betterllama.com/mcp",
"headers": {
"X-Chilexpress-Cotizador-Key": "<your key>"
}
}
}
}Beta: free and with no sign-up while we test the service.
Direct HTTP call (JSON-RPC)
Without an MCP client, POST to the same server:
curl -s https://mcp.betterllama.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "chilexpress_shipping", "arguments": {"operation": "coberturas", "regions": ["RM"], "comunas": ["providencia"]}}}'import json, requests
# Call a Better Llama MCP tool over HTTP (JSON-RPC)
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}
def call(tool, arguments):
body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": tool, "arguments": arguments}}
r = requests.post(URL, json=body, headers=HEADERS, timeout=120)
r.raise_for_status()
result = r.json()["result"]
data = json.loads(result["content"][0]["text"])
if result.get("isError"):
raise RuntimeError(data["error"])
return data
data = call("chilexpress_shipping", {"operation": "coberturas", "regions": ["RM"], "comunas": ["providencia"]})
for row in data["results"]:
print(row)
print(data["attribution"])The answer text is JSON with results, count, warnings, attribution and source.
Example response
Real results returned by the source (2026-11-12), shortened:
{
"results": [
{
"kind": "cobertura",
"countyCode": "PROV",
"countyName": "PROVIDENCIA",
"coverageName": "PROVIDENCIA",
"coverageType": "comuna",
"regionCode": "RM",
"ineCountyCode": 610,
"indPpd": 1,
"indRd": 1,
"officialUrl": "https://www.chilexpress.cl",
"dataSource": "Chilexpress – APIs oficiales para desarrolladores (developers.wschilexpress.com)",
"retrievedAt": "2026-11-12T19:22:59.295Z"
}
],
"attribution": "Fuente: APIs para desarrolladores de Chilexpress — https://developers.wschilexpress.com (no afiliado)."
}Parameters
| Argument | Description | Type |
|---|---|---|
operation | Operation — regiones and coberturas: no key. oficinas: «Coberturas» key recommended. cotizar: «Cotizador» key. seguimiento: «Envíos» key. Values: coberturas, regiones, oficinas, cotizar, seguimiento; Default: "coberturas" | string |
coberturasKey | «Coberturas» (coverage) key — Your personal, free key from the provider (https://developers.wschilexpress.com). You can also send it in an HTTP header (see the tool page). It is used only for that request; it is never stored or logged. | string |
cotizadorKey | «Cotizador» (quote) key — Your personal, free key from the provider (https://developers.wschilexpress.com). You can also send it in an HTTP header (see the tool page). It is used only for that request; it is never stored or logged. | string |
enviosKey | «Envíos» (shipments) key — Your personal, free key from the provider (https://developers.wschilexpress.com). You can also send it in an HTTP header (see the tool page). It is used only for that request; it is never stored or logged. | string |
environment | Environment — Test keys only work in «pruebas» (test). Values: produccion, pruebas; Default: "produccion" | string |
regions | Regions — coberturas/oficinas: RM, R5…, INE number or name. Empty = all of Chile. | array<string> |
comunas | Communes — Filter by commune (accents and case are ignored). | array<string> |
coverageType | Coverage type — comunas = one row per commune; sectores = localities within communes; todas = both. Values: comunas, sectores, todas; Default: "comunas" | string |
officeType | Office type — Only operation=oficinas. Values: todas, sucursales, pickup; Default: "todas" | string |
origin | Origin — Commune or coverage code (e.g. «Santiago» or «STGO»). | string |
destinations | Destinations — One or more communes or codes (max. 50). | array<string> |
weightKg | Weight (kg) — Default 1. | string |
heightCm | Height (cm) — Default 10. Max: 1000 | integer |
widthCm | Width (cm) — Default 10. Max: 1000 | integer |
lengthCm | Length (cm) — Default 10. Max: 1000 | integer |
productType | Product — Shipment type (encomienda = parcel, documento = document). Values: encomienda, documento; Default: "encomienda" | string |
declaredValue | Declared value (CLP) — Default 10000. Max: 100000000 | integer |
deliveryTime | Services — Which services to quote (todos = all, prioritarios = priority, no_prioritarios = non-priority). Values: todos, prioritarios, no_prioritarios; Default: "todos" | string |
trackingNumbers | Tracking numbers — Transport orders (OT) to track (max. 200). | array<string> |
companyRut | RUT of the shipping company — RUT of the company that created the transport orders (with or without check digit). The Envíos API only lets you track your own company's orders. | string |
reference | Reference (optional) — Customer reference associated with the transport order. | string |
showEvents | Include all events — Otherwise, only the current status. Default: true | boolean |
maxItems | Maximum number of results to return (1-200). Default 20. Default: 20; Max: 200 | integer |
Source and attribution
Fuente: APIs para desarrolladores de Chilexpress — https://developers.wschilexpress.com (no afiliado). Source site: developers.wschilexpress.com.
FAQ
What can I do with this Chilexpress API?
Look up coverage areas and commune codes, regions, offices and Pick Up points, quote shipments between communes (several destinations at once) and track your transport orders, using Chilexpress's official developer APIs.
Do I need Chilexpress keys?
For coverage and regions, no. To quote you need your free «Cotizador» key, to track the «Envíos» key, and for offices the «Coberturas» key is recommended, all from developers.wschilexpress.com. Send them in the X-Chilexpress-Cotizador-Key, X-Chilexpress-Envios-Key and X-Chilexpress-Coberturas-Key headers; Better Llama does not store them.
Are quoted rates the final price?
They are the rates returned by the Chilexpress API and may differ from the final price at a branch. Better Llama is not affiliated with Chilexpress.
How much does it cost?
Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first.